Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFlash programmer problem with the nEEK
Hello,
I'm using the NEEK board with the cycloneIII_embedded_evaluation_kit_web_server.ptf and sof file. I have burned the sof into the CFI. I'm using the following command to create the software flash file: elf2flash --base=0x100000 --end=0xffffff --reset=0x5000000 --input=zImage --output=zImage.flash then I burn the flash file into flash, but when I recycle the power, it fails to show any messages on the nios2-terminal The zImage is OK, I know it works using the nios2-download -g zImage. This SOPC system has the reset vector pointing to the SSRAM = 0x5000000. The SOF is burned into the FLASH at the offset 0x20000, which is 0x4020000 in the SOPC map. I don't want to overwrite the SOF, so I'm moving the zImage to 0x100000. What am I missing? Thanks3 Replies
- Altera_Forum
Honored Contributor
The base address must be the base address of the flash. That's 0x4000000 for the NEEK. The end address must likewise be the end address of the flash. The reset address must be in Flash and above where the sof sits (so, 0x4200000 or higher). If the reset address is not in flash, it won't boot from flash when you reset it.
- Altera_Forum
Honored Contributor
The original design has the NIOS processor's reset vector pointing to the SSRAM. I guess that uC-II OS dose not mind with the reset vector pointing to the SSRAM. According to the uClinux FlashProgrammer page, the reset vector will contain the boot loader. How much space does the boot loader require?
Thanks - Altera_Forum
Honored Contributor
Ok, it works. Sorry about the confusion with the reset vector, it is pointing to the flash