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

Timer Example Issue

I'm building a new application based on the no softdevice template example. I pulled in the code from the UART BLE example to redirect printf to the serial interface and that works. Next I wanted to add a timer so I copied the timer example but the timing off the interrupt was completely off.

At long last I discovered that the template example has Timer 0, 1, 2 all enabled while the Timer example only has timer 0 enabled. By disabling timer 1 and 2 my application started working. Can someone explain why disabling those two timers caused the application to start working again?

Parents
  • Very sorry for the late response. I've taken a look at this case over the last few days, but have not found a definite solution yet. Just to get things clear, are you using the no softdevice template example located under examples/peripheral/template_project folder in SDK 12.3? For the UART BLE example, you're referring to the example under /ble_peripheral/ble_app_uart/ folder, right? And lastly, the timer example is located under examples/peripheral/timer, right? Sorry for this stupid question, it's just I don't want to spend a lot of time looking at code and then realizing after a while that I am looking at different examples compared to you. I will get to the bottom of this soon.

Reply
  • Very sorry for the late response. I've taken a look at this case over the last few days, but have not found a definite solution yet. Just to get things clear, are you using the no softdevice template example located under examples/peripheral/template_project folder in SDK 12.3? For the UART BLE example, you're referring to the example under /ble_peripheral/ble_app_uart/ folder, right? And lastly, the timer example is located under examples/peripheral/timer, right? Sorry for this stupid question, it's just I don't want to spend a lot of time looking at code and then realizing after a while that I am looking at different examples compared to you. I will get to the bottom of this soon.

Children
No Data
Related