flash 下载出错,可验证,可擦写,编程出错,不知是哪出错了?
以前使用同一块板子,下载正常。
# Programming flash with the FPGA configuration
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='ByteBlasterII [LPT1]' --devi
ce=1 --sidp=0x008020E0 --id=397118007 --timestamp=1166755453 --epcs --base=0x008
01800 cjq.flash
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x008020E0: verified
: Checksumming existing contents
00000000 : Verifying existing contents
00010000 : Verifying existing contents
00010000 : Reading existing contents
Checksummed/read 128kB in 12.8s
00010000 ( 0%): Erasing
Erased 64kB in 0.0s
00000000 ( 0%): Programming
00010000 ( 0%): Programming
Program failed
Leaving target processor paused
# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --epcs --after=cjq.flash --input=hello_world_1.elf
--output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/b
oot_loader_epcs.srec
# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='ByteBlasterII [LPT1]' --devi
ce=1 --sidp=0x008020E0 --id=397118007 --timestamp=1166755453 --epcs --base=0x008
01800 epcs_controller.flash
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x008020E0: verified
: Checksumming existing contents
00010000 : Verifying existing contents
00010000 : Reading existing contents
Checksummed/read 64kB in 10.4s
00010000 ( 0%): Erasing
Erased 64kB in 0.0s
00010000 ( 0%): Programming
Program failed
Leaving target processor paused
正常提示:
Checksummed/read 102kB in 4.1s
Erase not required
00000000 ( 0%): Programming
00010000 ( 0%): Programming
Programmed 102KB in 0.0s
No change to device contents
Leaving target processor paused
。。。。。。。。。
Erased 64kB in 0.9s (71.1kB/s)
00010000 ( 0%): Programming
Programmed 3KB +61KB in 1.1s (58.1KB/s)
Did not attempt to verify device contents
Leaving target processor paused
可以,在as模式下下载,而且能够使用jtag调试。
当时用命令行形式时对epcs进行读操作时,只能够读出部分,不能100%读出。
而且感觉--read-byte参数不起作用,当该参数为0,0x100时,在读的过程中提示信息仍然按0x1000,0x2000,0x3000......增加,最后停止在某个百分比,提示:"unable to read data from address 0xxxxxxx".
修改过了,现在已经没有了。但是状况还是一样。
以前在为处理timing部分的问题时曾经正常下载过。会不会有和系统有关系?
你用示波器看一下epcs上的信号质量好不好?
你以前用这块板子成功过吗,如果成功了,那肯定是你现在的工程有问题。
用示波器看到epcs上的时钟信号有波动,但幅度还够,低电平也足够低。
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |