Roadmaps / STM32 / Setup and lab safety
Read first
Setup and lab safety
Order the board first. The NUCLEO-G474RE is an active product (ST product page, checked 22 Nov 2026) and stock varies by seller, so check before you plan Week 1.
| Item | Why you need it | Typical price (estimate) | Needed? |
|---|---|---|---|
| NUCLEO-G474RE (STM32G474RE, Cortex-M4F at 170 MHz, 512 KB flash in two banks, 128 KB SRAM including 32 KB CCM SRAM; on-board ST-LINK/V3E) | The board and its debugger | US$17 to 31 by seller (checked 22 Nov 2026) | Yes |
| USB cable for the board's ST-LINK connector (Micro-B on the revision in UM2505; check yours) | Power, debug and a virtual serial port | $4 | Yes |
| 8-channel USB logic analyzer that works with sigrok (typically 24 MHz sampling, about 42 ns resolution) | An independent check of timing and of the power-cut drills | $12 | Yes |
| Breadboard, jumper wires, resistors (10 kΩ x4, 1 kΩ, 100 kΩ) and capacitors (100 nF x3) | The RC plant, the disturbance load and the safe-state pull-down | $12 | Yes |
| Delay-relay module (3.3 V trigger, holds the relay open for a set time such as 1 s, own 5 V supply) | The board triggers a cut that lasts after the board dies (Week 15) | $5 | Yes, from Week 15 |
A USB cable with the +5 V wire routed through the relay above (or a hub with per-port power switching that uhubctl supports; not all hubs do) | Power cuts in Phase 4 | $5 to 20 | Yes, from Week 15 |
| CAN transceiver module (3.3 V logic) and a USB-to-CAN adapter | Real CAN traffic in Week 10; the core path uses FDCAN internal loopback | $15 to 30 | Optional |
| Oscilloscope | Easier ripple and latency views | $0 to 400 | Optional |
The minimum kit (everything marked Yes) is about US$55 to 85. Everything in the milestone runs on the board and a laptop; nothing needs cloud spend. Read UM2505 (Rev 7, May 2026) to see whether your board has a CAN transceiver before you rely on one.
| Risk | Rule |
|---|---|
| Wrong voltage destroys a pin | Use 3.3 V signals. Check each pin you use in the datasheet: not every pin is 5 V tolerant, and analog pins are not. |
| Readout protection locks you out | Never set readout protection level 2 (irreversible). Level 1 can be removed, but removing it erases the flash. Leave both alone until Phase 4. |
| Wrong option byte makes the board look dead | Record the factory option bytes in Week 1 with STM32CubeProgrammer. Recovery is to connect under reset and rewrite them. Do not change boot or write-protection bits you cannot explain. |
| Relay rig | 5 V only, never mains. Use a spare cable, cut only its +5 V wire, and power the relay module from a second USB port, not through the cable it cuts. Confirm each cut: the board's LED goes dark and the analyzer's rail channel goes low. |
| Power-cut drills corrupt flash | Run them on your own board only, from a recorded known-good image on your laptop. A cut during an erase can leave a page half-written, which is what the drill tests. |
| Security | The G4 has no hardware secure boot. It offers readout protection, write protection and a securable memory area (datasheet). Plan signed images and a small attack surface instead (ADR-6). |