[noner@heros sdk]$ make upload PROGRAM=led_fade /tmp/sdk/bsp/tools/openocd_upload.sh /tmp/sdk/software/led_fade/led_fade /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/led_fade/led_fade 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) Error: Wrote 0xffe04493 to Debug RAM at 0, but read back 0xfff04493 Error: Debug RAM 0x0: 0xffe04493 Error: Debug RAM 0x1: 0x01f4d493 Error: Debug RAM 0x2: 0x40902023 Error: Debug RAM 0x3: 0x01f4d493 Error: Debug RAM 0x4: 0x40902223 Error: Debug RAM 0x5: 0x3f00006f Error: Debug RAM 0x6: 0x060c1218 Error: Debug RAM 0x7: 0xf3efffff Error: Debug RAM 0x8: 0x00000000 Error: Debug RAM 0x9: 0x00000000 Error: Debug RAM 0xa: 0x00000000 Error: Debug RAM 0xb: 0x00000000 Error: Debug RAM 0xc: 0x00000000 Error: Debug RAM 0xd: 0x00000000 Error: Debug RAM 0xe: 0x00000000 Error: Debug RAM 0xf: 0x00000000 Error: Target not examined yet