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++
12658 Discussions

Debugger wont connect to NIOS II hello world on Cyclone GX development board

Oliver_I_Sedlacek
New Contributor III
3,465 Views

The Cyclone 10GX seems to configure from the programmer but Eclipse fails to connect though the embedded download cable. DownloadFailed.PNG

I only got this far by checking the 'Ignore mismatched system ID' and 'Ignore mismatched system timestamp' in the Target connection dialog, so I guess I need to fix that somehow.

EclipseNIOSDebug.PNG

The programmer JTAG auto-detect looks like this.

ProgJTAGchain.PNG

Thanks in advance

0 Kudos
22 Replies
wwanalim_intel
Employee
3,030 Views

Hi,


Thank you reaching us.


For elf process failed, usually there a few things you can check. Mainly due to any mistake during the NiosII design, especially connections related to the memory where the ELF file will reside. There also a few things can check before download program to the board such as qsys configuration compilation, verilog connections between qsys generated model and board hardware. For the box "ignore mismatched system ID' and 'ignore mismatched system timestamp", can try uncheck since these checks verify that your software is compiled for the FPGA configuration that is actually loaded on the board.


0 Kudos
Oliver_I_Sedlacek
New Contributor III
3,009 Views

Check a gazillion things isn't really giving me a steer.

The console message is:


09:45:08 **** Incremental Build of configuration Nios II for project AcqTester ****
wsl make all
Info: Building /mnt/c/Users/olivers/Documents/sbsvn/Apogee/CO717-Cyc10/FPGA/eval_c10gx220/AcqNIOS/software/AcqTester_bsp/
make --no-print-directory -C /mnt/c/Users/olivers/Documents/sbsvn/Apogee/CO717-Cyc10/FPGA/eval_c10gx220/AcqNIOS/software/AcqTester_bsp/
[BSP build complete]
[AcqTester build complete]

09:45:09 Build Finished (took 1s.157ms)

 



 

0 Kudos
wwanalim_intel
Employee
2,970 Views

 

Hi,

This is the log on make. There should be another log in Eclipse. We are expecting to see the log on eclipse to know either it can pass the processor reset or not.

This is the example of the log if failed the reset processor.

wwanalim_intel_1-1699436642645.png

 

This is the example of the log if success.

wwanalim_intel_2-1699436667103.png


You can try use nios2-download command.
$ nios2-download -g -r <>.elf

0 Kudos
Oliver_I_Sedlacek
New Contributor III
2,969 Views

A different console message did show but it was cleared before I could capture it.

After trying it a few more times I caught this:


Using cable "USB-BlasterII [USB-1]", device 2, instance 0x00
Pausing target processor: not responding.
Resetting and trying again: FAILED
Leaving target processor paused

Where do I type the nios2-download command?

0 Kudos
wwanalim_intel
Employee
2,929 Views

Hi,

Nios2-download command can be run on Nios2 command shell.

Since you get the processor reset failed error so we suggesting these three possibilities you can look and check.
1. Clock bridge IP frequency is incorrect (between QSYS & actual clock)
2. Reset bridge IP settings (Most common one is the Active Low)
3. Connection between processor debug_reset_request to processor reset

wwanalim_intel_1-1699520344824.png

 


You also can take a look at below link to check on the few solution to fix the issue.
https://www.macnica.co.jp/en/business/semiconductor/articles/intel/133704/

Thank you.
Regards,
Fathulnaim

0 Kudos
Oliver_I_Sedlacek
New Contributor III
2,919 Views

Aaargh, this is so frustrating! Your screenshot doesn't show what reset is connected to. At the top level I've connected mine to the development board fpga_resetn signal but as per my other forum thread I can't get an explanation of its functionality, see https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/Cyclone-10-GX-dev-kit-which-signal-can-I-use-to-reset-a-NIOS/m-p/1539825#M26240 (BTW I can't post replies to this thread, another source of complete frustration)

In the mean time, here's a screenshot of my Platform Designer.

NIOSPlatformDesigner.PNG

If there's any way to speed up this dialogue from 24 hour responses please let me know.

0 Kudos
wwanalim_intel
Employee
2,888 Views

Hi Oliver,

Based on our suggestion previously, you can try to connect the debug_reset_request to processor reset port. It is for the debug module to be able to reset the processor before downloading the elf. Attached below picture is based on your platform designer.

wwanalim_intel_0-1699599735831.png


We hope this can solve your issue and if it still cannot, I will be sending my email to your inbox after this so you can send your design and we will try it on our side.

Regarding fpga_resetn, its function is fpga global reset as per the user manual.

wwanalim_intel_1-1699599819097.png

 

Thank you.

Regards,

Fathulnaim

 



0 Kudos
wwanalim_intel
Employee
3,018 Views

By the way, hope you can share the message in the Console window.

 

 

0 Kudos
wwanalim_intel
Employee
2,888 Views

Please check the inbox, I already sent the email.


0 Kudos
wwanalim_intel
Employee
2,822 Views

Hi,


Do you have any updates to share about this issue?


0 Kudos
Oliver_I_Sedlacek
New Contributor III
2,813 Views
0 Kudos
wwanalim_intel
Employee
2,790 Views

Hi,


Did the previous suggestion which is to connect the debug_reset_request to processor reset port solved the "downloading ELF process failed" error?


Regarding the debugger cannot connect issue, you also can try to remove the SYSID IP in Platform Designer, then Re-Add it again, then recompile everything and re-try. By the way, is the design from an example design downloaded somewhere?


We sent you an email. Hope you can reply to that as we want to help figuring the reason you cannot reply to the below thread.

https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/Cyclone-10-GX-dev-kit-which-signal-can-I-use-to-reset-a-NIOS/m-p/1539825#M26240




0 Kudos
wwanalim_intel
Employee
2,695 Views

Hi,


Do you have any updates to share about this issue?


0 Kudos
Oliver_I_Sedlacek
New Contributor III
2,675 Views

My evaluation board was refusing to configure so I haven't been able to try anything (see https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/Is-my-Cyclone-10-GX-development-kit-board-faulty/m-p/1544844/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExQMjhJS05NSjZaWFBYfDE1NDQ4NDR8U1VCU0NSSVBUSU9OU3xoSw#M26394)

It configured this morning so I'll see if I can make any progress with the NIOS.

I did the NIOS platform from scratch because I've never found an example that didn't need a load of changes just to get it to compile with my installed version of Quartus. I've been using the Trenz Cyc1000 NIOS with reasonable success apart from booting from off chip memory, https://community.intel.com/t5/Programmable-Devices/Autostart-NIOS-from-external-SDRAM-problem/m-p/1509971#M91900 which I just gave up on.

0 Kudos
Oliver_I_Sedlacek
New Contributor III
2,663 Views

No change, not sure what else I can say. It's really hard to capture any messages because they get over-written. Waiting 24 hours plus is so frustrating, I start each troubleshooting session having forgotten where I'd got to last time.

0 Kudos
wwanalim_intel
Employee
2,600 Views

Hi,


Glad to know your board now can be configured.


I am working on the Hello World NiosII on Cyclone GX to identify the issue too.


0 Kudos
wwanalim_intel
Employee
2,516 Views

I am still working on that template, will send to your email once complete.


0 Kudos
wwanalim_intel
Employee
2,505 Views

Hi,


I already test this design and it working on our side. Testing is using the Cyclone 10 (10CX220YF780E5G) and Quartus Prime Pro Edition 23.1. This design was build according to this document https://www.intel.com/content/dam/support/us/en/programmable/support-resources/fpga-wiki/asset02/nios-ii-hello-world-a10.pdf but for the Cyclone 10.


After I built the project, I programed the .sof and able to "Run as > NiosII hardware " in Eclipse and print out hello world in the console. You can try on your board and let us know.

 

I sent the design to your email and also attached it below this reply.

 

Disclaimer - This is not official design from Intel, you may use on your own risk.


0 Kudos
wwanalim_intel
Employee
2,503 Views

The design attached on this reply.

0 Kudos
wwanalim_intel
Employee
2,376 Views

Hi Oliver,


I will attached the .qar file below this reply. Hope it work on your side.


Thank you.


0 Kudos
Reply