Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21589 Discussões

Booting NIOS II from SDRAM

Altera_Forum
Colaborador honorário II
2.125 Visualizações

Hello All, 

 

I am building a system where I wish to boot a NIOS II processor from the 32M RAM onboard a DE0-nano system, and hope that someone may have already created a wiki/example/tutorial on the subject. 

 

So far, the SDRAM has been attached, and appears to be accessible from a small NIOS system running in internal FPGA RAM. 

 

Hardware, and boot loader: I have found an example of a boot loader which needs to run out of internal FPGA RAM, but appears to use an SPI interface to talk to the EPCS boot FLASH. I was rather expecting an EPCS interface would be more appropriate. 

 

Boot loader compile options: Presumably it is possible to hard-wire a selection of EPCS load addresses into the boot code, so one of several software modules could be booted into SDRAM, with the selection being made at boot time. 

 

Software development environment: Since the task running out of SDRAM will have a run address outside of internal FPGA RAM, a method is required to either generate position independent code, or to pass an absolute link/load address to the compiler. 

 

EPCS programming: The normal GUI based work flow (using Convert Programming file) is easy enough to allow a JIC file to be created from an SOF. How does one add additional software files for booting, and what are the associated parameters. 

 

Currently using Quartus 12, for reasons of legacy support. 

 

Thoughts and comments please. 

 

Many thanks, Mark
0 Kudos
3 Respostas
Altera_Forum
Colaborador honorário II
918 Visualizações

Hi Mark, 

 

please have a look at [1] for that problem. 

 

Kind regards 

 

[1] https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/an/an736.pdf
Altera_Forum
Colaborador honorário II
918 Visualizações

Many thanks.

Altera_Forum
Colaborador honorário II
918 Visualizações

you are welcome.

Responder