现象:用impact下载bit文件正常,但是通过jtag连接fpga下载到flash下不下去,一点下载就failed,报错如下:
done.
PROGRESS_END - End Operation.
Elapsed time = 0 sec.
Selected part: M25P16
Unprotect sectors: FALSE
INFO:iMPACT - Current time: 2024/3/29 17:48:17
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 25000000.
Validating chain...
Boundary-scan chain validated successfully.
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations.
INFO:iMPACT - Downloading core file D:/Xilinx147/14.7/ISE_DS/ISE/spartan6/data/xc6slx9_spi.cor.
'1': Downloading core...
LCK_cycle = NoWait.
LCK cycle: NoWait
done.
'1': Reading status register contents...
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0010 0000 0100 1000
INFO:iMPACT:2492 - '1': Completed downloading core to device.
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation.
Elapsed time = 1 sec.
一开始用的M25P40,直接下载不行,后来换成M25P80,第一次下载对了,后面又死活下载不下去了,说明整个硬件大概没问题,后来怀疑过ise版本,怀疑jtag下载线时钟,在网上找类似错误感觉都不是,又在flash6腿时钟加电容测试了很久,其间出现过一个很有意思的现象,只要把示波器探针点在6腿上就可以下载成功,替换成不同规格的电容测试却都有问题,最后搞了四天,发现换个电源就好了!!!