Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by monkeyboy@Aug 11 2005, 03:44 AM this is the code in the .entry section, which is placed by the linker script at the reset address of the processor - which in your case would be a location in the epcs device, not the sdram. have you modified the linker script as well? --- Quote End --- We wrote a BASH script that remaps all the sections in SDRAM (i.e. everything except .entry) into flash. Then our bootloader just copies a fixed block of flash to the base of SDRAM and jumps to the first address in SDRAM. We didn't modify the linker script because we wanted it to only see the RAM addresses it will be executing from. Our bootloader didn't have access to _start; the Quartus II programmer discarded that info in its Convert Programming Files... command. BTW, this is an EPC device, not an EPCS device; it's on a parallel bus, not the active serial bus. I guess we'll just need to change our script to get the _start address and put it where .entry used to be, and change the bootloader so it fetches that address. Or figure out how to get RedBoot fit in 64K.