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
  • Thanks for the response. Yes that is the template I'm referring to. The way I had to disable the timer was by opening sdk_config.h and entering the Configuration Wizard view. Then under nRF Drivers > TIMER_ENABLED we see TIMER0_ENABLED, TIMER1_ENABLED and TIMER2_ENABLED are all selected. I had to unselect timer 1 and 2 in order for my application to start working

Reply
  • Thanks for the response. Yes that is the template I'm referring to. The way I had to disable the timer was by opening sdk_config.h and entering the Configuration Wizard view. Then under nRF Drivers > TIMER_ENABLED we see TIMER0_ENABLED, TIMER1_ENABLED and TIMER2_ENABLED are all selected. I had to unselect timer 1 and 2 in order for my application to start working

Children
No Data
Related