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'