-
Windows: Install the toolchain from arm's website Install Make
-
Linux: Install gcc-arm-none-eabi / gdb-multiarch / libnewlib-arm-none-eabi. Install Make
-
Windows: install from here
-
Linux: instal from local repo
That.. install that
By default CubeMX generates projects in a format called EWARM. Unfortunately, EWARM is currently not supported by the VSCode extension, but the more generic Makefile structure is. In order to configure CubeMX to support VSCode you have to navigate to Project Manager->Project->Toolchain/IDE and set it to Makefile.
Under the Code generator tab, enable the Copy all used libraries into the project folder option. This step is needed because stm32-for-vscode doesn't support the implicit inclusion of libraries yet. After doing that, click on GENERATE CODE; You should see the new Makefile project structure being created.
-
In STM32CUBEMX: Reload this project file (telegraph.ioc) goto Project Manager->Project->Toolchain/IDE and set it to EWARM, then regenerate.
-
Load project into STM32CUBEIDE
- STM32F103 (or, Blue Pill)
- Joystick Module
- Led + resistor for 3V3
- Cap: 100nF ceramic, 1uF electrolytic
- USB - TTL convertor
Use the following schemematic:
- Connect through some terminal application config as 8N1 115200 bauds.
- Plug device
- First screen:
- Tipe MORSE codes with the switch. Example:
- Commands:
- STn: Set unit Time
- GT: Get unit Time
- CB: Clear Buffer
- SB: Show Buffer