[noner@heros sdk]$ make upload PROGRAM=demo_gpio /tmp/sdk/bsp/tools/openocd_upload.sh /tmp/sdk/software/demo_gpio/demo_gpio /tmp/sdk/bsp/env/freedom-e300-hifive1/openocd.cfg + openocd -f /tmp/sdk/bsp/env/freedom-e300-hifive1/openocd.cfg -c 'flash protect 0 64 last off; program /tmp/sdk/software/demo_gpio/demo_gpio verify; resume 0x20400000; exit' + tee openocd_upload.log Open On-Chip Debugger 0.10.0-dev-g193f630 (2017-01-04-01:49) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 10000 kHz Info : auto-selecting first available session transport "jtag". To override use 'transport select '. Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling" Info : clock speed 10000 kHz Info : JTAG tap: riscv.cpu tap/device found: 0x10e31913 (mfg: 0x489 (), part: 0x0e31, ver: 0x1) Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=0 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=1 Info : Examined RISCV core; XLEN=32, misa=0x40001105 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=2 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=3 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=4 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=5 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=6 Info : dtmcontrol_idle=5, dbus_busy_delay=1, interrupt_high_delay=7 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=7 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=8 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=9 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=10 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=12 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=14 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=16 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=18 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=20 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=23 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=26 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=29 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=32 Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=36 riscv.cpu: target state: halted halted at 0x204001c8 due to debug interrupt Info : Found flash device 'issi is25lp128' (ID 0x0018609d) cleared protection for sectors 64 through 255 on flash bank 0 Info : JTAG tap: riscv.cpu tap/device found: 0x10e31913 (mfg: 0x489 (), part: 0x0e31, ver: 0x1) riscv.cpu: target state: halted halted at 0x404 due to software breakpoint ** Programming Started ** auto erase enabled Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=40 Info : Retrying memory read starting from 0x80000000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=45 Info : Retrying memory read starting from 0x80000000 with more delays riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint riscv.cpu: target state: halted halted at 0x80000004 due to software breakpoint wrote 65536 bytes from file /tmp/sdk/software/demo_gpio/demo_gpio in 1.130677s (56.603 KiB/s) ** Programming Finished ** ** Verify Started ** Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=50 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=56 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=62 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=69 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=76 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=84 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=93 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=103 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=114 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=126 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=139 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=153 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=169 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=186 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=205 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=226 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=249 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=274 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=302 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=333 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=367 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=404 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=445 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=490 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=540 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=595 Info : Retrying memory read starting from 0x20400000 with more delays Info : dtmcontrol_idle=5, dbus_busy_delay=2, interrupt_high_delay=655 Info : Retrying memory read starting from 0x20400000 with more delays verified 40396 bytes in 1.236394s (31.907 KiB/s) ** Verified OK **