Создал конфигурацию ПЛИС, NIOS и написал программу. Всё работает, но только при непосредственном запуске из эклипса. Никак не получается записать на флеш и запустить с неё. При этому непосредственно логика ПЛИС работает после прошивки (перезагрузки).
Входная частота 20 МГц, после PPL в QSYS 100 МГц.
Делаю mem_init_generate и добавляю qip файл от этого mem_init_generate.
Следую данной иструкции:
1- Add EPCS Flash Controller in Qsys
2- Connect the Clk input of EPCS Flash Loader IP to a separate clock of < 25Mhz
3- Set Reset Vector offset of NiosII to the Base Address of EPCS Flash Loader.
4- Set Exception vector to any On Chip RAM
5- Generate Qsys
6- Open BSP Editor and set all linker regions to SDRAM / onchip memory
7- Generate BSP and Build the BSP project
8- Build Your C code and obtain *.elf
9- Goto make targets->Build and run "mem_init_generate"
10- From mem_init folder include *.qip file in your Quartus project and recompile to get *.SOF
11- copy *.SOF and *.elf files in a separate folder i.e /output
12- perform following in NiosII command Shell:
1. Create a flash file for the hardware and software image
sof2flash --input=<hwimage>.sof --output=hwimage.flash --epcs --verbose
elf2flash --input=<elf file>.elf --output=swimage.flash --epcs --after=hwimage.flash --verbose
2. Convert the flash images into Hex files
nios2-elf-objcopy -I srec -O ihex hwimage.flash hwimage.hex
nios2-elf-objcopy -I srec -O ihex swimage.flash swimage.hex
3. Generate *.JIC file
Create your jic file using Quartus® II Convert Programming File tool, add the Flash Loader and
both hex files with absolute addressing option selected.
Подскажите что может быть?



