I'm trying to generate .jic file from .sof and .elf that use Terasic's self-balancing car demo_nios_code practice. All .sof and .elf are not modified, but my .jic can't work like demo_batch_jic's .j...
From the jic generation, I observed that you do not set the address for the hex file. I would recommend to set the address that you used based on your Quartus design.
I trying the way by the document. Added legacy_epcs_flash_controller in the Qsys, I also set Nios's reset_vector in epcs_flash_controller. then I convert the program file to .jic.
I program successfully, but my function didn't work. seem like Nios doesn't boot right.
That is my memory file.
Meanwhile, I also try the Nios2 flash programmer, but GUI has a problem that can't read the Epcs layout patch file. So I type instruction to implement the flash programmer in Nios2 commend shell , then I got information after both flash programmer instruction finish.
#program sof flash nios2-flash-programmer "software/balcar_soft_bsp/flash/balcar_nios_epcs_flash_controller_0.flash" --base=0x1101000 --epcs --sidp=0x11020B0 --id=0x0 --timestamp=1603266025 --device=2 --instance=0 '--cable=DE-SoC on localhost [USB-1]' --program --erase-all --override=c:/nios2-flash-override.txt
#elf transfer to flash elf2flash --input="software/balcar_soft/balcar_soft.elf" --output="software/balcar_soft_bsp/flash/balcar_soft_epcs_flash_controller_0.flash" --epcs --after="software/balcar_soft_bsp/flash/balcar_nios_epcs_flash_controller_0.flash"