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

fault at sd_flash_page_erase in sdk_nrf51 ble examples it hangs crashes

I am experiencing a fault at sd_flash_page_erase() in the sdk_nrf51 ble examples.

Softdevice 8.0.0 is loaded and is from the sdk_nrf51 bundle.

Both the ble_app_proximity_s110_pca10028 and ble_app_hrs_s110_pca10028 have create this fault.

The call stack is: main() device_manager_init() pstorage_init() sd_flash_page_erase()

I am not using the pca10028 board - I am using a raw device (actually a module) that has nothing connected but the power and SWD programming lines (and a GPIO I use for physical debug).

The module uses a 32MHz crystal and 256KB flash 16KB RAM.

Blinky on top of S110 works fine in both Keil and gcc (with some mods to the GPIO pins to blink things I can access on my HW).

I can put some blinky excerpt code in this and move a toggle around to confirm the fault is at this location; so I think I must have the 32Mhz, 256KB flash, and 16KB RAM settings correct in the projects on both gcc and Keil.

I experience this from both Keil and gcc based toolchains.

HELP??

Related