周一开始调,周日加班各种测试啊,先测试各种电都正确,还有时钟也还可以,但是S3的时钟波形不是很好,质量有点差,感觉还能用,连上JTAG后,能扫到S3,之后就是写个跑灯的程序,可是。。。。。。。。下载不进去啊,各种问题啊!读寄存器结果如下:
'1': Reading status register contents...
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1111 1110 1100
INFO:iMPACT:2492 - '1': Completeddownloading core to device.
Ready/Busy Bit: 1
Result of Main Memory Page to BufferCompare: 0
Device Density Bits: 0111
Sector Protection enabled: 0
Power of 2 binary page size enabled: 0
INFO:iMPACT - Address 0x00000000 is insector 0.
INFO:iMPACT - Address 0x0002480B is notlocated at the start of a sector boundary. The whole sector will be erased.
INFO:iMPACT - Address 0x0002480B is insector 3.
The security register values are:
Sector[0]: NOT SECURED (0)
Sector[1]: NOT SECURED (0)
Sector[2]: NOT SECURED (0)
Sector[3]: NOT SECURED (0)
Sector[4]: NOT SECURED (0)
Sector[5]: NOT SECURED (0)
Sector[6]: NOT SECURED (0)
Sector[7]: NOT SECURED (0)
Sector[8]: NOT SECURED (0)
INFO:iMPACT - Address 0x00000000 is insector 0.
INFO:iMPACT - Address 0x0002480B is notlocated at the start of a sector boundary. The whole sector will be erased.
INFO:iMPACT - Address 0x0002480B is insector 3.
The lockdown register values are:
Sector[0]: NOT LOCKED DOWN (0)
Sector[1]: NOT LOCKED DOWN (0)
Sector[2]: NOT LOCKED DOWN (0)
Sector[3]: NOT LOCKED DOWN (0)
Sector[4]: NOT LOCKED DOWN (0)
Sector[5]: NOT LOCKED DOWN (0)
Sector[6]: NOT LOCKED DOWN (0)
Sector[7]: NOT LOCKED DOWN (0)
Sector[8]: NOT LOCKED DOWN (0)
'1': Reading security register...
Factory ID
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
done.
'1': Reading security register...
One-time User Programmable
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
done.
下载时报错如下:INFO:iMPACT - Current time: 2016/7/821:29:14
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for thisdevice chain: 10000000.
Validating chain...
Boundary-scan chain validated successfully.
Updating config fileE:/FPGA_XC/XC_S3/RunLed1/RunLed1/RunLed/runled.bit...
'1': Programming device...
LCK_cycle = NoWait.
LCK cycle: NoWait
done.
'1': Reading status register contents...
CRC error : 0
IDCODE not validated while writingFDRI : 0
DCM Locked : 0
status of GTS_CFG_B : 0
status of GWE : 0
status of GHIGH : 0
value of VSEL pin 0 : 0
value of VSEL pin 1 : 0
value of VSEL pin 2 : 0
value of MODE pin M0 : 0
value of MODE pin M1 : 0
value of MODE pin M2 : 0
value of CFG_RDY (INIT_B) : 0
DONEIN input from Done Pin : 0
SYNC word not found : 0
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0000 0000 0000 0000
INFO:iMPACT:579 - '1': Completeddownloading bit file to device.
INFO:iMPACT:188 - '1': Programmingcompleted successfully.
LCK_cycle = NoWait.
LCK cycle: NoWait
INFO:iMPACT - '1': Checking donepin....done.
'1': Programming terminated. DONE did notgo high.
这就纠结了,开始怀疑各种硬件问题,什么M2-M0设置,才信号测电压,JTAG改电阻,INIT DONE引脚各种测,各种改阻值就是不行,最好还是乖乖看ug322手册,按手册给的烧写程序一步步搞,改了下下载的时钟速率,结果烧进去啦!!哈哈,成功啦!很开心!当然这个硬件JTAG还是有点问题,再改进至少问题解决了。以后再遇到问题,先按软件的改,别一味的怀疑硬件电路设计有问题,当然,前提是真没问题,测试的也都对。