Debug Maple Mini Clone with Visual Code in Linux
Found maple mini clone is collecting dust and wanna to bring them back to life.
Here are the steps to flash or debug the code.
-
Follow this reference to setup development environment. (Fork backup)
- Install STM32CubeMX from STM32
- Install
arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-newlib - Install
make - Install
openocd - Install
vs codewith extensions:stm32-for-vscode,ms-vscode.cpptools
-
Follow this reference to create a blinky project. (pdf backup here)
First Code – Nefastor Online maple mini project code gen- Note:
Project Manager->Project->Toolchain/IDEand set it to Makefile. according tobonnee/stm32vscode.md - Note: Under the Code generator tab, enable the
Copy all used libraries into the project folderoption. This step is needed because stm32-for-vscode doesn't support the implicit inclusion of libraries yet. according tobonnee/stm32vscode.md
- Note:
-
In vscode press F1 and run
Build STM32 Projectand F5 to debug -
makeandst-flash write build/maple-mini-blinky-cubemx.bin 0x8000000
