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

IAR Debugging Problem - Falls to Infinite loop (after running SVC)

Hello, I'm using the nRF51822 and tried the HID Keyboard Application (S110, ble_app_hids_keyboard) example. (Nordic\nrf51822\Board\nrf6310\ble\ble_app_hids_keyboard )

The nRF51 SDK version is 6.1. I use IAR for ARM 7.1 and I use J-Link to download the code.

I'm a novice developer so please, I apologize if this question is silly or obsolete.

I'm testing the HID Keyboard example. After downloading and resetting the HW, it works fine.

However, when I try to debug the code with IAR, it does not work properly.

image description

The debugger works before I call sd_softdevice_enable.

image description

image description

After calling this, the counter points the top of the memory.

image description

I use Windows 7 SP1 32bit installed in a Samsung laptop R440.

What could be the problem? Is there additional setup to be done in order to debug?

-Regards, Mango922

Related