https://github.com/becseya/vanillacube
Lightweight C++ development environment for STM32 microcontrollers
https://github.com/becseya/vanillacube
cpp cubemx embedded-systems stm32
Last synced: 6 months ago
JSON representation
Lightweight C++ development environment for STM32 microcontrollers
- Host: GitHub
- URL: https://github.com/becseya/vanillacube
- Owner: becseya
- Created: 2021-03-07T17:47:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T20:02:04.000Z (about 4 years ago)
- Last Synced: 2024-12-30T01:47:16.199Z (over 1 year ago)
- Topics: cpp, cubemx, embedded-systems, stm32
- Language: C++
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VanillaCube
Lightweight C++ development environment for microcontrollers with a built-in template library.
VS Code + Linux + STM32 Cube + C++ = :heart:
## Installation
#### GNU Arm Embedded Toolchain
- `sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi`
#### Cube MX code generator:
- Download and install STM32 Cube MX form: https://www.st.com/en/development-tools/stm32cubemx.html
- Place a link pointing to the executable at: `~/.bin/STM32CubeMX`
#### ST-Link Programmer:
- `sudo apt-get install libusb-1.0`
- Download ST-LINK firmware updater tool from: from: https://www.st.com/en/development-tools/stsw-link007.html
- Follow the instructions, but as a recap:
- Update firmware by: `sudo java -jar STLinkUpgrade.jar`
- Update kernel driver rules by: `sudo dpkg -i st-stlink-udev-rules-xxxx-linux-noarch.rpm`
- Apply changes by rebooting or by: `sudo udevadm control --reload-rules && sudo udevadm trigger`
- Download and install STM32 Cube Prog from: https://www.st.com/en/development-tools/stm32cubeprog.html
- Place a link pointing to the CLI executable at: `~/.bin/STM32_Programmer_CLI`
#### VanillaCube:
- Create a new git repo for your project
- Add **VanillaCube** as a submodule by: `git submodule add https://github.com/becseya/VanillaCube`
- Run `VanillaCube/new-project.sh`