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,
I am still not able to share my design because of company policies. I am working on it. There is an update by the way. I tried the command
*****************************************************************
"niosv-download.exe app.elf --go"
-> Hello Nios V World!
*****************************************************************
and it flashed to the board and executed my program. I have seen the output from juart-terminal
However debug configuration and run configuration through RiscFree Ashling IDE still not working I am getting same error. as I write below
*****************************************************************
Error in services launch sequence
GDB prompt not read
and when I look at the console I see,
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 commands
Waiting for debugger connection on port 56767.
Press 'Q' to Quit.
This is my current situation.
Thanks,
Balerion
Hi Balerion,
Before we proceed further, would you mind sharing the changes you’ve made on your side? I’m currently not sure what has been done, and since the design can’t be shared, it would really help if you could at least outline the steps or actions taken to make it work. This will allow us to understand if the fix you applied is actually correct and aligned with the intended behavior.
From the beginning, the image couldn't be downloaded, so I’m trying to understand what might have resolved the issue.
First you are getting this this error:
I have an update in Arria-10 board. I used to get the error ***************************************************************** |
and then eventually able to download elf:
There is an update by the way. I tried the command ***************************************************************** -> Hello Nios V World! ***************************************************************** |
If you're unable to share your design, could you at least let us know what changes or steps you’ve taken so far?
Regards,
Boon Khai.
- Balerion11 months ago
Occasional Contributor
Hi,
What I changed is that, I have configured Nios-V IP's settings. The checkbox "Enable Reset From Debug Module" is not checked at first. In this case, I got the error:
*****************************************************************
Initializing connection...
Cannot set the JTAG Frequency, continuing with auto adjust mode.
Error occured during enumeration of RISC-V harts(no hart found).*****************************************************************
also "niosv-download.exe app.elf --go" this command is not working in this case.
Then, I checked the checkbox "Enable Reset From Debug Module" through Nios-V IP's settings. Then the error changed. I still get error but it is now:
*****************************************************************
Error in services launch sequence
GDB prompt not readInitializing 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.*****************************************************************
But in this one "niosv-download.exe app.elf --go" command is working. However, this doesn't solve my problem because I am still not able to use RiscFree IDE. This might help us to solve the issue?
Thanks,
Balerion