From 87977fdf33f0cd3a2d3e4fc3cc694b8214c64b94 Mon Sep 17 00:00:00 2001 From: Oliver Bruns Date: Tue, 7 Mar 2017 23:21:41 +0100 Subject: [PATCH] stm32f4: build: add docker-compose.yml Pass /dev/bus/usb in order to be able to access the stlink interface from within the Docker container. Use GDB to work around stlink issue #532 [1]. [1] https://github.com/texane/stlink/issues/532 --- stm32/docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 stm32/docker-compose.yml diff --git a/stm32/docker-compose.yml b/stm32/docker-compose.yml new file mode 100644 index 0000000..9f5fdc2 --- /dev/null +++ b/stm32/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3' +services: + builder: + build: . + image: stm32:1.0 + devices: + - /dev/bus/usb + volumes: + - ./demo:/tmp/build + command: > + sh -c 'cd /tmp/build/demo && \ + make && \ + (st-util --multi &) && \ + cd /tmp/build/demo && \ + arm-none-eabi-gdb \ + -batch \ + -ex "target extended-remote :4242" \ + -ex "load" \ + -ex "run" \ + bin/outp.elf'