compuphase / Black-Magic-Probe-Book

A guide plus associated utilities for the Black Magic Probe.
Apache License 2.0
147 stars 26 forks source link

Incorrect shell syntax for Linux #27

Closed whitelynx closed 3 years ago

whitelynx commented 3 years ago

On page 78, there is a sample command for Linux:

arm-none-eabi-gdb -nx --batch \
-ex 'target extended-remote `bmscan gdbserver`' \
-ex 'monitor swdp_scan' \
-ex 'attach 1' \
-ex 'load' \
-ex 'compare-sections' \
-ex 'kill' \
blinky.elf

On the second line, the backticks will not function because they're inside a single-quoted string. To fix this, the line should read:

-ex "target extended-remote `bmscan gdbserver`" \
compuphase commented 3 years ago

Thank you for spotting this and reporting it. I have commited a fix (commit 1b93b2ebb1e48dd3914dc1c7d70c383d7d76f819).