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 [2016/10/28 11:22] – [Stlink] amora | tutorials:stm32f4 [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Using the STM32F* ====== | ||
+ | **NOTICE**: If you are using a computer of the Laboratory you can skip directly to the Step for installing Libopencm3. | ||
- | ===== | + | 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**: | ||
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 53: | Line 98: | ||
- | ===== Stlink ===== | + | === Stlink === |
+ | |||
+ | **WARNING**: | ||
Project' | Project' | ||
Line 98: | Line 145: | ||
sudo cp 49-stlinkv2-1.rules / | sudo cp 49-stlinkv2-1.rules / | ||
sudo / | sudo / | ||
+ | udevadm control --reload-rules | ||
+ | udevadm trigger --attr-match=subsystem=usb | ||
- | ===== 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.1477653743.txt.gz · Last modified: 2022/09/20 00:08 (external edit)