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

Debuging a problem with S310 - program hangs after BT connects

Hi,

I've recently added BT to my application and switched from S210 to S310 Softdevice. My Ant+ part is based on the HR RX example in SDK10. My BT part is basically copied from the BT blinky example. 

It "almost" works Slight smile

The problem happend some time after the BT connection is established. When no BT connection is made - all works fine.

On the picutre below you can the call stack when the problem occurs. Seems like some app_timer problem.

I can't figure out where to look. Maybe someone can help me. What can be wrong? Obviously some parts overlap.

There is one timer in my app, but even when I turn if off the problem still happens. 

Thanks

Parents
  • Well yes, this kinda works, but then I have to set the GPIOTE priority to LOW as well and that causes my program to work "jerky". I use it to dim the ligjht and the light blinks while being dimmed, telling me the tmers don't work as they should. 

    But at least it doesn'f freeze ;)

    Any other way around it? I guess I could go back to experimenting with the Timers (not app-timers) but I had other problems there :)

  • To be clear. I'm not calling anything from the API myself. I just use the softdevice to receive data. My whole program logic happns based on the incoming data and I use the interrupt on GPIOTE to initiate a timer (app_timer currently) that sets a pin to low or high. I calculate the delay of that timer depending on the data coming form ANT+. So in theory I could still set my timmer priority to HIGH, right? 

Reply
  • To be clear. I'm not calling anything from the API myself. I just use the softdevice to receive data. My whole program logic happns based on the incoming data and I use the interrupt on GPIOTE to initiate a timer (app_timer currently) that sets a pin to low or high. I calculate the delay of that timer depending on the data coming form ANT+. So in theory I could still set my timmer priority to HIGH, right? 

Children
No Data
Related