Black Pill¶
Uploading Code¶
There are two ways to load code onto the board: 1. Upload via JTAG 2. Upload via DFU
Example: Uploading via JTAG¶
In this example, we'll compile the Arduino Blink example and upload it via the JTAG port using Segger Ozone.
Example: Uploading via DFU¶
Example: Using MicroPython¶
To flash the Micropython firmware, do the following: - git clone https://github.com/peddamat/micropython-stm32f407ve.git - ./build.sh - ./run.sh
The firmware files should now be in the 'output' subdirectory.
Power on the board in "DFU Mode", and then upload the 'firmware.elf' file using STM32CubeProgrammer.
After burning the firmware, move the Boot bin back to normal and reboot the board.
The board should now show up as a serial port and a disk drive:
Connect to the REPL via Putty and type the following:
Links¶
Last update: 2023-03-16