Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

variables in external RAM

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.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.