Closed fjammes closed 7 years ago
@valeros I have the same issue. Could you help us?
@fjammes Please use mzeroproUSB
board and USB port instead. It works.
Thanks, I can indeed use mzeroproUSB to upload binaries, but then platformio device monitor -p /dev/ttyACM0
does not print any output message.
I would need to use SerialUSB.print(...) in my code, but some third-parties use Serial.print(), so it seems I'm stick with programming port. Coudl you please fix this bug?
Could you try one fix? Please go to ~/.platformio/packages/tool-openocd/bin/
and edit openocd
wrapper. Replace
LD_LIBRARY_PATH="$MYAPP_HOME/lib" "$0.bin" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
with
LD_LIBRARY_PATH="$MYAPP_HOME/lib" "$0.bin" "$@"
Does it work now?
@fjammes do you have any news?
Just run pio update
where tool-openocd
should be updated.
/cc @fraimondo @fjammes
What was problem/solution then?
Configuration
Operating system:
Debian jessie
PlatformIO Version (
platformio --version
):PlatformIO, version 3.2.0a7 (but occurs also with current stable version)
Description of problem
Can not upload to mzeropro because of minor openocd error:
Steps to Reproduce
Actual Results
Script waits without doing nothing.
Expected Results
Upload code to mzeropro
Additional info
Changing openocd '-c' with '--command=' option works fine, as shown below: