NET-FMC
User Manual
- 23 -
www.terasic.com
January 16, 2018
Remote update your design
Create your custom Quartus project. If your project contains a nios II system with a
software, you should add a CFI_Flash device on address map 0x00000000 and set
the nios2 reset vector to the Flash device. The offset should be 0x071c0000.
In Nios II Command Shell, convert your custom sof and elf file to flash file with the
below commands.
For sof files:
sof2flash
--input=xxxx.sof
--output=xxx.flash
--offset=0x02940000
--pfl
--optionbit=0x00030000
--programmingmode=FPP (the sof file name should be changed according to your quartus project name)
For elf file:
elf2flash
--base=0x00000000
--end=0x07FFFFFF
--reset=0x071c0000
--input=xxx.elf
--output=xxx.flash
--boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec (the elf file name should be changed
according to your nios2 software project name)
you can use the batch file in flash_convert directory to convert your sof and elf to flash
In the web page, choose your hardware and software flash files, then press the Upload
button to starting write your design files to the Flash on TR5 board.
The browser will goto the reset_system page when the write process finished.
Set the FACTORY_LOAD switch (SW4) to 1 and the BOOT_PAGE LED(D24) light on.
Press the MAX_RST(BUTTON5), the FPGA will be configured with your design.