Altera_Forum
Honored Contributor
16 years agoHelp for storing nios II software and fpga config in flash
Hi,
I need some help about storing fpga configuration and nios software in a extern flash. I'm using pci dev kit from altera which has a stratix II gx, a 512 Mb CFI flash and a epm570 with a parrallel flash loader for writing configuration at start up. I make a design with lot of IP's, glue logic and a nios processor executing software from onchip memory (M4K's RAM block). My problem is that I can convert my sof file to a pof file and write it to the flash but when the board start, my nios software doesn't run. Of course. I read many application note about boot methods (like AN458) but I don't know how to do... So first, I add a cfi flash controller (and a tristate bus) in my sopc system and pointing reset vector to extern flash. Generate sopc, compile new sof but it doesn't work. When I try to program my sof and my elf with flash programmer, I've got an error "No CFI table found". 1/ I try to test hardware between nios and flash but I can't use memtest.c because my onchip memory has not enough space to compile and I can't increase it (stratix II memory is full) 2/ One problem is when I add extern flash in sopc, I tell that my address bus width is 25 bits (so 24 downto 0) and sopc generate a component with 26 bits (25 downto 0) ?? Is that a bug ?? What can I do with my additional bit.... ? Could someone help me and give me some tips ? I'm lost and I don't know what to do... :rolleyes: I see an another method : creating a pof including my sof configuration and my elf software program. Is that possible ? How ? Thank you in advance for all your help! Bye. Fabrice.