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

SoftDevice with Timer peripherals goes to app_error_weak.c

I am trying to measure frequency of a gpio pin.

I am using the code from the below thread -

https://devzone.nordicsemi.com/f/nordic-q-a/9036/measuring-input-gpio-pin-frequency-with-soft-device-running

I did modify it to be suitable with the new SDK V17.

//The  mode 1 was depcrecated so I am using the below modes.
NRF_TIMER1->MODE = 0; // Timer mode

NRF_TIMER2->MODE = 2; // Low power counter mode


I have added the custom ble service / characteristic tutorial code along with this.

When I run the code on debug mode, it goes to app_error_weak.c

I am not sure why this is happening. I tried to create break points but I am unsure from where this is being triggered.

However, the BLE service runs fine. It does not stop or create issues.

I am a bit new to SoftDevice. May I know where am I going wrong?

Parents
  • Hi

    First off, the case you're linking to is more than five years old, so I think it's safe to say that a lot of that information is deprecated, or should at least be taken with a grain of salt. 

    What device are you using in this project and are you using a Development Kit or a custom board? Do you have any kind of debug log to refer to, as I don't think a timer should lead you to app_error_weak.c. Do you have any more information on what exactly is causing this error?

    Best regards,

    Simon

Reply
  • Hi

    First off, the case you're linking to is more than five years old, so I think it's safe to say that a lot of that information is deprecated, or should at least be taken with a grain of salt. 

    What device are you using in this project and are you using a Development Kit or a custom board? Do you have any kind of debug log to refer to, as I don't think a timer should lead you to app_error_weak.c. Do you have any more information on what exactly is causing this error?

    Best regards,

    Simon

Children
Related