# Code upload fails

**URL:** <https://forums.sifive.com/t/code-upload-fails/4707>\
**Category:** HiFive1 Rev B\
**Created:** [May 23, 2021, 2:24am UTC](https://forums.sifive.com/t/code-upload-fails/4707 "2021-05-23T02:24:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsvtgc](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@bsvtgc](https://forums.sifive.com/u/bsvtgc)\
**Post date:** [May 23, 2021, 2:24am UTC](https://forums.sifive.com/t/code-upload-fails/4707/1 "2021-05-23T02:24:59Z")

</div>

I am trying to build and upload hello application using freedom-esdk on Hifive1 Rev B board.

#1 Build:  
make [PROGRAM=hello] [TARGET=sifive-hifive1-revb] [CONFIGURATION=debug] software  
This has build the binary successfully

iscv64-unknown-elf-size /home/rust5/GitHubDir/freedom-sdk/software/hello/debug/hello.elf  
text data bss dec hex filename  
21314 1924 3236 26474 676a /home/rust5/GitHubDir/freedom-sdk/software/hello/debug/hello.elf

#2 upload to target using following command:  
make [PROGRAM=hello] [TARGET=sifive-hifive1-revb] [CONFIGURATION=debug] upload  
This throws the following error:

scripts/upload --elf /home/rust5/GitHubDir/freedom-sdk/software/hello/debug/hello.elf --openocd openocd --gdb riscv64-unknown-elf-gdb --openocd-config bsp/freedom-e310-arty/openocd.cfg  
Open On-Chip Debugger 0.11.0-rc1+dev (SiFive OpenOCD 0.10.0-2020.12.1)  
Licensed under GNU GPL v2  
For bug reports:  
[Issues · sifive/freedom-tools · GitHub](https://github.com/sifive/freedom-tools/issues)  
**DEPRECATED! use ‘adapter speed’ not 'adapter\_khz’**  
Using JTAG  
Info : auto-selecting first available session transport “jtag”. To override use 'transport select '.  
Error: no device found  
Error: unable to open ftdi device with vid 15ba, pid 002a, description ‘Olimex OpenOCD JTAG ARM-USB-TINY-H’, serial ‘_’ at bus location '_’

**It seems the openocd script/command is outdated. Any help to address is greatly appreciated.**
