Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12590 Discussions

problem with sdram on nios2 dev kit

Altera_Forum
Honored Contributor II
1,070 Views

Hi 

 

I have some problems getting started with my nios2 dev-kit. 

The dev kit is a stratix2 EPS2S60 board. 

I have tried with both verison 5.1 and 6.0 of the dev-tools. 

 

In the nios2 ide "getting started" tutorial I got this error message as I tried 

to run my project as nios2 hardware: 

Using cable "USB-Blaster ", device 1, instance 0x00 Pausing target processor: OK Reading System ID at address 0x021208B8: verified Initializing CPU cache (if present) OK Downloading 01000020 ( 0%) Downloaded 1KB in 0.0s         Verifying 01000020 ( 0%) Verify failed between address 0x1000020 and 0x10000DF Leaving target processor paused 

 

A memtest gave me the following: 

 

Testing RAM from 0x1000000 to 0x1FFFFFF -Data bus test passed -Address bus test failed at address 0x1000004 Press enter to continue... 

 

 

onchip_ram, ext_ram and ext_flash works fine, but the sdram is no-go. 

 

I appreciate any help.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
269 Views

Good news! 

I solved the problem. 

 

I adjusted the pll clock phase shift for sdram_clk_out 

from default -3.50ns to -4.0ns 

 

Testing RAM from 0x1000000 to 0x1FFFFFF -Data bus test passed -Address bus test passed -Byte and half-word access test passed -Testing each bit in memory device. . .  passed -Testing memory using DMA.  passed Memory at 0x1000000 Okay Press enter to continue... 

 

Strange that the dafault settings didn't work on a development board...
0 Kudos
Reply