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

nrf51822 HardFault

Hi Nordic Tech support team, Now, I burn my nrf51822 softdevice Bootloader and application by nRFgo Studio tool。There are some problems as follow: (1) When I burn softdevice firmware and I choice enable softdevice protection,When I burn application firmware and run, occur HardFault error. I check my application code, I find that HardFault error caused by code " NRF_POWER->RESET = 1". If I delete "NRF_POWER->RESET = 1",My application firmware run well.

(2) When I don't choice enable softdevice protection and don't delete code, "NRF_POWER->RESET = 1",My application firmware run well,too.

(3) When I use nrfjprog.exe to burn firmware, don't delete code, "NRF_POWER->RESET = 1", My application firmware run well,too.

I find nRFgo Studio tool enable softdevice protection by default, if I disable it, What are the effects ? I want to my application to support hard reset function, i find i have to write code,NRF_POWER->RESET = 1. How can get the reason of HardFault error? Why do I set RESET “NRF_POWER->RESET = 1” code cause HardFault error? Thanks !

Parents Reply Children
No Data
Related