This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

s132 sd_flash_page_erase problem

Started out with the ble_nus-exmple. Added logging of a sensor to flash, and got it to work in SDK11, even without using the sd_flash*-routines, but writing/erasing directly using NVMC.

After upgrading, I got write working by using sd_flash_write. But page-erasing is giving me problems.

I can write to the flash:

err_code = sd_flash_write(addr_to, addr_from, 4);

But when I try to erase a page, I get hard fault.

err_code = sd_flash_page_erase(pg_num_write);

Yes, I have been searching in here without luck. Probably something I stupid I do/did not do, so I definately need some help here.

Stein Helge

Related