25 November 2026
How to program an STM32 Black Pill from your browser, no STM32CubeIDE
You can write, build and flash STM32 firmware from a Chrome tab. No STM32CubeIDE, no compiler, no ST-Link, nothing to install. Here is how, step by step.
What you need
- A Black Pill with an STM32F411 (STM32F411CEU6).
- A USB cable that carries data, not only power.
- Chrome or Edge on a desktop computer (Windows, macOS, Linux or ChromeOS). The page flashes the board over WebUSB and talks to it over Web Serial. Safari, Firefox and phone browsers do not have them.
1. Describe what it should do
Open emwaver.ai and write what you want in plain words, for example "blink the LED when I press the KEY button" or "read an RFID card and show its ID". No account is needed to try.
The agent writes the C firmware for your board. It has a dedicated skill for the STM32, so it knows the Black Pill's clock, its USB pins, its LED and button, and the flash layout, without you looking them up.
2. It builds on the server
The firmware is compiled with arm-none-eabi-gcc and make on our servers, using ST's own device headers, HAL and USB device library. Nothing is installed on your computer. If the build fails, the agent reads the error and fixes it.
3. Plug in the board and flash
The STM32 has a USB bootloader built into the chip (ROM DFU). The page talks to it directly over WebUSB, so no programmer is needed.
The first time, put the board into DFU mode: hold BOOT0, tap NRST, release BOOT0. Then press Flash. Chrome asks which USB device to use; pick the STM32 bootloader. The page then:
- erases only the flash sectors the new firmware covers;
- writes the firmware and reads it back to check it;
- leaves DFU mode, and the board resets and runs your firmware.
After that, you do not need the buttons. The firmware EMWaver builds can reboot itself into DFU on command, so when a new build is ready and the board is plugged in, the page sends the board into DFU, waits for the bootloader, and flashes it by itself.
4. Use the app that comes with it
This is the part an IDE does not give you. Every build comes with a small web app beside it that talks to the board over Web Serial, through the board's own USB serial port: buttons to send commands, live readouts, and charts. No Serial Monitor, no printf archaeology. That port opens with no driver on any OS. Open the app again any time, on any computer with Chrome.
Or skip the prompt
The Library has a ready-made Black Pill app: an RFID reader for a Black Pill with an RC522 module, which reads MIFARE Classic 1K cards. Open it and flash it as is, or make your own copy and ask for changes in plain words.
Common problems
- Chrome does not list the bootloader.
- Try another cable (many are power-only) and another USB port, then do the BOOT0 and NRST steps again. If the board still does not show up in DFU mode, pin A10 may be floating: a 10k resistor from A10 to GND fixes it.
- On Windows, the bootloader shows up but will not open.
- Windows needs the WinUSB driver for the STM32 bootloader. Do this once: open Zadig, pick STM32 BOOTLOADER, and install WinUSB. macOS, Linux and ChromeOS need nothing.
- The page says "Press Flash once to allow the DFU device".
- The board rebooted into DFU, but this browser has not been allowed to use the bootloader yet. Press Flash once and pick it. After that, flashing is automatic.
- The port is busy.
- Close a serial monitor, or another tab that has the board's serial port open. Only one program can use it at a time.
Other boards
The same flow works for ESP32, ESP8266, Raspberry Pi Pico and Arduino Uno/Nano. See EMWaver vs Claude Code for why we built it this way.
