Skip to content

Commit

Permalink
stm32f4: build: add docker-compose.yml
Browse files Browse the repository at this point in the history
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] stlink-org/stlink#532
  • Loading branch information
obruns committed Mar 7, 2017
1 parent 5561c1e commit 87977fd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions stm32/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 87977fd

Please sign in to comment.