Software reboot for the T4

DrM

Well-known member
Is there a way to reboot the T4 from within a sketch?

For example, here is a restart() function for the T3. How would we code a restart() for the T4?

#define RESTART_ADDR 0xE000ED0C
#define WRITE_RESTART(val) ((*(volatile uint32_t *)RESTART_ADDR) = (val))

void restart() {
WRITE_RESTART(0x5FA0004);
}


Thank you
 
Yup, E000ED0C is the ARM AIRCR hardware register. It's the same on all ARM Cortex-M chips. Should work fine on Teensy 4.0.
 
Back
Top