Do I need to initialize the pins in fast mode upfront?
IOMUXC_GPR_GPR27 = 0xFFFFFFFF; // Initialize pins
GPIO9_GDIR |= (1<<4); // pinMode(2,OUTPUT);
GPIO9_DR_SET &= ~0xF7; // digitalWrite(2,LOW);
GPIO6_GDIR |= (1<<2); //...
Thanks for the input guys. Pauls hint " I can tell you programs which crash early" pushed me into the right direction.
I was able to cut down the problem to this code:
extern "C" void startup_early_hook(void) {
pinMode(2,OUTPUT)...
I downgraded the Teensy support to 0.59.5 but the problem persists
When I flash an empty sketch, the Teensys startsup ok and comes up with the serial port.
@kd5rxt-mark
Serial is set to "serial".
I added "Crash report", but i do not get any serial port from the device. As if the microcontroller doesnt run the whole program proberly.
I upgraded my hardware to Mac OSX Sonoma 14.2.1 and running an M3 unit
Arduino: 2.2.1
Teensy via boards manager: 1.58.1
Old unit was still an MacIntel machine (10.15.7):
Arduino: 1.8.13
Teensyduino: 1.53
When I upload my perfectly running...