When I operate RESET PIN in main function like this:NRF_POWER->RESET = 1,Then cause a HardFault_Handler,(/attachment/fabd1141d36157d32f8c0353e4880b3e),What's this?
When I operate RESET PIN in main function like this:NRF_POWER->RESET = 1,Then cause a HardFault_Handler,(/attachment/fabd1141d36157d32f8c0353e4880b3e),What's this?
void opt_reset_func(void) { NRF_POWER->RESET = 1; } this is opt_reset_func function implementations
Which SoftDevice and SDK version are you using? You should not write to the POWER registers after initializing the SoftDevice, you should use sd_nvic_SystemReset()
instead.
my SoftDevice is s110_nrf51_8.0.0_softdevice,i want enable reset pin without power down,so i did like this
Using sd_nvic_SystemReset()
instead of NRF_POWER->RESET = 1;
solved the problem?
this code when i use NRFgo studio to respectively download softdevice、 bootloader、 application,lead to HardFault,but use nrfjprog is normal,