Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHere is an examle programming script created by Nios IDE, where the software is not a linux but uC-os II. Try modifying it.
There seems to be no need for a --location sting when you select to program using a boot loader, the --location string is probably only needed if you program some kind of filesystem or data into the flash. But I may be wrong, we only program Linux into cfi_flash. # ! /bin/sh# # This file was automatically generated by the Nios II IDE Flash Programmer.# # It will be overwritten when the flash programmer options change.# cd D:/bandrej/projects/lcd_and_onewire/software/lcd_and_onewire/Debug # Creating .flash file for the FPGA configuration $SOPC_KIT_NIOS2/bin/sof2flash --epcs --input=D:/bandrej/projects/lcd_and_onewire/lcd_display.sof --output=lcd_display.flash # Programming flash with the FPGA configuration $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --sidp=0x00028980 --id=1554744427 --timestamp=1148379456 --epcs --base=0x00000000 lcd_display.flash # Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --epcs --after=lcd_display.flash --input=lcd_and_onewire.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --sidp=0x00028980 --id=1554744427 --timestamp=1148379456 --epcs --base=0x00000000 epcs_controller.flash IzI