This is just a warning in case anyone runs into the same brick wall that I just did, to save them spending hours tearing hair out. Possibly it is already known by some of the forum regulars but I think it could do with some greater visibility.
The overflow interrupt for quad timers on the Teensy4 (TMR0,TMR1,TMR2,TMR3) does not work when counting upwards. It won't trigger at all, and if the output mode is 6 (set output on compare, clear on overflow) the output signal will not clear.
The counter value for the timer will wrap around to zero with no indication at all that it has happened.
If you search the web for ERR050194 you will find NXP's chip errata documents revealing that this problem exists for basically the entire i.MX RT range of processors.
The overflow interrupt for quad timers on the Teensy4 (TMR0,TMR1,TMR2,TMR3) does not work when counting upwards. It won't trigger at all, and if the output mode is 6 (set output on compare, clear on overflow) the output signal will not clear.
The counter value for the timer will wrap around to zero with no indication at all that it has happened.
If you search the web for ERR050194 you will find NXP's chip errata documents revealing that this problem exists for basically the entire i.MX RT range of processors.