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

How to find error causing code witch is caugt by app_error_weak.c

I have built a custom chip with nrf52840 on it.

I use Ses as development tool.

I took as startingpoint for software SDK15.3 with Softdevice 140

I took the ble_template from the SDK and copied my code init.

I can compile the code without any error, but when I flash it on the device it does not start to advertise.

In debugger mode it starts up well, but then runs into app_error_weak.c

now the function gives error code and stuff, but I don't know, how to find the code witch caused the error

that is what i got from ses and the error handler

I'm not sure if its relevant but in call stack ar two functions in it

the first is in app_error_weak.c

the secound is in app_error_handler_gcc.c

and shows those parameters 

because error_code in one handler and id in the other ar the same i guess, that 1 error is thrown and chaugt by both handlers, or

one handler calls the other.

But I don't know now how to solve this. And how to search for the code whitch caused the error.

thanks for any help

Parents Reply
  • Yes I can, Sould I Give you the SDK with all code in it that i had to modiefy?

    But I have to warn you... I had to do lots of workarounds, because it's an 2017 Project, that I have portet from eclipse neon to SES

    and because nordic updatet SDK 15.3 files and I wasn't able to get an original 2017 SDK 15.3 I had to exchange some files from actual SDK 15.3 with the old version ones out of the actual Project, because I don't wanted to change the Running code of the old Project.

    The code is maybe not for all eyes... 

    Path to ses : 

    nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_template\pca10056\s140\ses\V2_ble_app_template_pca100056_s140.emProject

Children
Related