Hi there,
I have a code (about 8k lines) for Teensy 4.1 which has a glitch, some times the machine freezes and the sound becomes a nasty blip for a second or so, I'm trying to figure out which part of the code is the problem with no luck at the moment, one of the problems is that if I activate the serial communication (to monitor which part of the code was running before the glitch) most of the times the glitch disappear, but not always. Also on every change in the code the glitch could almost disappear too or becomes very frequent.
What suggestions do you guys have to find the problem? maybe storing some variables with the elapsed MCU cycles in different sections of the code?
any tip, suggestion or idea is welcomed.
Thanks!
I have a code (about 8k lines) for Teensy 4.1 which has a glitch, some times the machine freezes and the sound becomes a nasty blip for a second or so, I'm trying to figure out which part of the code is the problem with no luck at the moment, one of the problems is that if I activate the serial communication (to monitor which part of the code was running before the glitch) most of the times the glitch disappear, but not always. Also on every change in the code the glitch could almost disappear too or becomes very frequent.
What suggestions do you guys have to find the problem? maybe storing some variables with the elapsed MCU cycles in different sections of the code?
any tip, suggestion or idea is welcomed.
Thanks!