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

Parallel Flash Loader -- Selecting from Multiple Images at Power-On

Altera_Forum
Honored Contributor II
980 Views

I'm currently booting an FPGA from external flash via a CPLD with a PFL megafunction instantiated.. 

 

I'd like to have 2 images on the flash, and based on the state of an input select pin at power on, the PFL will decide which sector contains the image to load. 

 

The problem I'm having is that the option bits containing the start sector is in flash, therefore it'll always load from the same sector offset. 

 

Alternatively, outside of the PFL I can set an upper address line high and thereby trick the PFL to load an image that is at a different address, but this didn't work either, for reasons unknown. I suspect, that it may have to do with the CFI table.. the PFL may first be reading the CFI table before doing anything, and since I've created an offset, it won't be found. 

 

I can't imagine selecting between multiple images from the flash at runtime is a new concept.. so what am I missing?
0 Kudos
0 Replies
Reply