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

SDK 12.3.0 - ble_app_template error code not found/defined in header files

Hello,

When I run the ble_app_template application from the examples, sd_app_evt_wait() cause an error and the app to crash. So I've put my project in debug mode (DEBUG preprocessor in the project configuration) and get to app_error_save_and_stop function. When I examinate the error info, I get this:

When I look up in the error header, I get SVC handler missing error. When I look up Nordic DevZone, it would seem like my softdevice version isn't compatible with the ble_app_template.

However, when I read the address 0x0000300C, where the version is stored, I get 0x0087 and when crossreferencing to this link, it means I am running version S130 v2.0.1. The ble_app_template is for PCA10028 S130, which I am running. 

I did not change anything in the code of ble_app_template and I use the ble_app_templace_pca10028_s130, which corresponds to my dev kit. I would need help to figure out what is exactly the softdevice API to crash.

Spec summary :

IDE : IAR 8.40.1
DevKit : NRF51 (PCA10028 v1.2.2)
SoftDevice version : S130 2.0.1
SDK Version : 12.3.0
project used : \..\ble_peripheral\ble_app_template

Thank you for your help

Parents
  • Hello,

    Are you sure you haven't changed any files in the SDK? Can you please try to unzip an unmodified version of the SDK? I did the same test with the same SDK, same DK, same softdevice (but an older version of IAR). Truth being said, I have some issues debugging, because I can't set breakpoints, but I am not that familiar with IAR settings. However, I were able to compile, flash and start the debug session. I enabled logging in the example (#define NRF_LOG_ENABLED 1 in sdk_config.h), and I can see the log output, and the advertisements on my phone, and I am able to connect to it.

  • Hello Edvin, sorry for the late reply, I thought that this post was deleted as I progressed in solving my problem. The issue was that I tried to step into the code during SoftDevice calls and that cause the app to restart as I found out in another post that you can't step into a softdevice function. When I removed my breakpoint from the sd_wait_for_evt(), the code didn't restart. I now have new issues, but I will create another post with that.

    Thanks.

Reply
  • Hello Edvin, sorry for the late reply, I thought that this post was deleted as I progressed in solving my problem. The issue was that I tried to step into the code during SoftDevice calls and that cause the app to restart as I found out in another post that you can't step into a softdevice function. When I removed my breakpoint from the sd_wait_for_evt(), the code didn't restart. I now have new issues, but I will create another post with that.

    Thanks.

Children
No Data
Related