Skip to main content
Visitor
Nov 21, 2026 5:12 PM UTC
Question

STM32Cube AI Studio: COM port list is empty for custom board (STM32H750VBT6 + external USB-TTL), but validation works in CubeMX

Hi everyone,

I'm trying to run on-device validation of a TFLite model in STM32Cube AI Studio on a custom (non-ST) board, but the COM port dropdown in Board settings stays empty. The same setup works in STM32CubeMX with X-CUBE-AI.

SETUP
- Board: WeAct STM32H750VBT6 (no on-board ST-LINK)
- Debugger: external ST-LINK/V2 (clone, firmware V2J37S7) over SWD, detected as "STM32 STLink"
- UART: CH340 USB-TTL adapter, detected in Device Manager as "USB-SERIAL CH340 (COM16)"
- Wiring: USART2, PA2 (TX) / PA3 (RX), 115200, GND shared
- Model: small MLP (soc_model.tflite, 3.5 KB weights)
- OS: Windows 11
- STM32Cube AI Studio: 1.4.0
- STM32CubeMX: [6.18.1], X-CUBE-AI 10.2.1, STM32CubeProgrammer v2.23.0

WHAT WORKS
- STM32CubeProgrammer connects through COM16 (UART bootloader) and through ST-LINK.
- In STM32CubeMX, "Validate on target" with USART2, COM16, 115200 completes successfully (cross-accuracy RMSE ~1e-5, ~0.096 ms/inference).

WHAT DOESN'T WORK IN AI STUDIO
- Board settings shows UART interface USART2, RX PA3, TX PA2, baudrate 115200, but the COM port field is empty and the dropdown does not list COM16.
- Earlier, when the target was set to STM32H750B-DK, I got: "Serial number not found. Wrong parameter: sn=385036723434", and the only COM port listed was a USB CDC port from the board's Type-C connector ("COM20 | No device"), not the CH340.

WHAT I TRIED
- Restarting AI Studio, refreshing "Connected boards", replugging the CH340 and ST-LINK, closing CubeMX/CubeIDE/CubeProgrammer.

QUESTIONS
1. Does AI Studio support on-device validation on custom boards using an external USB-UART adapter (not an on-board ST-LINK virtual COM port)?
2. Is the COM port list filtered to ST-LINK virtual COM ports only? If so, is there a way to select a generic COM port such as a CH340?
3. If this is not supported, is CubeMX + X-CUBE-AI the recommended workflow for this kind of board?

Thanks in advance. I can attach screenshots of Device Manager and Board settings if needed.