I am facing issues in debugging ble_app_uart program available in nRF5 SDK. I am trying to debug it on IAR workbench using Jlink PLUS debugger in SWD mode.
I could connect and download the program. but whenever program calls sd_softdevice_enable() function for enabling soft device it hangs.
Details about setup.
- controller : nRF52832 (512KB flash) on Fanstel module BC832
- Debugger : Segger Jlink Plus in 6 pin SWD mode.
- IDE : IAR workbench v 8.20.1
- SDK version : nRF5_SDK_15.2.0_9412b96
- Test program : nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_uart
I have added additional command to download Soft device \nRF5_SDK_15.2.0_9412b96\components\softdevice\s132\hex\s132_nrf52_6.1.0_softdevice.hex at address location 0x0000
I could program and debug normal application that does not involve Soft Device. e.g. nRF5_SDK_15.2.0_9412b96\examples\peripheral\uart.
When program involves soft device; after accessing softdevice related APIs, IDE hangs and we can not further debug the program.