Forum Discussion
Nios-V .elf download failure
- 11 months ago
Hi Balerion,
When you are able to download the elf using the --go command, it is likely that your setup on the board is correct alreadyThere is an update by the way. I tried the command
*****************************************************************
"niosv-download.exe app.elf --go"-> Hello Nios V World!
*****************************************************************
And you saw this error when trying to connect with RiscFree
Initializing connection ...
Cannot set the JTAG frequency, continuing with auto adjust mode
Connected to target device with IDCODE 0x2e240dd using USB-Blaster-2 (1) via JTAG at 24.00MHz.
Info : Active Harts Detected : 1
Info : Core[0] Hart[0] is in halted state
Info : [0] System architecture : RV32
Info : [0] Number of hardware breakpoints available : 1
Info : [0] Number of program buffers: 8
Info : [0] Number of data registers: 2
Info : [0] Memory access -> Program buffer
Info : [0] Memory access -> Abstract access memory
Info : [0] CSR & FP Register access -> Abstract commandsWaiting for debugger connection on port 56767.
Press 'Q' to Quit.This could be your RiscFree's setting or your host system's setting not set correctly.
Likely Root Causes
GDB Server launched by risc free failes to connect IDE cannot detect the prompt (gdb) migh due to the followinga) Firewall/antivrus is blocking the local host port access
b) IDE times out before connection is established
c) There is a mismatch in how the debug config launches
Possible Fix
a) Temporarily disable antivirus / firewall
b) Try launch RiscFree as administrator
c) Increase debugger timeout (if IDE allows)
Please let me know the result after you try the step and provide screenshot if possible.Regards,
Boon Khai
Hi please share the jtagconfig for Cyclone-V as well
run with the "jtagconfig -d" for both devices.
Hi
I run the command "jtagconfig -d" for both devices. Here is the result.
For Arria-10 board:
1) USB-BlasterII [USB-1]
(JTAG Server Version 18.1.0 Build 625 09/12/2018 SJ Standard Edition)
02E240DD 10AX048E(1|2|3|3ES|4|4ES)/.. (IR=10)
Design hash 659832DA50C1CCAFD154
+ Node 30006E00 Signal Tap #0
+ Node 30006E01 Signal Tap #1
+ Node 30006E02 Signal Tap #2
+ Node 30006E03 Signal Tap #3
+ Node 30006E04 Signal Tap #4
+ Node 30006E05 Signal Tap #5
+ Node 30006E06 Signal Tap #6
+ Node 30006E07 Signal Tap #7
+ Node 30006E08 Signal Tap #8
+ Node 08986E00 Nios V #0
+ Node 0C006E00 JTAG UART #0
+ Node 0C206E00 JTAG PHY #0
+ Node 0C206E01 JTAG PHY #1
Captured DR after reset = (02E240DD) [32]
Captured IR after reset = (155) [10]
Captured Bypass after reset = (0) [1]
Captured Bypass chain = (0) [1]
JTAG clock speed 24 MHz
*****************************************************************
For Cyclone-V board:
1) USB-BlasterII [USB-1]
(JTAG Server Version 18.1.0 Build 625 09/12/2018 SJ Standard Edition)
02B130DD 5CE(BA7|FA7|FA7ES) (IR=10)
Design hash BCF7B2F2148F6CA555BF
+ Node 00486E00 Source/Probe #0
+ Node 08986E00 Nios V #0
+ Node 0C006E00 JTAG UART #0
+ Node 0C206E00 JTAG PHY #0
+ Node 00486E01 Source/Probe #1
+ Node 0C206E01 JTAG PHY #1
+ Node 30006E2A Signal Tap #42
+ Node 30006E3C Signal Tap #60
+ Node 30006E29 Signal Tap #41
Captured DR after reset = (02B130DD) [32]
Captured IR after reset = (155) [10]
Captured Bypass after reset = (0) [1]
Captured Bypass chain = (0) [1]
JTAG clock speed 24 MHz
Thanks,
Balerion