Travaux pratiques STM32
Étapes préliminaires
- Installer le plugin VSCode “STM32Cube
for Visual Studio Code”
- Installation de STM32CubeCLT
(1.19.0)
- Sur mac, installation
st-stm32cubeclt_1.19.0_25876_20250729_1159-macosx_x86_64.pkg
- Sur mac, installation de
st-stlink-server.2.1.1-2.pkg
- Sur Mac, l’installation de fait sous
/opt/ST/STM32CubeCLT_1.19.0
- Installation de STM32CubeMX
(6.15.0)
- Installation de ST-MCU-FINDER
Exercices
- Faire clignoter la LED bleue toutes les 100 ms.
- Envoyer la chaîne de caractères “hello, world!” toutes les 100ms sur
le port série de la liaison USB avec le ST-Link, en faisant clignoter la
LED rouge à chaque envoi de message
- Minicom (macOS et Linux):
minicom -D /dev/ttyACM0
(quitter avec CTRL-a x)
- Screen (macOS et Linux):
screen /dev/ttyACM0 115200
(quitter avec CTRL-a k)
- Putty (Windows et Linux)
- Hyperterminal (Linux)
- Modifier votre code pour que le STM32 soit pilotable par un mini
“shell”. Par défaut le STM32 affichera une invite de commandes
commande?> et attendra des commandes. Parmi les
commandes, on peut par exemple définir une commande
led (red|blue|green) (on|off) qui allume ou éteint la LED
correspondante, ou show 'MESSAGE' 10 200 qui affiche 10
fois MESSAGE avec un délai de 200 ms entre chaque affichage
avant de rendre la main à l’invite de commandes. La commande
help
Ressources
STMicroelectronics
- UM1739
User manual, Getting started with STM32CubeF2 firmware package for
STM32F2 Series
- Librairies logicielles à la base de STM32CubeMX: STM32Cube MCU
Full Package for the STM32F2 series, avec de nombreux exemples
(Pilotes HAL et LL, CMSIS,
midleware libraries). Voir également: AN4733,
Application note, STM32Cube firmware examples for STM32F2
Series
- STM32
Nucleo-144 development board with STM32F207ZG MCU, supports Arduino, ST
Zio and morpho connectivity
- PM0056
Programming manual,STM32F10xxx/20xxx/21xxx/L1xxxx Cortex-M3 programming
manual
- PM0059
Programming manual, STM32F205/215, STM32F207/217 Flash programming
manual
- RM0033
Reference manual, STM32F205xx, STM32F207xx, STM32F215xx and STM32F217xx
advanced Arm-based 32-bit MCUs
- Datasheet
STM32F205xx, STM32F207xx, Arm-based 32-bit MCU, 150 DMIPs, up to 1 MB
Flash/128+4KB RAM, USB OTG HS/FS, Ethernet, 17 TIMs, 3 ADCs, 15 comm.
interfaces and camera
- TN1235
Technical note, Overview of ST-LINK derivatives
- UM1713
User manual, Developing applications on STM32Cube with LwIP TCP/IP
stack
- UM1721
User manual, Developing applications on STM32Cube™ with FatFs
- UM1722
User manual, Developing applications on STM32Cube with RTOS
- UM1727
User manual, Getting started with STM32 Nucleo board software
development tools
- UM1940
User manual, Description of STM32F2 HAL and low-layer drivers
- UM1974
User manual, STM32 Nucleo-144 boards (MB1137)
- UM2298
User manual, STM32Cube BSP drivers development guidelines