Altera_Forum
Honored Contributor
11 years agoelf_2_flash command and Cyclone IV Transciever Starter Kit
This elf_2_flash command
elf2flash --base=0x08000000 --end=0x08FFFFFF --reset=0x08800000 --input=<yourfile>_sw.elf --output=<yourfile>_sw.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_sources/boot_loader_cfi.sre Do I assume that the FLASH starts at 0x08000000 and ends at 0x8ffffff and the reset vector is at 0x08000000 + 0x00800000 the offset into the FLASH to the user code. Does that mean I need to provide a .elf with a start at 0x08800000 ? My SSRAM is at 0x00000000 where the NIOS II code should end up after the boot loader copied it from FLASH .. I seem to get an error if I use the actual .elf indicating the base address and the address information in the .elf are not compatible . Also the Cyclone IV GX Transciever card has Intel JS28F128P33BF FLASH ... I have a NIOS II program running out of SSRAM that dump the SSRAM contents but when I attempt to dump the the FLASH contents I either get a constant of 0xffffffff. I checked the FLGA load and the CSn is low and the OEn is low and the address increments I believe every 800 nS and I see read data rerturned. Trying the same thing from NIOS doesn't yield results. Is there any example out there of the design and polarities and timing setup for the Cyclong IV GX Transciever Card. I can't use the BTS design as a reference since it won't display in Quartus as it was developed with an earlier toolset. Thnaks, Bob