Forum Discussion
Altera_Forum
Honored Contributor
12 years agoNios II Help
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....3 Replies
- Altera_Forum
Honored Contributor
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) - Altera_Forum
Honored Contributor
--- 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... - Altera_Forum
Honored Contributor
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.