Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by nigelatta@Dec 1 2006, 07:26 AM sorry, don't know what your specific problem is but i have run through the ecos for nios ii guide using the altera example design on the altera dev board and the rom configuration works ok for me. --- Quote End --- Does your setup use a second bootloader to start RedBoot? When I look at the program_flash script generated when I build the ROM-startup version of RedBoot, I see that it appears another bootloader is being added by elf2flash when it is used to generate an .srec file:
echo Generating flash file for device cfi_flash_0...
elf2flash --silent --input=$1 --flash= --boot=`$QUARTUS_ROOTDIR/sopc _builder/bin/find_sopc_component_dir altera_nios2`/boot_loader_cfi.srec --outfil e=$TMP/ecos.flash --sim_optimize=0 --base=0x00000000 --end=0x003fffff --reset=0x 08000000 I can't figure out what that bootloader is supposed to do (I'm not using it). Can anybody point me to documentation on what the boot_loader_cfi.srec file does? Neither am I using elf2flash, since I can't get it to actually generate any output. Is there any documentation on exactly what efl2flash does and why the standard gnu binutils nios2-elf-objcopy utility isn't used to convert from elf format to motorola S-record format? <div class='quotetop'>QUOTE </div> --- Quote Start --- Have you checked under 'eCos HAL->Nios2 architecture' in the config tool to make sure that your text and rodata region are set to your flash memory?[/b] --- Quote End --- Yes. That's clear from my original posting: the text and rodata sections are in flash. However, the .entry section _isn't_ in flash, and I suspect that's the problem (as I stated in my original posting). Where is your .entry section? -- Grant