Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.18 KB

platform_STM32F411.md

File metadata and controls

44 lines (31 loc) · 1.18 KB

Platform STM32F411 (Black Pill)

This platform is abandoned at the moment. This section is intended to preserve knowledge for this platform in case it is picked up again.

Flashing the Built Firmware

  1. [WSL ONLY] Install the USBIPD-Win project.

  2. Install ST-Link tools.

    sudo apt-get install -y stlink-tools
  3. Plug in ST-LINK/V2 SWD interface to the target MCU.

  4. Plug in ST-LINK/V2 USB interface to your PC.

  5. Flash using the project tool.

    sudo python3 tools/m8ec.py -f -p <PLATFORM>

OpenOCD + VS Code + Cortex-Debug

  1. Install openOCD.

    sudo apt-get install -y openocd
  2. Open the project in VS Code.

  3. Install the marus25.cortex-debug extension in VS Code.

  4. Build debug version of the firmware and flash it to the target MCU.

    python3 tools/m8ec.py -t Debug -bf

    When flashing the debug version, the m8ec.py tool will finish by starting openOCD. You can stop it with Ctrl+C.

  5. In VS Code, press F5 or open the Debug tab and click the green arrow to start debugging.