USB COM Port Not Detected on Custom STM32H757 Flight Controller After Flashing ArduPilot Bootloader

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.dat and hwdef-bl.dat files 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:

  1. Verified continuity from the USB Type-C connector through the USB data-line circuitry to the MCU USB pins.

  2. Confirmed that there are no short circuits between D+, D−, 3.3 V, 5 V, and GND.

  3. Measured the CC1 and CC2 pull-down resistors. Both measure approximately 5.096 kΩ.

  4. Confirmed that the USB connector provides approximately 5 V when connected to the PC.

  5. 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:

  1. Bootloader configuration: Are there specific hwdef-bl.dat settings required to enable USB communication on a custom STM32H757IIT6 board?

  2. USB initialization: Does the ArduPilot bootloader initialize the STM32H757 USB peripheral and its USB power domain automatically, or are additional board-specific settings required?

  3. 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?

  4. Debugging procedure: What is the recommended method for checking whether the bootloader starts and whether USB enumeration is attempted?

  5. 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.

Can you summarize this without pasting LLM output? It’s a long post for what appears to be a short amount of content.

You could check the application note :
https://www.st.com/resource/en/application_note/dm00337873-getting-started-with-stm32h74xig-and-stm32h75xig-hardware-development-stmicroelectronics.pdf section 2.1.2

( Following courtesy of ChatGPT) :

On STM32H757IITX should VDD33_USB ( pin 121) not just be connected to 3.3V ?

Yes—if you are supplying the USB circuitry from your board’s 3.3 V rail. ST specifies this connection:

  • VDD33USB (pin 121): connect to 3.3 V.
  • VDD50USB (pin 120): connect to that same 3.3 V rail.
  • Fit local decoupling on VDD33USB, and leave the internal USB regulator disabled in firmware. ST describes this as the external USB supply configuration.

The alternative is to supply VDD50USB with 5 V and use the internal regulator to generate 3.3 V on VDD33USB. In that configuration, VDD33USB gets a capacitor to ground, rather than a connection to your external 3.3 V rail.

Hello
I’m bringing up a custom flight controller using the STM32H757 (176-pin package) and I’m stuck on a USB enumeration issue. I’ve successfully flashed the ArduPilot bootloader via ST-Link, but the board isn’t being detected by my PC.
On my board, I have VDD50USB tied to 5V, and VDD33USB is just decoupled with capacitors. This means I need to rely on the STM32’s internal USB LDO to generate the 3.3V for the USB PHY.
According to the datasheet, I need to enable the USB33DEN and USBREGEN bits in the PWR_CR3 register.
I checked the live register and PWR_CR3 is currently reading 0x01010044, but it needs to be 0x03010044 to enable the LDO.
To fix this, I edited the stm32h7_mcuconf.h file in ChibiOS to manually add those flags to the power configuration:
#ifdef SMPS_PWR
#define STM32_PWR_CR3 (PWR_CR3_SMPSEN | PWR_CR3_USB33DEN | PWR_CR3_USBREGEN)
#elif defined(SMPS_EXT)
#define STM32_PWR_CR3 (PWR_CR3_BYPASS | PWR_CR3_USB33DEN | PWR_CR3_USBREGEN)
#define
#define STM32_PWR_CR3 (PWR_CR3_LDOEN | PWR_CR3_USB33DEN | PWR_CR3_USBREGEN)
#endif

I rebuilt and flashed the new bootloader, but when I read the PWR_CR3 register via ST-Link, it is still stuck at 0x01010044.