https://github.com/lab11/stm32l1xx-gcc-setup
GCC-Makefile template for the STM32L1xx series.
https://github.com/lab11/stm32l1xx-gcc-setup
Last synced: 2 months ago
JSON representation
GCC-Makefile template for the STM32L1xx series.
- Host: GitHub
- URL: https://github.com/lab11/stm32l1xx-gcc-setup
- Owner: lab11
- Created: 2016-08-19T21:23:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-21T17:41:23.000Z (almost 10 years ago)
- Last Synced: 2025-01-19T10:43:31.728Z (over 1 year ago)
- Language: C
- Size: 10.7 KB
- Stars: 3
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
STM32L1XX
==========
* Based on the stm32l0xx-gcc-setup [repo](https://github.com/lab11/stm32l0xx-gcc-setup)
This is a template to use the STM32L1xx 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](http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1939)
for the STML1xx. 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 STM32L1xx 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
- also ensure that the correct linker file for your device is copied into
`template/ld`
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`