Skip to content

amamory-embedded/qemu-stm32-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

docker image for STM32 Develpment

Docker Hub

Dockerfile for qemu for STM32 devices on Ubuntu 18.04 including some nice programming environments, libraries, and examples such as:

Downloading

$ docker pull amamory/qemu-stm32

Running and existing example

$ docker run --name stm32 -it --rm -v $PWD:/work amamory/qemu-stm32 qemu-system-arm \
  -M stm32-p103 -s \
  -kernel /usr/src/app/stm32/stm32_p103_demos/demos/freertos_singlethread/main.elf

Debugging the example in the running container

$ docker exec -it stm32 arm-none-eabi-gdb  /usr/src/app/stm32/stm32_p103_demos/demos/freertos_singlethread/main.elf

Building an existing example inside container

$ docker run -it --rm -v $PWD:/work amamory/qemu-stm32 bash 

$ make -C ./stm32_p103_demos/ clean freertos_singlethread_ALL

Building your own projects

$ docker run -it --rm -v $PWD:/work amamory/qemu-stm32 arm-none-eabi-gcc \
  -mcpu=cortex-m3 \
  hello_app.c -o hello_app

Running your own project

$ docker run --rm -v $PWD:/work amamory/qemu-stm32  qemu-system-arm \
  -M stm32-p103 -s \
  -kernel ./hello

Releases

No releases published

Packages

No packages published