Booting BeMicro Max 10 From EPCS (Nios II)

for more visit: www.fpgalover.com

If you like my FREE FPGA tutorials, buy me a coffee, or a biscuit or whatever you like.

Written by Holguer A. Becerra

  • Here the project template: Download

  • if you want the EPCS memory to storage your Nios II software on a MAX10FPGA, you have to set up the Nios II with the following parameters:

  • Make sure you have programmed the FPGA wiith the sof file before programming the EPCS.

  • In order to create the xxxx.flash file with an epcs bootloader you should open the Nios II shell as admin and then type(Your elf directory is probably quite different from the shown below, so make sure you change it):

    • Now, in order to upload the software to the EPCS memory you should do:

      • Probably, you would like to storage the .sof on your design as non-volatile, for that you must open quartus and go to file->Covert Programming Files...

    • Then a window pops up and you have to set the parameters, and click Generate:

    • Open the Quartus Programmer and add the created .pof file and program

Enjoy!

//to create de flash with epcs bootloader

elf2flash --epcs --input="C:/FPGAs/practica4/software/max_nios_classic_ucos/max_nios_classic_ucos.elf" --output="C:/FPGAs/practica4/software/max_nios_classic_ucos_bsp/max_nios_classic_ucos_flash.flash" --verbose

// to program the epcs

nios2-flash-programmer "C:/FPGAs/practica4/software/max_nios_classic_ucos_bsp/max_nios_classic_ucos_flash.flash" --base=0x1001000 --epcs --sidp=0x1002040 --id=0x00 --accept-bad-sysid --timestamp=1432137269 --device=1 --instance=0 '--cable=USB-Blaster on localhost [USB-0]' --program --verbose

for more visit: www.fpgalover.com

If you like my FREE FPGA tutorials, buy me a coffee, or a biscuit or whatever you like.