|
硬件系统:EP2C8 + EPCS4 + SDRAM + LED + LCD
硬件背景:用Verilog写的代码,编译,AS方式把POF文件下载到EPCS4,关电,上电,运行正常---LED正常闪烁烁,LCD正常显示图形。(确定EPCS电路没问题)
软件系统:NIOS II
问题所在:Run as 模式下,LED正常闪烁,LCD也能正常显示图形。下载到EPCS4时,关电,上电,LED能正常闪烁,LCD却没显示了!
用FLASH programmer下载时,打印出来的息信如下:
#!/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:/NIOSII/Study/IPM_IM_NIOS/software/IPM_IM/Debug
# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="E:/NIOSII/Study/IPM_IM_NIOS/IPM_
IM_NIOS.sof" --output="IPM_IM_NIOS.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=IPM_I
M_NIOS.opt E:/NIOSII/Study/IPM_IM_NIOS/IPM_IM_NIOS.sof IPM_IM_NIOS.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 71 megabytes
Info: Processing ended: Tue Mar 09 14:07:03 2010
Info: Elapsed time: 00:00:04
Info: Total CPU time (on all processors): 00:00:03
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert IPM_IM_NIOS.pof IPM_IM_NIOS.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 70 megabytes
Info: Processing ended: Tue Mar 09 14:07:07 2010
Info: Elapsed time: 00:00:04
Info: Total CPU time (on all processors): 00:00:04
# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --instance
=0 "IPM_IM_NIOS.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
: Checksumming existing contents
00000000 : Verifying existing contents
00010000 : Verifying existing contents
00000000 : Reading existing contents
00010000 : Reading existing contents
Checksummed/read 7kB in 0.1s
00000000 ( 0%): Erasing
00010000 (50%): Erasing
Erased 128kB in 2.1s (60.9kB/s)
00000000 ( 0%): Programming
00010000 (50%): Programming
Programmed 122KB +6KB in 3.0s (42.6KB/s)
Did not attempt to verify device contents
Leaving target processor paused
# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="IPM_IM_NIOS.flash" --input="IPM_
IM.elf" --output="epcs_flash_controller.flash"
# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --instance
=0 "epcs_flash_controller.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
: Checksumming existing contents
00010000 : Verifying existing contents
00020000 : Verifying existing contents
00010000 : Reading existing contents
00020000 : Reading existing contents
Checksummed/read 82kB in 2.0s
00010000 ( 0%): Erasing
00020000 (50%): Erasing
Erased 128kB in 2.1s (60.9kB/s)
00010000 ( 0%): Programming
00020000 (50%): Programming
Programmed 47KB +81KB in 3.0s (42.6KB/s)
Did not attempt to verify device contents
Leaving target processor paused
请高手指点了,折腾了N天了。。。问题还没得到解决。。。 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|