Hey team, I received my Teensy 4 board today with the hopes of getting my Speeduino ECU firmware running for it shortly. I'm experiencing what appear to be hard lockups of it though, seemingly serial (buffer?) related.
To reproduce, here is a SUPER simple sketch based on the Arduino Serial example that runs on AVR and Teensy 3.5/3.6 systems without a problem:
On the Teensy4 this runs for between 5 and 10 seconds before locking up. The problem occurs fairly quickly with the delay value set to 1 or 2 and with 3 it seems to run most of the time without issue but does freeze occasionally (Up to 120+ seconds after startup). With delay values of 4 and above it seems fine.
I understand there's a limited serial transmit buffer, but I would not expect that doing something like this should cause a hard lockup even if the buffer (if that's what it is) is exceeded. As mentioned, this same sketch runs fine on AVR and Kinetis boards without any worries.
Is anyone else seeing the same types of issues?
To reproduce, here is a SUPER simple sketch based on the Arduino Serial example that runs on AVR and Teensy 3.5/3.6 systems without a problem:
Code:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(115200);
}
// the loop routine runs over and over again forever:
void loop() {
// print out the value you read:
Serial.println(millis());
delay(1); // delay in between reads for stability
}
On the Teensy4 this runs for between 5 and 10 seconds before locking up. The problem occurs fairly quickly with the delay value set to 1 or 2 and with 3 it seems to run most of the time without issue but does freeze occasionally (Up to 120+ seconds after startup). With delay values of 4 and above it seems fine.
I understand there's a limited serial transmit buffer, but I would not expect that doing something like this should cause a hard lockup even if the buffer (if that's what it is) is exceeded. As mentioned, this same sketch runs fine on AVR and Kinetis boards without any worries.
Is anyone else seeing the same types of issues?