Forum Discussion

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

Nios crashes when reading from the DDR2

Hi,

I'm trying to setup the DDR2 as a frame buffer for streaming to a display.

Currently, I am able to write and read pixels to and from the off-chip DDR2 and communicate with custom hardware. The problem arises when I run my driver for more than a few seconds. For example, in SignalTap I see valid pixels going in and out for a few seconds, but then it just stops finding the trigger, ie my driver crashes.

I've checked in debug mode, and after stepping through the code for a while, it crashes all of a sudden on a read from the DDR2 -- even after being successful at reading a few times before.

The error message is just "Processor failed to go into debug mode when requested".

I've also noticed that if I increase the amount of DDR2 memory that I'm using, it will crash instantly.

I've attached my driver below. I've tried several ways of doing it, but they all yielded the same result. Any help would be really appreciated.

I'm using Nios 8.0 and the DDR2 SDRAM High Performance Controller 8.0. Let me know if you have any questions.

Thanks!

Andrew

20 Replies