Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

Download Elf Process failed

Altera_Forum
Honored Contributor II
3,466 Views

Hi, 

i am working on cyclone V soc (5csxfc6d6f31c8) and using nios II as processor. i have generated sof and sopcinfo and also programmed the device successfully. But after configuring the nios and generating the .elf this error pops up - 

 

Downloading Elf Process failed 

 

In the Eclipse Console window I get the following lines: 

 

Using cable "USB-BlasterII [USB-1]", device 2, instance 0x00 

Resetting and pausing target processor: FAILED 

Leaving target processor paused 

 

i have read many posts relating to this but i am not able to figure out the actual issue. 

 

Please help me with this asap. 

 

Thanks in advance.
0 Kudos
12 Replies
Altera_Forum
Honored Contributor II
868 Views

Could you provide some more details about your setting? Such as configuration of your clocks, of the NIOS (including used RAM for data- and for instruction-master). 

Maybe as screenshots? 

 

The first things I would look on are: 

- clocking 

- resets 

- working RAM (in case of DDR and SoC you need to enable the FPGA->SDRAM-Bridge)
0 Kudos
Altera_Forum
Honored Contributor II
868 Views

Hi, 

Thanks for an early reply. 

 

I am trying to run the Video and Image processing design example on cyclone V soc. The pin mapping are - 

 

set_location_assignment PIN_AD27 -to reset_n  

set_location_assignment PIN_AK21 -to ddr3_reset_n 

set_location_assignment PIN_AC18 -to phy_refclk  

set_location_assignment PIN_Y26 -to clock_source  

 

I am using external PLL.
0 Kudos
Altera_Forum
Honored Contributor II
868 Views

Do you also have screenshots from the whole QSYS-System? 

Why do you use NIOSII Gen2?
0 Kudos
Altera_Forum
Honored Contributor II
868 Views

I am not using HPS, but i want soft processor so i am using Nios.

0 Kudos
Altera_Forum
Honored Contributor II
868 Views

Hi, 

 

Issue solved. I was facing problem with pin assignments. 

 

But elf downloading still fails and its actually very wierd behaviour.  

 

Here it is when i try to download elf from command line - 

 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verifying 08050000 (39%) 

Verify failed between address 0x8050000 and 

Leaving target processor paused 

 

 

 

$ nios2-download -r -g vip_example.elf 

Using cable "USB-BlasterII [USB-1]", device 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verifying 08050000 (39%) 

Verify failed between address 0x8050000 and 

Leaving target processor paused 

 

 

 

$ nios2-download -r -g vip_example.elf 

Using cable "USB-BlasterII [USB-1]", device 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verified OK 

Starting processor at address 0x08040120 

 

 

$ nios2-download -r -g vip_example.elf 

Using cable "USB-BlasterII [USB-1]", device 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verifying 08040120 ( 0%) 

Verify failed between address 0x8040120 and 

Leaving target processor paused 

 

 

$ nios2-download -r -g vip_example.elf 

Using cable "USB-BlasterII [USB-1]", device 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verifying 08050000 (39%) 

Verify failed between address 0x8050000 and 

Leaving target processor paused 

 

 

$ nios2-download -r -g vip_example.elf 

Using cable "USB-BlasterII [USB-1]", device 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verifying 08040120 ( 0%) 

Verify failed between address 0x8040120 and 

Leaving target processor paused 

 

 

$ nios2-download -r -g vip_example.elf 

Using cable "USB-BlasterII [USB-1]", device 

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 163KB in 0.4s (407.5KB/s) 

Verified OK in 1.0s (163.0KB/s) 

Starting processor at address 0x0 

 

I AM trying to download elf and sometimes it fails and sometimes it pass. Also the verify fails at different addresses and not any one particular. 

 

Somebody please tell me why this is happening.
0 Kudos
Altera_Forum
Honored Contributor II
868 Views

Is your system timing-clean?

0 Kudos
Altera_Forum
Honored Contributor II
868 Views

TimeQuest timing analyzer has given no errors and it is showing successful. Although there are some warning messages.

0 Kudos
Altera_Forum
Honored Contributor II
868 Views

 

--- Quote Start ---  

Is your system timing-clean? 

--- Quote End ---  

 

 

TimeQuest timing analyzer has given no errors and it is showing successful. Although there are some warning messages. 

 

What else to look for to ensure system timimg is clean or not??
0 Kudos
Altera_Forum
Honored Contributor II
868 Views

Could post a screenshot of the timing analysis report?

0 Kudos
Altera_Forum
Honored Contributor II
868 Views

 

--- Quote Start ---  

Could post a screenshot of the timing analysis report? 

--- Quote End ---  

 

 

I am attaching the following snapshots -  

 

1.give no errors in Timequest timing analyzer ang shows it successful 

https://www.alteraforum.com/forum/attachment.php?attachmentid=10150  

 

2. setup and hold summary of Timequest timing analyzer -  

https://www.alteraforum.com/forum/attachment.php?attachmentid=10151  

 

https://www.alteraforum.com/forum/attachment.php?attachmentid=10152  

 

I can see slack issue in the clock source in above. Is this the cause for the issue?? And if it is how to get over it? 

 

Thanks again !!
0 Kudos
Altera_Forum
Honored Contributor II
868 Views

could you please also post your *.sdc-file?

0 Kudos
Altera_Forum
Honored Contributor II
868 Views

 

--- Quote Start ---  

could you please also post your *.sdc-file? 

--- Quote End ---  

 

 

sdc file contains these statements only - 

 

https://www.alteraforum.com/forum/attachment.php?attachmentid=10156
0 Kudos
Reply