|
PER Firmware
|
This guide covers firmware updates from DaqApp. See the resident G4 bootloader guide for architecture, protocol, flash layout, and recovery.
The updater supports the seven STM32G474 nodes: main_module, dashboard, torque_vector, a_box, front_driveline, rear_driveline, and pdu.
From the repository root, build the firmware and package:
The command writes artifacts/firmware/manifest.json, artifacts/firmware/firmware_<git-ref>.tar.gz, and resident images under artifacts/firmware/bootloader_<node>/. Flash the matching bootloader_<node>.bin before the first application update. The archive contains application payloads; it does not replace resident bootloaders.
artifacts/firmware/manifest.json or firmware_*.tar.gz.Selected boards update sequentially. Front and rear driveline are separate nodes.
In the normal flow, DaqApp sends START to reset a running application into the resident bootloader. After READY, it erases, transfers, validates, and hands off the image. A target already in the resident bootloader starts directly.
Armed mode requires exactly one selected target and sends no CAN frames while waiting. After arming, manually reset or power-cycle the target into the resident bootloader. When its matching READY response arrives, DaqApp begins the update automatically. Normal Start update requires recent bootloadable telemetry for every selected target and supports multi-target sequential updates. Cancel the armed wait from the Bootloader widget if the target does not become ready.
See the resident guide for protocol and flash details.
Cancel stops DaqApp's host state machine but cannot undo target writes. Retry a cancelled or failed board before vehicle use. The protocol has no authentication or rollback; use stable power and a trusted bus.