kendryte / openocd-kendryte

GNU General Public License v2.0
23 stars 17 forks source link

Native "program" command does not work #11

Open ivankravets opened 5 years ago

ivankravets commented 5 years ago

There is an issue with the latest version of openOCD. The "program" command does not work for BIN or ELF. However, if you try to use GDB:load command, it works.

Log

openocd -d2 -s /Users/ikravets/.platformio/packages/tool-openocd-kendryte/share/openocd/scripts -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -c "adapter_khz 1000" -f target/kendryte210.cfg -c "program {/private/tmp/pio-workspaces/arduino-blink-c97cd71957/build/sipeed-maix-bit/firmware.bin}  verify reset; shutdown;"
 _  __              _            _
| |/ /___ _ __   __| |_ __ _   _| |_ ___
| ' // _ \ '_ \ / _` | '__| | | | __/ _ \
| . \  __/ | | | (_| | |  | |_| | ||  __/
|_|\_\___|_| |_|\__,_|_|   \__, |\__\___|
                           |___/
Kendryte Open On-Chip Debugger For RISC-V v0.2.3 (2019-02-21)
Licensed under GNU GPL v2
debug_level: 2
adapter speed: 1000 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
riscv.cpu
Info : clock speed 1000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x04e4796b (mfg: 0x4b5 (<unknown>), part: 0x4e47, ver: 0x0)
Core [0] halted at 0x400 due to software breakpoint
Info : Examined RISCV core; found 2 harts
Info : Listening on port 3333 for gdb connections
Info : JTAG tap: riscv.cpu tap/device found: 0x04e4796b (mfg: 0x4b5 (<unknown>), part: 0x4e47, ver: 0x0)
** Programming Started **
embedded:startup.tcl:476: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 532
at file "embedded:startup.tcl", line 476
*** [upload] Error 1
maxgerhardt commented 3 years ago

People are still hitting this issue 2 years later e.g. here. Any update on a OpenOCD update or bugfix?