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

Force certain preloader image at QSPI boot

Altera_Forum
Honored Contributor II
997 Views

I am using Altera DevKit with SOCEDS 14.0. 

 

The system boots from QSPI where 2 preloader images 

 

Is there way to force load from specified image?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
307 Views

 

--- Quote Start ---  

I am using Altera DevKit with SOCEDS 14.0. 

 

The system boots from QSPI where 2 preloader images 

 

Is there way to force load from specified image? 

--- Quote End ---  

 

 

Hi. 

 

From a power on reset the code will always attempt to load image 0. However there is a HW register in the system manager that allows a subsequent warm boot to choose any of the images to boot from.
0 Kudos
Altera_Forum
Honored Contributor II
307 Views

Hi 

 

So my understanding is 

Boot 1st preloader from address 0, config hw register to set address of 2nd preloader, do warm reset. Is it correct? 

Is the register name ALT_SYSMGR_ROMHW?
0 Kudos
Altera_Forum
Honored Contributor II
307 Views

 

--- Quote Start ---  

Hi 

 

So my understanding is 

Boot 1st preloader from address 0, config hw register to set address of 2nd preloader, do warm reset. Is it correct? 

Is the register name ALT_SYSMGR_ROMHW? 

--- Quote End ---  

 

 

Hi. 

 

The register is ALT_SYSMGR_ROMCODE_INITSWLASTLD. 

 

The warm reset code reads it to decide which image to read.
0 Kudos
Reply