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,
What version that you use for the RiscFree? When you debug using RiscFree, did you configure the debug configuration first to connect to the board JTAG?
Regards,
Boon Khai.
- Balerion11 months ago
Occasional Contributor
Hi,
I am using RiscFree IDE v24.3.1, 9th Aug 2024. For debugging I first configure debug configuration then click apply then click debug. That is what I'm doing. By the way, I observed something which is when I run "niosv-download.exe app.elf --go" I see TCP packet traffic in localhost:port(at which gdb server waits for client to connect). However, when I try to do same over RiscFree IDE. I don't see any packets. This may be sign of what the problem is?
Thanks,
Balerion
- BoonkhaiN_Altera11 months ago
Occasional Contributor
Hi Balerion,
The RiscFree version looks fine, can you help to screen shot your RiscFree IDE's debug configuration? Wonder if you selected the correct board at the debug configuration setting?
Regards,
Boon Khai