vivado-risc-v icon indicating copy to clipboard operation
vivado-risc-v copied to clipboard

make flash: connection refused

Open svpolonsky opened this issue 2 years ago • 3 comments

Hi Eugene,

I run "make CONFIG=rocket64b1 BOARD=nexys-a7-100t flash" and get the following error: Connection refused

When I check the make output, I see:

env HW_SERVER_URL=tcp:localhost:3121
xsdb -quiet board/jtag-freq.tcl rlwrap: warning: your $TERM is 'xterm-256color' but rlwrap couldn't find it in the terminfo database. Expect some problems. Connection refused
while executing "error $message" (procedure "connect" line 143) invoked from within "connect -url $::env(HW_SERVER_URL)" (file "board/jtag-freq.tcl" line 1) make: *** [Makefile:310: flash] Error 1

the setting for HW_SERVER_URL implies you expect Ethernet connection, while I connect my nexys-a7-100t through USB. Could this be a problem?

Sincerely, Stas

svpolonsky avatar May 25 '22 21:05 svpolonsky

You need to start hw_server, which is Xilinx JTAG debugger. It listens for TCP/IP connections and can talk to JTAG through USB.

eugene-tarassov avatar May 25 '22 22:05 eugene-tarassov

I got it working! Thanks, Eugene! On a separate note, is there a simple way to add Vitis to this project? The reason of my question is I'd like to write some code to run on your RV h/w and Vitis seems like a great option for this...

svpolonsky avatar May 27 '22 12:05 svpolonsky

I got it working!

Super!

On a separate note, is there a simple way to add Vitis to this project?

Yes, you can use Vitis or Eclipse+CDT+TCF to edit, build, run and debug. Both can talk to RV h/w using hw_server. I prefer to use Eclipse, because Vitis is same thing plus a lot of additional stuff which I never need.

However, there is no single button "create RV application" - you will need some knowledge of CDT and TCF to setup a RV software project.

eugene-tarassov avatar May 27 '22 18:05 eugene-tarassov