Hello, I use nrf51422 for my project. I have to collect data via BLE nus from phone, but after that i don't need SD anymore. Can i use blocked hardware, like RTC0, after disable sd? I try to do that, but i get Hard Fault.
Regards Michał,
Yes, you can use blocked hardware after disabling the SoftDevice. Using blocked hardware while SoftDevice is enabled will lead to hardfault.
You are sure you are not calling any SoftDevice functions? A common mistake is to call power_manage()
, which will call sd_app_evt_wait()
. This have to be changed to this if the SoftDevice is disabled:
__SEV();
__WFE();
__WFE();
Yes, you can use blocked hardware after disabling the SoftDevice. Using blocked hardware while SoftDevice is enabled will lead to hardfault.
You are sure you are not calling any SoftDevice functions? A common mistake is to call power_manage()
, which will call sd_app_evt_wait()
. This have to be changed to this if the SoftDevice is disabled:
__SEV();
__WFE();
__WFE();