完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在试用一块使用xc3s1200e的新电路板。
在电路板中,我使用主SPI模式配置FPGA,SPI器件是AT45DB642D。 我可以通过JTAG来确认FPGA。 我也可以通过“使用iMPACT直接编程”对SPI闪存进行编程。 但我无法通过SPI闪存配置FPGA。 我使用的配置模式是: (M2,M1,M0)=(0,0,1);(VS2,VS1,VS0)=(1,1,0); 1.以下是我尝试从SPI启动FPGA后使用JTAG“读取状态寄存器”得到的结果。*** *** BATCH CMD:ReadStatusRegister -p 1此设备链的最大TCK工作频率: 10000.Validating chain ...边界扫描链成功验证。'1':读取状态寄存器内容... CRC错误:0解密器安全设置:0DCM锁定:1DCI匹配:1legacy输入错误:GTS_CFG_B的0状态:GWE的0状态: GHIGH的0状态:MODE引脚的0值M0:MODE引脚的1值M1:MODE引脚的0值M2:CFG_RDY的0值(INIT_B):DONE引脚的1DONEIN输入:尝试写入FDRI时0IDCODE未验证:0write FDRI发出之前或之后 解密操作:0Decryptor键未按正确顺序使用:0 2.如果这个问题与FPGA的上电顺序和SPI闪存有关,我试着将PROG_B信号保持逻辑0一段时间,然后释放它。 但是sympton是一样的。 3.通过使用示波器,我可以看到CCLK信号,CSO_B是逻辑'0'。 但是我看不到从FPGA的MOSI引脚发出的启动命令以及SPI的回复。 当我监视MOSI引脚时,我重复按住PROG_B信号并释放它。 所以我认为我应该能够看到来自MOSI的命令,如果它运行良好的话。 4.在我的设计中,板上还有另一个32位微处理器,微处理器和FPGA之间有一些接口,canthese接口会导致问题吗? 提前帮助你。 以上来自于谷歌翻译 以下为原文 I am dubugging a new board which uses xc3s1200e. In the board, I use master SPI mode to configure the FPGA, and the SPI device is AT45DB642D. I can confihure the FPGA through JTAG. Also I can program the SPI flash by "direct programming using iMPACT". But I cannot configure the FPGA through the SPI flash. The configuration mode I use is: (M2,M1,M0) = (0,0,1); (VS2,VS1,VS0) = (1,1,0); 1.The following is what I got from "read the status register" using JTAG, after I tried to start the FPGA from the SPI. // *** BATCH CMD : ReadStatusRegister -p 1 Maximum TCK operating frequency for this device chain: 10000000. Validating chain... Boundary-scan chain validated successfully. '1': Reading status register contents... CRC error : 0 Decryptor security set : 0 DCM locked : 1 DCI matched : 1 legacy input error : 0 status of GTS_CFG_B : 0 status of GWE : 0 status of GHIGH : 0 value of MODE pin M0 : 1 value of MODE pin M1 : 0 value of MODE pin M2 : 0 value of CFG_RDY (INIT_B) : 1 DONEIN input from DONE pin : 0 IDCODE not validated while trying to write FDRI : 0 write FDRI issued before or after decrypt operation: 0 Decryptor keys not used in proper sequence : 0 2. In case that this problem related to the power up sequence of the FPGA and the SPI flash, I tried to hold the PROG_B signal to logic zero for sometime, then release it. But the sympton was the same. 3. By using the scope, I could see the CCLK signal, and the CSO_B was logic '0'. But I cannot see the startup commands sent out from the MOSI pin of FPGA and the reply from the SPI. While i was monitoring the MOSI pin, I repeatly hold PROG_B signal low and release it . So I think I should be able to see commands coming out from MOSI, if it works well. 4. In my design, there is another 32-bit microprocessor on the board, there are some interfaces between the microprocess and the FPGA, canthese interfaces cause the problem? Thans in advance for your help. |
|
相关推荐
3个回答
|
|
既然你没有在MOSI引脚上得到任何东西,我就会从那里开始。
仔细检查您的原理图,FPGA符号,PCB等,1200E的专用MOSI引脚是否正确连接,并且在配置期间没有其他任何东西驱动它。 如果你有一个串行Flash测试,你可以从FPGA运行(MicroBlaze非常适合这个),它将验证物理连接。 我还要仔细检查没有别的东西让你的VS引脚进入未知状态。 如果您看到CCLK和CSO_B,则PROG和INIT处于正确的状态。 您应该看到一些CCLK切换,然后CSO_B变为低电平,接下来的8个时钟发送读取命令(参见附图中VS = 111)。 保持PROG不应成为该器件的问题,并且绝对不会影响FPGA的MOSI输出。 我在过去遇到过一些问题,HSWAP在配置过程中意外启用了其他一些电路,所以我通常会禁用它。 如果您可以使用Spartan-3A入门板,则可以使用AT45DB161D设备。 这样你至少可以验证你的程序是否正确。 布赖恩 以上来自于谷歌翻译 以下为原文 Since you're not getting anything on the MOSI pin, I'd start there. Double-check your schematic, FPGA symbol, PCB, etc. that the 1200E's dedicated MOSI pin is hooked up correctly and that nothing else is driving it during configuration. If you have a serial Flash test you can run from the FPGA (MicroBlaze is great for this), that will verify the physical connections. I'd also double-check that nothing else is driving your VS pins into an unknown state. If you are seeing CCLK and CSO_B, then PROG and INIT are in the correct states. You should see a few toggles of CCLK, then CSO_B goes low, and the next 8 clocks deliver the Read command (see the attached image for VS = 111). Holding off PROG shouldn't be an issue for this device and definitely would have no affect on the MOSI output from the FPGA. I've had issues in the past with HSWAP accidentally enabling some of my other circuits during configuration, so I typically disable that. If you can get your hands on a Spartan-3A Starter board, it has the AT45DB161D device. That way you could at least verify your procedure is correct. Bryan |
|
|
|
嗨布莱恩,
非常感谢您提供的信息。 我会做更多测试并更新结果。 以上来自于谷歌翻译 以下为原文 Hi Bryan, Thank you very much for your information. I'll do more test and update the results. |
|
|
|
你好,我现在碰到跟您同样的问题,只不过我用的flash是S25FL256S,请问您的问题解决了吗
|
|
|
|
只有小组成员才能发言,加入小组>>
2420 浏览 7 评论
2823 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2294 浏览 9 评论
3374 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2461 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1158浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
584浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
450浏览 1评论
2005浏览 0评论
729浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 04:27 , Processed in 1.442313 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号