Open microderm opened 2 years ago
Okay, I fixed it. It was some kind of scoping problem. I put the test code in a C file placed within the libraries folder and added #include "nrf52.h"
at the top of the file and it worked as expected.
I think the interrupt could not see the TIMER2_IRQHandler
and would crash.
Hi, I am trying to get some example Timer code working on the nRF52 DK board. This code works when built with Segger IDE but hangs (without printing '*' from the loop) when built from Arduino:
When I comment out the line that sets NRF_TIMER2->INTENSET, the loop continues to print out regular '*' chars, but does not flash the LED on or off.
Any thoughts as to what could be wrong?