Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Flashing STM32 Firmware Directly from VS Code over UART: An Open-Source Extension

说明与用途

VS Code 扩展可通过 CH340 USB‑UART 直接使用 UART 对 STM32 进行闪存,无需 ST‑Link。

问题

Developers need to flash STM32 boards that lack ST‑Link or native USB, using only a USB‑UART bridge.

结果

Flashing is performed entirely within VS Code, eliminating the need for ST‑Link hardware and separate flashing utilities.

工作流

  • Build firmware to .hex or .bin
  • Open SerialFlash panel or run "SerialFlash: Open Flasher Panel"
  • Select serial port, firmware file, and reset mode
  • Click "Flash" or use Cmd+Alt+F (Ctrl+Alt+F)
  • Monitor SerialFlash output for bootloader version, product ID, erase, write, verify, and reset

证据

If you have ever bought one of those small STM32 boards with a USB-C port, there is a good chance that port goes to a USB-UART chip (often a CH340).

来源

You build your project, press Cmd+Alt+F (Ctrl+Alt+F on Windows and Linux), and it enters the bootloader, erases, writes, verifies and resets the board into the new firmware.

来源

The extension defaults to 115200 baud.

来源

  • 记录日期: 2026-10-21T04:41:24.871Z