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++
12692 Discussions

Where is SDRAM initilization done?

Altera_Forum
Honored Contributor II
1,220 Views

I am trying to build a NIOS system with SDRAM. On an ARM SoC, usually software do the SDRAM initilization. But on NIOS system, I do not find who takes this job. Can anyone help to explain? Thanks.

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
514 Views

This is the bootloader's responsability. If you use an EPCS controller, the bootloader is included. Just set the CPU to boot on the EPCS controller. If you use a parallel flash, set the CPU to boot on it and the Nios programmer will flash the bootloader for you.

0 Kudos
Altera_Forum
Honored Contributor II
514 Views

I found the following sentences in “Embedded Peripherals IP User Guide”. It seems that the SDRAM controller do the SDRAM chip initialization. It seems that there is no need for software to do initialization. This is different from my experience on embedded software development. So I would like to have confirmation from experts. Thanks. 

================================================ 

The SDRAM controller behaves like simple memory when accessed via the Avalon-MM interface. There are no software-configurable settings and no memory-mapped registers. No software driver routines are required for a processor to access the SDRAM controller.
0 Kudos
Altera_Forum
Honored Contributor II
514 Views

 

--- Quote Start ---  

It seems that there is no need for software to do initialization. 

--- Quote End ---  

 

That's generally true for the Altera SDRAM controllers I know. On the other hand, the controller interface doesn't offer any means to send configuration parameters to the RAM, this should also answer your question.
0 Kudos
Altera_Forum
Honored Contributor II
514 Views

 

--- Quote Start ---  

That's generally true for the Altera SDRAM controllers I know. On the other hand, the controller interface doesn't offer any means to send configuration parameters to the RAM, this should also answer your question. 

--- Quote End ---  

 

 

Got it. Thanks.
0 Kudos
Reply