Hello,
I have strange behavior in my Teensy 4.1 program that I have not been able to fix for a week. I suppose there is a bug, out of memory, or something illegal somewhere in my program. In my program, I am using multiple interrupts at about 100 kHz, 4 DMA channels and external interrupts.
Actually the problem occurs only on 600MHz. If I overclock at 816MHz everything works stable.
I am not using USB-Serial for communication and I am debugging a program on USB-Serial, however I was unable to find the problem - if I put a lot of debugging information, it seems that my program works in a different scenario and this error never occurs.
The behavior is simple, after a few minutes of work, it suddenly reboots and starts from the very beginning. At 816 MHz, I run my system overnight and it never reboots.
Power consumption of my Tensy 4.1 (with SD card) is about 1.2W at 600MHz (CPU temperature is 51C) and about 1.4W at 816MHz (CPU temperature is 63C).
My question is the following: can you please tell me if it is possible to save the instruction / stack or any other information on reboot? Or maybe there is some kind of interrupt handler that could be caused by illegal instruction / memory access, so I will dump the memory to SD card myself in such a situation, or at least write to USB-Serial.
Thank you!
I have strange behavior in my Teensy 4.1 program that I have not been able to fix for a week. I suppose there is a bug, out of memory, or something illegal somewhere in my program. In my program, I am using multiple interrupts at about 100 kHz, 4 DMA channels and external interrupts.
Actually the problem occurs only on 600MHz. If I overclock at 816MHz everything works stable.
I am not using USB-Serial for communication and I am debugging a program on USB-Serial, however I was unable to find the problem - if I put a lot of debugging information, it seems that my program works in a different scenario and this error never occurs.
The behavior is simple, after a few minutes of work, it suddenly reboots and starts from the very beginning. At 816 MHz, I run my system overnight and it never reboots.
Power consumption of my Tensy 4.1 (with SD card) is about 1.2W at 600MHz (CPU temperature is 51C) and about 1.4W at 816MHz (CPU temperature is 63C).
My question is the following: can you please tell me if it is possible to save the instruction / stack or any other information on reboot? Or maybe there is some kind of interrupt handler that could be caused by illegal instruction / memory access, so I will dump the memory to SD card myself in such a situation, or at least write to USB-Serial.
Thank you!