This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash memory on nRF52832

hello, i have a question, i use sdk15.3 for nRF52832, i run for example flash_fds, sometimes it will not be able to erase or write to memory, after restarting the device, it can be written or erased. , but soon after seeing such a case again, can you give me a solution, thanks a lot!

Parents
  • Hi,

    Can you provide more details on how you are testing and how it fails? Please remember that FDS write and erase operations are asynchronous, so you need to wait for an event indicating that the operation has completed.

  • Thanks for the feedback.
    I run the flash_fds example in sdk15.3, using the UART log on Hercules software.

    I run the write command to flash memory, about 30 times maybe 35 times I started not receiving the message of successful writing on Hercules, but after resetting the kit via the reset button on the kit, I can write 1 more Again.

    That's the process I made and saw the error, I tried on sdk15.2 and the result was similar, maybe I missed some important part that I didn't realize.

    I look forward to hearing from you soon.

    thank you!

  • Hi,

    I have not been able to reproduce this, but I don't have exact steps so that may affect things. (I tested with PuTTY rather than Hercules, but which serial terminal you use should not be relevant.). Can you explain in full detail how you test? This may not be relevant, but since I am unable to reproduce and do not understand what could be going on it would be good to test the exact same setup.

    • Which exact example project do you use? <SDK15.3>\examples\peripheral\flash_fds\pca10040\s132\ses\, or another one?
    • Which file ID, record ID, and data do you write? Is it the same every time or not? If not, what is the pattern? Please describe accurately enough that I can duplicate your test on my side.
    • After how many times do things fail (see printed Record ID)? In what way does it fail? Can you explain and show the terminal output you have at that point?
    • Do you test on the nRF52 DK?
Reply
  • Hi,

    I have not been able to reproduce this, but I don't have exact steps so that may affect things. (I tested with PuTTY rather than Hercules, but which serial terminal you use should not be relevant.). Can you explain in full detail how you test? This may not be relevant, but since I am unable to reproduce and do not understand what could be going on it would be good to test the exact same setup.

    • Which exact example project do you use? <SDK15.3>\examples\peripheral\flash_fds\pca10040\s132\ses\, or another one?
    • Which file ID, record ID, and data do you write? Is it the same every time or not? If not, what is the pattern? Please describe accurately enough that I can duplicate your test on my side.
    • After how many times do things fail (see printed Record ID)? In what way does it fail? Can you explain and show the terminal output you have at that point?
    • Do you test on the nRF52 DK?
Children
Related