when i use sd_flash_page_erase() the system reset
when i use sd_flash_page_erase() the system reset
Have you enabled the softdevice? Please try debugging, to see what function call is causing an error, and what the returned error code is.
when I use the function sd_flash_page_erase() then the system reset,can't know the return value。 the problem happened in bootloader code ,in application code the function sd_flash_page_erase() is right
ret = sd_flash_page_erase(120);
Where in the bootloader code are you calling this? You should make sure the softdevice is initialized before calling softdevice functions (functions with sd_ prefix). Which address are you trying to erase? Make sure you do not erase any pages containing your application, bootloader, etc.
I can't see any call to sd_flash_page_erase()
in your screenshot. Where are you calling it? Are you checking the return value from the function call? Is 120 you page number input? What are you trying to erase?