Writing /var/lib/dokuwiki/data/meta/tutorials/stm32f4.meta failed
tutorials:stm32f4
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:stm32f4 [2019/05/30 18:39] – dgarcia | tutorials:stm32f4 [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Arm Toolchain | + | ====== Using the STM32F* ====== |
- | ==== Debian Jessie or newer ==== | + | **NOTICE**: |
- | If you have Debian jessie (or newer) | + | |
- | sudo apt install gcc-arm-none-eabi | + | If you are using a personal computer, and are using Debian Buster or newer, then execute: |
+ | sudo apt install gcc-arm-none-eabi libftdi1 openocd libusb-1.0-0-dev stlink-tools | ||
+ | |||
+ | ===== Libopencm3 ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | |||
+ | To build the library: | ||
+ | |||
+ | cd ~/ | ||
+ | git clone https:// | ||
+ | cd libopencm3-examples | ||
+ | git submodule init | ||
+ | git submodule update | ||
+ | cd libopencm3 | ||
+ | make | ||
+ | | ||
+ | Be sure to install | ||
+ | |||
+ | To build an example and flash it to the f4discovery: | ||
+ | |||
+ | cd ../ | ||
+ | cd examples/ | ||
+ | make | ||
+ | make flash | ||
+ | |||
+ | |||
+ | =====New STM versions===== | ||
+ | |||
+ | New versions use STLINK 2-1. If you have errors, flashing the microcontroller, | ||
+ | |||
+ | $ make flash OOCD_INTERFACE=stlink-v2-1 | ||
+ | |||
+ | |||
+ | ===== Old Debian version ===== | ||
+ | |||
+ | ** WARNING **: Only follow this tutorial if you are using Jessie or older versions. | ||
+ | |||
+ | === Arm Toolchain === | ||
+ | |||
+ | |||
+ | **Warning**: | ||
- | ==== Old Debian versions ==== | ||
Before we used the summon-arm-toolchain script to make the crosscompiler tool, but now summon-arm-toolchain is not maintained anymore and now they recommend to use the official toolchain from ARM: | Before we used the summon-arm-toolchain script to make the crosscompiler tool, but now summon-arm-toolchain is not maintained anymore and now they recommend to use the official toolchain from ARM: | ||
Line 58: | Line 98: | ||
- | ===== Stlink ===== | + | === Stlink === |
+ | |||
+ | **WARNING**: | ||
Project' | Project' | ||
Line 108: | Line 150: | ||
- | ===== Libopencm3 ===== | ||
- | |||
- | [[http:// | ||
- | |||
- | |||
- | To build the library: | ||
- | |||
- | cd ~/ | ||
- | git clone https:// | ||
- | cd libopencm3-examples | ||
- | git submodule init | ||
- | git submodule update | ||
- | cd libopencm3 | ||
- | make | ||
- | | ||
- | Be sure to install | ||
- | |||
- | To build an example and flash it to the f4discovery: | ||
- | |||
- | cd ../ | ||
- | cd examples/ | ||
- | make | ||
- | make flash | ||
- | |||
- | |||
- | ======New STM versions====== | ||
- | |||
- | New versions use STLINK 2-1. If you have errors, flashing the microcontroller, | ||
- | |||
- | $ make flash OOCD_INTERFACE=stlink-v2-1 | ||
- | ~~DISCUSSION~~ |
tutorials/stm32f4.1559241589.txt.gz · Last modified: 2022/09/20 00:08 (external edit)