请教版主:我用ide的flash programmer想把fpga的配置程序和niosII的程序都存于epcs16中, 但是programming后,重新加电后,niosII的程序没有运行起来,程序运行在ssram里。于是比较了一下网上别人的flash programmer文件中的一部分, A:我的 !/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 F:/FPGA_PRO/BD2068_2/niosII_study/epcs_test/niosII_prj/blank_project_0/Debug # Creating .flash file for the FPGA configuration "$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="F:/FPGA_PRO/BD2068_2/niosII_study/epcs_test/FPGA_EP3C25.sof" --output="FPGA_EP3C25.flash" # Programming flash with the FPGA configuration "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00000000 --cable='USB-Blaster [USB-0]' --instance=0 "FPGA_EP3C25.flash" # Creating .flash file for the project "$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="FPGA_EP3C25.flash" --input="blank_project_0.elf" --output="epcs_flash.flash" # Programming flash with the project "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00000000 --cable='USB-Blaster [USB-0]' --instance=0 "epcs_flash.flash"
B:网上的 #!/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:/0Clare/DE2/DE2_NIOS_epcs_boot/software/hello_led_0/Debug # Creating .flash file for the FPGA configuration "$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="D:/0Clare/DE2-70/DE2_70_NIOS_epcs_boot/DE2_70_NET.sof" --output="DE2_70_NET.flash" # Programming flash with the FPGA configuration "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01b01800 --instance=0 "DE2_70_NET.flash" # Creating .flash file for the project "$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x01400000 --end=0x17fffff --reset=0x1400000 --input="hello_led_0.elf" --output="cfi_flash_0.flash" --boot="C:/altera/72/ip/nios2_ip/altera_nios2/boot_loader_cfi.srec" # Programming flash with the project "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x01400000 --instance=0 "cfi_flash_0.flash"
发现如下问题: 我的文件中怎么没有下面的东西(红色部分): # Creating .flash file for the project "$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x01400000 --end=0x17fffff --reset=0x1400000 --input="hello_led_0.elf" --output="cfi_flash_0.flash" --boot="C:/altera/72/ip/nios2_ip/altera_nios2/boot_loader_cfi.srec"
我的程序没运行起来,是不是由于这个原因,如何解决,请高手多多指点。 |