This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52811 with IAR Embedded Workbench 8.42.1 s140 sd_softdevice_enable hardfault

Hello,

I am trying to port ble_app_hrs_rscs_relay example to nRF52811 with softdevice s140 7.2 and nRF5_SDK_17.1.0. Everything works fine and the app is running and I can debug the app. When i reset the app i get a hardfault in sd_softdevice_enable if i download and debug the app. If i just debug without downloading i get error code 8 Invalid state. I just have the app without bootloader. 

Am I missing something? I really appreciate your help.de

  • Thank you for your answer. If SoftDevice is not correctly initialized, why the device is working fine? advertising and i can  connect and read/write from characteristics? I have this issue when i debugging. Now I added DEVELOP_IN_NRF52840 flag and the issue disappear which is wired because i changed the target  to nrf52811 and the target is nrf52811 and i followed this:

    Updated: DEVELOP_IN_NRF52840  worked just once and i get the same issue again.

  • I fixed the problem by porting s112 nrf52811 example to s140

Related