Closed
Description
Have flashed Black Magic Probe firmware to a Blue Pill board as described on http://www.stm32duino.com/viewtopic.php?f=37&t=2801#p36730:
stm32flash -w blackmagic.bin -S 0x08000000 -v /dev/ttyUSB0
The system does see the device:
$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
$ lsusb
Bus 008 Device 012: ID 1d50:6018 OpenMoko, Inc.
$ dmesg
[16845.933046] usb 8-1: Product: Black Magic Probe (STLINK), (Firmware v1.6.1-101-g5686550-dirty)
[16845.933048] usb 8-1: Manufacturer: Black Sphere Technologies
[16845.933051] usb 8-1: SerialNumber: ...
[16845.939092] cdc_acm 8-1:1.0: ttyACM0: USB ACM device
[16845.942083] cdc_acm 8-1:1.2: ttyACM1: USB ACM device
$ ls -lh /dev/ttyACM*
crw-rw-rw- 1 root dialout 166, 0 Feb 16 13:23 /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 1 Feb 16 13:23 /dev/ttyACM1
Connections for the programmer on /dev/ttyACM0
:
Blue Pill | nRF51822 module |
---|---|
3.3 | VDD |
GND | GND |
PA5 | SWCLK |
PB14 | SWDIO |
Optional for serial monitor on /dev/ttyACM1
:
Blue Pill | nRF51822 module |
---|---|
PA2 (TX) | P0.00 (RX) |
PA3 (RX) | P0.01 (TX) |
However, if I try to upload a sketch using the Black Magic Probe (GDB) programmer from the Arduino IDE, I get:
Sketch uses 1296 bytes (0%) of program storage space. Maximum is 262144 bytes.
\\.\/dev/ttyACM0: No such file or directory.
"monitor" command not supported by this target.
Don't know how to attach. Try "help target".
You can't do that when your target is `exec'
Don't know how to run. Try "help target".
Reading symbols from sketch_feb16a.ino.elf...done.
Temporary breakpoint 1 at 0x322: file /home/me/.arduino15/packages/sandeepmistry/hardware/nRF5/0.5.0/cores/nRF5/main.cpp, line 29.
Program complete!
I don't think it has actually done anything since it could not find the device.
Note the extra \\.\
in \\.\/dev/ttyACM0: No such file or directory
. @sandeepmistry also has the extra \\.\
in #196 (comment).
Metadata
Metadata
Assignees
Labels
No labels