luni
Well-known member
Is the timer GPT2 used for some internal tasks? Disabling it by setting GPT2_CR to zero crashes the system. GPT1 works as expected.
I searched the core files but do not find anything using the GPTs so that is quite strange.
Code:
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
GPT1_CR = 0; // fine
GPT2_CR = 0; // crashes Teensy
}
void loop()
{
digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN));
delay(250);
}
I searched the core files but do not find anything using the GPTs so that is quite strange.