Skip to content

Bring-Up & Testing

First power-on to a verified DCS connection, in order. Don't skip ahead — each step gates the next. Use the status LED and DiagSerial as your instruments throughout.

Photos coming

The textual procedure is complete; bench photos are still being produced — (photo TBD).

1. Power and rails

Before flashing anything, power the board from the bench supply (or bus) and confirm:

  • The 3.3 V rail is at 3.3 V (AMS1117 output).
  • No part is getting hot. If anything is, kill power — recheck assembly.

(photo TBD — multimeter on the 3.3 V test point)

2. Flash and watch the status LED

Flash the firmware, then read the bi-color status LED:

LED Meaning
Red blinking Booting / initialising
Green blinking Normal — CAN bus healthy
Red fast blink TEC > 0 — transmit errors
Red solid Bus-off
Red / green alternating Warning / degraded
Red + green together In the bootloader, not running the firmware — see The status LED

Red-solid or red-fast on a single board usually means no other node / no termination — CAN needs 120 Ω at the two end nodes. Confirm bus wiring before chasing firmware.

3. DiagSerial

Attach a USB-to-TTL adapter to the 3-pin debug header, open the monitor at 115200. With STM32Board::setDebug(true), the board narrates boot, NODE_ID, and CAN status. Confirm the NODE_ID matches what you claimed.

4. Join the bus

Connect PanelBridge and the SimGateway. On a healthy bus the node settles to green blinking. At boot the node completes its input poll, sends its current input state, then READY. When PanelBridge first sees the node (its READY, or its heartbeat if the node was already running), it asks that node alone for its state with a SYNC_REQ, and the node sends it again. Gauge steppers home to position 0 at boot (mechanical-stop homing) before any DCS data arrives — so no random needle motion.

5. End-to-end in DCS

Start DCS-BIOS export and load the A-4E-C. Then:

  • Outputs: trigger the sim state (e.g. a caution light) and confirm the LED/gauge follows.
  • Inputs: flip a switch and confirm the cockpit state changes in the sim.

The E2E_DCS_Test example is the simplest case — Master Test lights the gear light through the full loop.

Recovering from a power cut during an update

A firmware update is safe to interrupt: a board switches to its new firmware only once all of it has arrived and checked out. If the power goes off partway through:

  1. Power the cockpit back up. If the Gateway stayed connected to the PC and the power came back within a few seconds, the update may finish by itself: wait for the LEDs to settle. Otherwise the board whose update was cut short shows red and green blinking together: it is waiting in its bootloader, with no firmware to start. A board cut off before its old firmware was erased starts the old version instead, and one cut off after all of the new firmware had arrived starts the new one.
  2. Open SkyHawkClient with the Gateway connected. If it reports the update as failed, or lists the board as waiting in its bootloader, the board still needs its firmware.
  3. If it does, run the update for that board again. When it finishes, the board restarts on the new firmware and its LEDs go back to the normal patterns above.

The same steps apply when the board cut short was the Gateway's own cockpit side: update the Gateway again.

Troubleshooting

Symptom Likely cause
Red solid, single board No bus partner / missing 120 Ω termination
Upload: "only supports deprecated HLA" ST-Link firmware older than V2J24 — update the probe
ST-Link "tap not found" Clone JTAG ID — set CPUTAPID 0 (details)
Nothing on DiagSerial setDebug(false), wrong baud, or TX/RX swapped
Output never updates DCS-BIOS export not running, or wrong A_4E_C_* address/mask
Input does nothing Wrong controlId (DCS-BIOS vs HID), or pull-up missing

Full diagnostics reference

Heartbeats, error counters, and the SYNC_REQ/READY handshake are detailed under the CAN protocol — see CAN Bus Protocol.