Formula Student / embedded firmware & data

Sep 2025 – present

N7 Racing

Formula Student electric car. I lead the DATA pole, eleven engineers working on acquisition, calibration, CAN and diagnostics, including testing during the team's first successful roll. I write STM32H753 firmware in C and develop CAN Lab, the desktop tool in which we edit, compile and flash that firmware onto NUCLEO boards, then run it against simulated CAN traffic before it reaches the car.

FIG. 01 · Two boards on a CAN busIllustration.
01

My contribution

  • DATA pole leadIn the pole since September 2025 and lead since May 2026: eleven engineers on acquisition, calibration, CAN and diagnostics, and testing during the first successful roll.
  • STM32 firmwareC on STM32H753: CAN and CAN-FD, acquisition, timeouts and diagnostics, with interfaces to the NXP S32K358 BMS, the Continental gVCU and the inverter.
  • CAN LabA desktop tool, Rust core and TypeScript interface, that takes the C firmware from the editor to a board and tests it against simulated vehicle traffic.
02

CAN Lab

The firmware is written in C; CAN Lab itself is a desktop application. With its current version we write the firmware module, compile it, flash it onto three NUCLEO-H753ZI boards and simulate the vehicle around it.

CAN Lab: from C firmware to the board, and from scenario to diagnosticsFirmware path: the C module is edited in CAN Lab, built with arm-none-eabi-gcc for the Cortex-M7 against a validated runtime, then flashed with STM32CubeProgrammer over the ST-LINK SWD link into the application region of a NUCLEO-H753ZI. Scenario path: virtual ECUs, a training ECU or a synthetic vehicle bus, generate CAN frames that travel with COBS framing and CRC-32 over the ST-LINK virtual COM port; the firmware's results, logs, heartbeat and fault reports return to the cockpit. The vehicle CAN network, with the gVCU, inverter, BMS and logger, is separate; a physical CAN bench to join them is not built yet.PC · CAN LAB · RUST CORE, TYPESCRIPT UIVEHICLE CAN NETWORKSWD over ST-LINK USBvirtual COM port,same USB cablephysical CAN benchnot built yetC editorfirmware modulein CBuildarm-none-eabi-gcc,Cortex-M7 + runtimeFlashapplication region,runtime hash checkCircuit solversensor source modelsVirtual ECUstraining ECU orsynthetic vehicle busN7RT linkCOBS + CRC-32,credit flow controlCockpitframes, values, latency,faults, diagnosticsNUCLEO-H753ZIvalidated runtime+ C firmware moduleresults, heartbeat, faultsgVCUInverterBMSLoggerFIRMWARE PATH · EDIT, BUILD, FLASHSCENARIO PATH · SIMULATE, OBSERVECAN / CAN-FD
  • Data
  • Command
  • Not built yet

FIG. 02Two linked paths. Top: edit, build and flash over SWD. Middle: virtual ECUs send CAN frames to the board over the ST-LINK serial link and the results come back to the cockpit. The vehicle network is separate.
  • Edit and buildC editor for the firmware module, compiled with arm-none-eabi-gcc for the Cortex-M7 against a validated runtime and a fixed linker script.
  • FlashSTM32CubeProgrammer over ST-LINK SWD writes only the application region and checks the runtime hash before and after.
  • SimulateVirtual ECUs: a training ECU, and a synthetic vehicle bus with pedal, wheel-speed, steering and brake-pressure sensor ECUs plus VCU, inverter, BMS, dashboard and logger nodes.
  • ObserveA cockpit with the frame table, published values, link and diagnostic views, round-trip and loss metrics, and detection of stalls and fault reports.
  • Circuit labA nodal-analysis solver with transient simulation for sensor, transceiver and termination circuits.
03

Bench results

NUCLEO-H753ZI · 5 October 2026

Throughput
600 frames/s for five minutes: 180,106 frames sent and 180,106 results returned, with no loss or link error.
Round trip
p99 6.2 ms between the application and the board.
Display latency
Stimulus to displayed value: p95 67 ms.
Link
Simulated CAN frames over the ST-LINK serial link, not a physical CAN bus.
04

Vehicle network

On the car, the Continental gVCU sits at the centre of the CAN network with the inverter, the BMS on an NXP S32K358 with CAN-FD, the data logger and the dashboard. CAN Lab is not wired to that network: a bench of two NUCLEO boards with CAN transceivers will carry its frames onto a real bus.

Physical CAN bench: in progress

Car-to-pit LoRa telemetry was tested on a breadboard; range and packet-loss results are not published.

05

Electric kart retrofit

We retrofitted a kart to electric drive, a project for 3EA students aimed at the ENEDIS EV Challenge. It is separate from the Formula Student car.