This image provides a development environment to build software for the STM32 microcontroller family.
It contains the open source version of the STMicroelectronics ST-LINK tools.
To compile a project using a Makefile
:
docker run --rm -v <local path>:/home/dev/app docker.io/skyplabs/stm32
local path refers to the folder on your host system which holds the source code of your application and containing a Makefile
.
To get a shell to the container and then get access to the ST tools:
docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb -v <local path>:/home/dev/app docker.io/skyplabs/stm32 /bin/bash
-
Short-circuit the two pins marked
BOOT0
andVDD
-
Reset the board
-
Erase the flash memory
st-flash erase