This platform is abandoned at the moment. This section is intended to preserve knowledge for this platform in case it is picked up again.
-
[WSL ONLY] Install the USBIPD-Win project.
-
Install ST-Link tools.
sudo apt-get install -y stlink-tools
-
Plug in ST-LINK/V2 SWD interface to the target MCU.
-
Plug in ST-LINK/V2 USB interface to your PC.
-
Flash using the project tool.
sudo python3 tools/m8ec.py -f -p <PLATFORM>
-
Install openOCD.
sudo apt-get install -y openocd
-
Open the project in VS Code.
-
Install the
marus25.cortex-debug
extension in VS Code. -
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
. -
In VS Code, press
F5
or open the Debug tab and click the green arrow to start debugging.