因为开发板是自己做的,我定制了“sram_board"来写epcs4,我的项目的名字叫”nios_epcs",niosII 的reset address 是 epcs_controller 的地址,exception地址是sram的地址,在下载程序时报告如下,下载后程序不运行,(程序已经在sram上成功运行过),哪位大侠能指点一下?
#! /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 E:/altera/nios_epcs/software/epcs/Debug
# Creating .flash file for the FPGA configuration $SOPC_KIT_NIOS2/bin/sof2flash --flash=U1 --offset=0x00000000 --epcs --input=E:/a ltera/nios_epcs/niosII.sof --output=niosII.flash Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=niosII .opt E:/altera/nios_epcs/niosII.sof niosII.pof Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Mon Jan 23 19:34:23 2006 Info: Elapsed time: 00:00:02 Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert niosII.pof niosII.rpd Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Mon Jan 23 19:34:29 2006 Info: Elapsed time: 00:00:05 WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Programming flash with the FPGA configuration $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=niosII.flash --sof=e:/altera/ dev_board/sram_board/system/sram_board.sof --epcs Jan 23, 2006 7:34:30 PM - (??) nios2-flash-programmer: Launching Quartus Program mer to download: e:/altera/dev_board/sram_board/system/sram_board.sof Pre-Reading 74KBytes of data from U1: |----.----+----.----| ********************* (49.718 sec). Erasing 2 Sectors: |----.----+----.----| ********************* (2.782 sec). Writing 128KBytes : |----.----+----.----| ********************* (30.64 sec). Verifying 128KBytes of data: |----.----+----.----| ********************* (33.422 sec). Jan 23, 2006 7:36:41 PM - (??) nios2-flash-programmer: Success. Verified 128Kbyt es written to U1. Jan 23, 2006 7:36:41 PM - (??) nios2-flash-programmer: Flash programming complet e WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --flash=U1 --epcs --base=0x0 --end=0x7fffffff --in put=epcs.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/al tera_nios2/boot_loader_epcs.srec WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=epcs_controller.flash --sof=_ _NO_SOF_PLEASE__ --epcs Jan 23, 2006 7:36:42 PM - (??) nios2-flash-programmer: SOF-download skipped. Pre-Reading 16KBytes of data from U1: |----.----+----.----| ********************* (17.359 sec). Writing 64KBytes : |----.----+----.----| ********************* (15.016 sec). Verifying 64KBytes of data: |----.----+----.----| ********************* (16.672 sec). Jan 23, 2006 7:37:39 PM - (??) nios2-flash-programmer: Success. Verified 64Kbyte s written to U1. Jan 23, 2006 7:37:39 PM - (??) nios2-flash-programmer: Flash programming complet e WARNING: Default charset GBK not supported, using ISO-8859-1 instead
|