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

Brick after sd_nvic_SystemReset() with enabled readback protection.

Hello,

My device is nRF51822 SD110 8.0.0.

The problem occured after firmware update in bootloader (own, not SDK) with readback protection enabled. So bootloader connects to host, receive the data and write it to firmware area of the flash. After all data transferred, central disconnect device. In bootloader disconnection handled in next way:

...
else if (evt_id == BLE_GAP_EVT_DISCONNECTED){ 
   sd_nvic_SystemReset();
}...

And device restarts, it jumps to botloader first and bootloader switches to firmware. Everithing works fine. But in case when readback protection enabled on chip, the last become brick after sd_nvic_SystemReset(); command. Power reset didn't help. What should I do to fix this?

Parents
  • Hi, the "brick" is in sense of running application. Of cource I can erase it with SWD and reflash. I investigated a little bit more. And it does not seem to be caused by sd_nvic_SystemReset(); after disconnection in bootloader.But in firmware at start I perform flash write and whan perform system reset by writting 0x05fa0004 to 0xe000ed0c. I suspect that reset operation performed incorrectly. Could you say the code of NVIC_SystemReset()?

Reply
  • Hi, the "brick" is in sense of running application. Of cource I can erase it with SWD and reflash. I investigated a little bit more. And it does not seem to be caused by sd_nvic_SystemReset(); after disconnection in bootloader.But in firmware at start I perform flash write and whan perform system reset by writting 0x05fa0004 to 0xe000ed0c. I suspect that reset operation performed incorrectly. Could you say the code of NVIC_SystemReset()?

Children
No Data
Related