Forum Discussion

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

Nios2 Crashes when SDRAM is shared

Hi,

I'm sharing my SDRAM between a Nios2 processor and a Avalon MM Master Writer that is performing write operation on the SDRAM.

The Nios2 processor is working fine until I perform a write operation which causes the processor to stop working (no more instruction seems to be performed any more).

How can I make it work ?

Thanks,

Nemesys

3 Replies

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

    At a guess your Avalon master is buggy - maybe not detecting the end of the write (or something) and locking the other masters out of the SDRAM.

    signaltap might be informative.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The Avalon MM Master Writer is an implementation of the Avalon MM template from Altera.

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

    I figured I was writing in outside the SDRAM address map. Now it works properly.