打印
[FPGA]

求助!XC3S50AN的可以JTAG调试,但是不能下载到内部flash

[复制链接]
3422|10
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
使用XC3S50AN做了一块测试板,写了一个简单的测试程序,循环点亮LED。
生成bit文件,可以通过JTAG下载到FPGA,程序运行正常。
然后生成msc文件,但是下载不到内部FLASH中。
其中M2M1M0配置成:011模式,VS2VS1VS0配置成:111模式。
请大家指点一下。

相关帖子

沙发
longsky1985|  楼主 | 2016-2-3 14:36 | 只看该作者
附上原理图

1.pdf

73 KB

使用特权

评论回复
板凳
longsky1985|  楼主 | 2016-2-3 14:45 | 只看该作者
下载bit文件可以成功

下载成功.jpg (72.69 KB )

下载成功.jpg

使用特权

评论回复
地板
longsky1985|  楼主 | 2016-2-3 14:47 | 只看该作者
下载到内部FLASH提示失败

FLASH下载失败.jpg (72.23 KB )

FLASH下载失败.jpg

使用特权

评论回复
5
longsky1985|  楼主 | 2016-2-3 14:49 | 只看该作者

读取到的芯片状态信息:


INFO:iMPACT - Current time: 2016-2-3 14:48:04
Maximum TCK operating frequency for this device chain: 10000000.
Validating chain...
Boundary-scan chain validated successfully.
'1': Reading status register contents...
CRC error                                                                  :         0
IDCODE not validated while writing FDRI                                    :         0
DCM Locked                                                                 :         1
status of GTS_CFG_B                                                        :         0
status of GWE                                                              :         0
status of GHIGH                                                            :         0
value of VSEL pin 0                                                        :         1
value of VSEL pin 1                                                        :         1
value of VSEL pin 2                                                        :         1
value of MODE pin M0                                                       :         1
value of MODE pin M1                                                       :         1
value of MODE pin M2                                                       :         0
value of CFG_RDY (INIT_B)                                                  :         0
DONEIN input from Done Pin                                                 :         0
SYNC word not found                                                        :         1
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable ope rations.
INFO:iMPACT - Downloading core file E:/Xilinx/14.6/ISE_DS/ISE/spartan3a/data/xc3s50an_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 - 0011 1111 1110 1100
INFO:iMPACT:2492 - '1': Completed downloading core to device.
Ready/Busy Bit: 1
Result of Main Memory Page to Buffer Compare: 0
Device Density Bits: 0101
Sector Protection enabled: 0
Power of 2 binary page size enabled: 0
INFO:iMPACT - Address 0x00000000 is in sector 0.
INFO:iMPACT - Address 0x0000D5AD is not located at the start of a sector boundary. The whole sector will be erased.
INFO:iMPACT - Address 0x0000D5AD is in sector 2.
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)
INFO:iMPACT - Address 0x00000000 is in sector 0.
INFO:iMPACT - Address 0x0000D5AD is not located at the start of a sector boundary. The whole sector will be erased.
INFO:iMPACT - Address 0x0000D5AD is in sector 2.
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)
'1': Reading security register...
Factory ID
0F 05 11 0B 2B 1A 1F 23 00 01 7F 04 FF FF 09 FF
30 30 30 51 4D 4B 39 38 19 50 22 FF FF FF FF FF
44 44 44 44 FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

done.
'1': Reading security register...
One-time User Programmable
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

done.

使用特权

评论回复
6
daichao8715| | 2016-4-5 08:26 | 只看该作者
我也遇到同样的问题,望大神回复!

使用特权

评论回复
7
3008202060| | 2016-4-16 00:31 | 只看该作者
内部哪有flash。。mcs是下载到片外的flash上的 你都没画当然下载不了

使用特权

评论回复
8
无声无息| | 2018-1-20 11:59 | 只看该作者
3008202060 发表于 2016-4-16 00:31
内部哪有flash。。mcs是下载到片外的flash上的 你都没画当然下载不了

3AN系列是存在内部flash

使用特权

评论回复
9
无声无息| | 2018-1-20 12:01 | 只看该作者
matthewchan 发表于 2016-5-8 22:04
不需要生成什么msc文件,直接生成bit后,右击就有下载选项,跟jtag下载类似。
配置没问题,粗看一眼应该是 ...

那个这个不会掉电都是吗?我一直提示SPIDevice not tofound。加了spi补丁也不行,请问有什么解决办法?

使用特权

评论回复
10
无声无息| | 2018-1-20 12:02 | 只看该作者
请问解决了吗,我也遇到了,试了好多方法,包括增加spi补丁也不行。请教请教

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

5

帖子

0

粉丝