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

Can't get debugging to work in CrossWorks

Hi,

I'm trying to get started with the nRF51-DK with the ble_app_template. I want to get it working in the Rowley CrossWorks IDE. (From what I understand this is the same IDE as Segger Studio.) I'm using the s130 soft device.

It took a while but I've finally been able to get the project to build and link properly. Whenever I try to debug the program, it always crashes in the softdevice_enable() function. I found that when I make a build release and just run my hex file on the device, it will run fine (I can see the device when I scan using the Android app).

Does anyone have any suggestions on what to do? I'm guessing that it is something to do with the soft device, but I'm still pretty new to CrossWorks so I'm not exactly sure how to get around this.

Thanks

Parents
  • @Sigurd Thanks for your response. I've tried those instructions but still get the same issue; if I just program the device in release mode (or even run it in the debugger, then remove the debugger and power cycle the board) it works, but if I try to do the debugging it crashes on softdevice_enable(). I don't know if it has to do with the fact that I'm using the nRF51 but the post is for the nRF52.

    To answer your question about the SoftDevice, I am in fact using the S130 v.2. Specifically, I'm using the precompiled version from the SDK: nRF5_SDK_12.3.0_d7731ad\components\softdevice\s130\hex\s130_nrf51_2.0.1_softdevice.hex.

Reply
  • @Sigurd Thanks for your response. I've tried those instructions but still get the same issue; if I just program the device in release mode (or even run it in the debugger, then remove the debugger and power cycle the board) it works, but if I try to do the debugging it crashes on softdevice_enable(). I don't know if it has to do with the fact that I'm using the nRF51 but the post is for the nRF52.

    To answer your question about the SoftDevice, I am in fact using the S130 v.2. Specifically, I'm using the precompiled version from the SDK: nRF5_SDK_12.3.0_d7731ad\components\softdevice\s130\hex\s130_nrf51_2.0.1_softdevice.hex.

Children
No Data
Related