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

variables in external RAM

Altera_Forum
Honored Contributor II
1,245 Views

Hi,  

I have a niosII project running on a custom board, This custom board has a cyclone EP1C12Q240C7 and the same SRAM used on the NIOS Cyclone development kit. My problem is that my application won't run if my variables are located in the external RAM, but it works fine with Program memory and ROM (.text & .rodata) located in external ram. 

I was just wondering if anyone has any quick thoughts on what could be going on. 

Thanks.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
553 Views

Hi thowl, 

 

> My problem is that my application won't run if my variables are located in 

> the external RAM, but it works fine with Program memory and ROM (.text & .rodata) 

> located in external ram. 

 

Make sure you include the boot copier (--boot option) when you generate your flash 

file -- otherwise your code will not be relocated when it's run from flash. 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
553 Views

I met the same problem during my development on DSP board. Something wrong with the timing settings in your CPU configuration, I think. You can create an IUL linking to your SRAM to make it sure.

0 Kudos
Altera_Forum
Honored Contributor II
553 Views

Hey guys, 

Thanks for the input. It turns out the problem was a timing issue, I created an IUL for my sram with modified timing specs and it seems to have fixed the problem.
0 Kudos
Reply