Hello ArduPilot Developers and Community,
I am developing a custom flight controller based on the STM32H757 and am facing an issue with USB communication after flashing the ArduPilot bootloader.
I generated the bootloader HEX file using the ArduPilot build system after modifying the hardware definition files (hwdef.dat and hwdef-bl.dat) for my custom board. I flashed the generated AP_Bootloader.hex using an ST-Link V2 debugger and STM32CubeProgrammer.
However, when I connect the flight controller to my Windows PC using the USB Type-C connector, no USB COM port appears in Device Manager, and I cannot connect to the flight controller through Mission Planner.
I would appreciate guidance from developers who have experience porting ArduPilot to custom STM32H7-based hardware.
1. Hardware Details
-
Flight controller: Custom flight controller
-
MCU: STM32H757, LQFP176 package
-
Architecture: FMU and IO Processor
-
USB connector: USB Type-C, used for both board power and communication
-
Flashing/debugging: ST-Link V2 and STM32CubeProgrammer
-
Firmware flashed:
AP_Bootloader.hex, generated using the ArduPilot build system -
Hardware configuration: Custom
hwdef.datandhwdef-bl.datfiles based on the board design -
Ground station: Mission Planner on Windows
I have currently flashed the bootloader HEX file and am troubleshooting USB enumeration before proceeding further.
2. USB Hardware Connections
The USB Type-C connector is connected to the FMU through the USB data lines and protection circuitry.
The STM32H757 USB pin connections are:
-
Pin 130 — PA11 / USB D−
-
Pin 131 — PA12 / USB D+
The D+ and D− lines pass through 22 Ω series resistors before reaching the MCU. The USB Type-C connector also includes 5.1 kΩ pull-down resistors on CC1 and CC2.
3. Checks Already Performed
I have performed the following hardware checks:
-
Verified continuity from the USB Type-C connector through the USB data-line circuitry to the MCU USB pins.
-
Confirmed that there are no short circuits between D+, D−, 3.3 V, 5 V, and GND.
-
Measured the CC1 and CC2 pull-down resistors. Both measure approximately 5.096 kΩ.
-
Confirmed that the USB connector provides approximately 5 V when connected to the PC.
-
Verified that the main MCU VDD supply is approximately 3.297 V across its decoupling capacitors.
4. Current Problem
After flashing AP_Bootloader.hex using ST-Link V2 and connecting the board through USB Type-C:
-
No COM port appears in Windows Device Manager.
-
Mission Planner cannot establish a USB serial connection.
-
The board powers up through the USB Type-C connector.
-
The main MCU supply voltage is normal, but VDD33USB measures approximately 0.1 V and VDD50USB measures 5.02V
I have not yet determined whether the bootloader is running correctly or whether the USB device is enumerating in any mode.
Questions for the ArduPilot Developers
I would appreciate advice on the following points:
-
Bootloader configuration: Are there specific
hwdef-bl.datsettings required to enable USB communication on a custom STM32H757IIT6 board? -
USB initialization: Does the ArduPilot bootloader initialize the STM32H757 USB peripheral and its USB power domain automatically, or are additional board-specific settings required?
-
USB supply: Is the VDD33USB measurement of approximately 0.1 V consistent with any expected STM32H757 USB power configuration, given that VDD50USB is supplied with 5 V and the main VDD is 3.297 V?
-
Debugging procedure: What is the recommended method for checking whether the bootloader starts and whether USB enumeration is attempted?
-
Firmware build: Are there particular target configuration, USB pin mapping, clock configuration, or bootloader build options I should verify for a custom STM32H757 board?
I would be happy to provide the relevant hwdef.dat, hwdef-bl.dat, schematic pages, build commands, and any additional logs or measurements needed.
Thank you for your time and support. Any suggestions on the next debugging steps would be greatly appreciated.