Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

Nios II Help

Altera_Forum
Honored Contributor II
1,449 Views

Hi there.... 

 

I am working on ssram based program. I am using EP2C70F672C6N Dsp Develpoment Kit and Quartus 11.1 . I have made a simple system in Qsys with ssram and leds as peripherals. But when i run my nios ii program, the nios ii console doesn't show any output. Even the leds don't glow at all. But when i remove ssram, the program works.. Can anyone help me? I have attached the Qsys system and nios ii program..  

 

 

 

Thankyou....
(Virus scan in progress ...)
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
494 Views

Hi, 

1) you could add flush() instructions to flush the stdout after the printf(). You will see immediately the printf() messages. 

 

2) Your SSRAM is at address 0x00000000. This may be where your program is downloaded. So, your RAM test loop may overwrite you program. 

Try with addr 0x00000 located on an other RAM. 

 

3) You can "debug" your software step by step ! (You have no timer, no watchdog.... which could make hard to debug)
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

 

--- Quote Start ---  

Hi, 

1) you could add flush() instructions to flush the stdout after the printf(). You will see immediately the printf() messages. 

 

2) Your SSRAM is at address 0x00000000. This may be where your program is downloaded. So, your RAM test loop may overwrite you program. 

Try with addr 0x00000 located on an other RAM. 

 

3) You can "debug" your software step by step ! (You have no timer, no watchdog.... which could make hard to debug) 

--- Quote End ---  

 

 

 

 

Hi... 

I tried all your suggestions. But unfortunately nothing worked. I have included watchdog timer and interval timer in the design. I have also changed the addresses of ram (which is connected to cpu instruction master) and ssram. The problem is, that the LEDs don't blink even once. If there is some problem with ssram, then atleast LEDs must blink.. but they are not... 

 

Here is the snapshot of my system to make myself clear...
(Virus scan in progress ...)
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

Disable watchdog. 

 

Maybe you have a reset problem (active low and active high). 

 

Have you really "debug" and and run step by step at least the LEDs instructions.
0 Kudos
Reply