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

Problem related to PIO component in SOPC system

Altera_Forum
Honored Contributor II
1,859 Views

I have a SOPC Builder system with just following components: the cpu, jtag_uart, sdram and a PIO led component. It works fine as long as there is just one led component.  

 

When I add another PIO led component to this system and try to access either of them, I get the following error: 

 

Verifying 00800000 ( 0%) 

Verify failed between address 0x800000 and 0x80D23F 

Leaving target processor paused 

 

My SDRAM, which is also the program and data memory, is at location 0x800000. 

 

I am using the DE2 board which has another bank of LEDs available. I have made sure all the pin assignments are correct. I have also made sure there is no address overlap between any components.  

 

This error occurs during download so I cannot debug my program to step through it and see what is going wrong at runtime.  

 

But, before that, the system generation in SOPC Builder, Compilation in Quartus and Building Project within Nios II IDE is smooth and no errors are returned. This is error occurs when the program downloads to the board. Any insights?  

 

I am using Quartus II 8.0, Nios II IDE 8.0 and DE2 Board. 

 

Thanks.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
295 Views

And I didn't mention that when I remove the new LED component, I can access the old one just fine. But when it is there I can the above-mentioned error while accessing either of them.

0 Kudos
Altera_Forum
Honored Contributor II
295 Views

I apologize if this is obvious, but I had a simliar problem because I made a very simple mistake of not constraining my clock and reset input pins for my development board. When I would add a peripheral, the automatic assignment would move the clock somewhere else and I would get an error like you described. I used the Pin Planner to assign the clock and reset pins, and I had no more problem with it. You also have to make sure your LED outputs are assigned to the right pins for your board.

0 Kudos
Altera_Forum
Honored Contributor II
295 Views

Have you considered the possibility of timming problem? 

By adding another component, you may be changing your design timming a bit.
0 Kudos
Altera_Forum
Honored Contributor II
295 Views

Check for shorts or shared lines on the PCB between the second PIO component and the SDRAM lines. Can you post the avalon memory map?

0 Kudos
Altera_Forum
Honored Contributor II
295 Views

Maybe the capability of sdram is small not enough for the programme and data.

0 Kudos
Reply