https://github.com/lab11/stm32f0xx-gcc-setup
GCC-Makefile template for the STM32F0xx series.
https://github.com/lab11/stm32f0xx-gcc-setup
Last synced: about 1 month ago
JSON representation
GCC-Makefile template for the STM32F0xx series.
- Host: GitHub
- URL: https://github.com/lab11/stm32f0xx-gcc-setup
- Owner: lab11
- Created: 2015-07-09T20:59:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T21:42:07.000Z (over 4 years ago)
- Last Synced: 2025-01-19T10:43:31.798Z (over 1 year ago)
- Language: C
- Size: 32.2 KB
- Stars: 2
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
STM32F0XX
==========
This is a template to use the STM32F0xx with GCC and Makefiles.
It currently only runs on linux, and flashes programs with the JLink Segger programmer over SWD.
To use this code:
1. Download the STM [Standard Peripheral Library](https://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32048.html)
for the STMF0xx. Place it in a persistent location.
2. Download and install the [JLink tools](https://www.segger.com/jlink-software.html)
for your platform. Make sure that the binaries are added to your path.
3. Edit the application Makefile to specify:
- your specfic STM32F0xx device
- the location of the Standard Peripheral Library
- the location of the makefile template above (if not cloned recursively)
- any source files that you use
4. Use the supported commands to program and debug the chip:
- `make`: Compile
- `make flash`: Program the chip
- `make debug`: Run gdb
- `make erase-all`: Full erase of the chip
- `make startdebug`