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

nrf51822 s130 hardfault error

My old question

SDK: 12.1.0

SOFTDEVICE: s130

CHIP: nrf51822_xxac 256KB flash, 32KB ram

I have used to store application data in flash using sd_flash_write and erase functions.

I get the application data communicating smart phone by ble.

First connection always success in connecting and writing the data in flash.

But, Second connection has always failed writing the data. --> hardfault error occur or stuck somewhere.

so I run gdb. at this error, I get message "Program received signal SIGTRAP, Trace/breakpoint trap.".

pic is info register.

what does mean pc value 0xfffffffe? Is it softdevice error?

this error can be prevented by deleting sd_flash_write and erase functions. so I think this problem is related on flash write and erase functions.

should I use fstorage library?

What should I start with to track my error?

Related