🛠 Pousser la carte : overclocking 912 MHz, gestion d'alimentation, sécurité et récupération

Teensy 4.0 · avance · Schéma : IMG-teensy-40-avance-9-teensy40-overclock-alim-securite-recuperation.svg — Teensy 4.0 avec dissipateur + petit ventilateur sur la puce MIMXRT1062, pile CR2032 sur VBAT, broche On/Off ; encarts : Tools > CPU Speed (600 → 912 MHz), LED rouge du bootloader (puce séparée), bouton Program avec la mention « maintien 13-17 s = effacement total ».

Objectives

The maturity tutorial: overclock cleanly, size the power supply, use the VBAT battery and the On/Off pin, and know how to recover a seemingly lost board — keeping in mind the absence of a hardware reset.

Overclocking: what is official, what is not

Complete code

// Overclock officiel max + reset logiciel (aucune broche reset !).
void setup {
  Serial.begin(9600);
  set_arm_clock(912000000);   // 912 MHz : max OFFICIEL — refroidir !
  Serial.printf("ARM = %u MHz\n",
                (unsigned)(F_CPU_ACTUAL / 1000000UL));
}

void loop {
  if (Serial.available && Serial.read == 'r') {
    Serial.println("reinitialisation...");
    delay(10);
    SCB_AIRCR = 0x05FA0004;   // SYSRESETREQ : le seul reset possible
  }                           // (pas de broche reset sur Teensy 4.0)
}

Power supply and battery

Safety and recovery

Expected verification

The Monitor displays "ARM = 912 MHz"; the internal temperature sensor (tutorial 3) shows thermal drift before/after fan activation. The 'r' command triggers serial port re-enumeration: software reset works. Remove USB for 10 minutes: the RTC keeps time thanks to VBAT. Test recovery on a test board: 13-17 s erase → the LED starts blinking (backup program) → a simple upload brings the board back to life.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials