完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想在同一个SPI闪存中存储多个FX3固件和一个FPGA比特流。我想选择哪个固件要加载。FX3应该从SPI引导,然后允许FPGA配置。我还希望能够使用主机应用程序在闪存中存储数据。例如,用户使用主机应用程序提供一个字节数据作为输入。数据应存储在SPI Flash中。然后固件使用该值进行计算,然后与FPGA进行I2C通信,将结果发送到FPGA。
我应该如何分离SPI闪存以满足我的要求? 在固件和引导加载程序中我应该做哪些修改来达到我的要求? FX3和Bootloader如何知道固件和比特流在哪里开始和结束? 以上来自于百度翻译 以下为原文 I want to store the multiple FX3 firmware and one FPGA bitstream in the same SPI flash. I would like to choose which firmware to be loaded .The FX3 should then boot from SPI then allow the FPGA to configure. I would also like to be able to store the data in the flash using a host app. For example , the user gives one byte data as input using host app. The data should be stored in SPI flash. Then The firmware uses this value for some calculation and then perform I2C communication with FPGA to send the result to FPGA . How should I separate the SPI Flash memory for my requirements? What modification I should do in firmware and boot loader to achieve my requirements? How does the FX3 and bootloader knows where the firmware and bitstream starts and ends? |
|
相关推荐
3个回答
|
|
嗨,Maheswari,
我现在的第一个信息是: 请参考以下两个URL:AN76405-EZ-USB®FX3μ/FX3S启动选项CyPress半导体和FX3程序员手册:HTTP://wwwyCysP.COM/FIL/12438 6/下载 AN76405称SPI引导只支持一个固件映像,不允许冗余图像。 根据程序员的参考手册:在复位时,ROM引导加载程序基于PMOD[2:0]标识引导模式。当引导加载程序识别SPI是引导模式时,它尝试从SPI Flash读取地址0。当找到有效的头时,ROM引导加载程序继续。 有效的头信息可作为AN76405应用笔记的一部分。 当你提到Bootloader时,你指的是一个定制的引导加载程序(它可能是从SPI闪存运行)还是ROM引导加载程序。 这篇文章将有更多的信息从我的末尾更新。 谢谢和问候, 苏德希尔 以上来自于百度翻译 以下为原文 Hi Maheswari, The first level of information that I have now is: Please refer the following two URLs: AN76405 - EZ-USB® FX3™/FX3S™ Boot Options | Cypress Semiconductor and FX3 Programmer's manual: http://www.cypress.com/file/124386/download AN76405 says that SPI Boot supports only one Firmware Image and no redundant image is allowed. From the programmer's reference manual: On reset the ROM Bootloader identifies the boot mode based on PMODE[2:0]. When the boot loader identifies that the SPI is the boot mode, then it tries to read address 0 from SPI Flash. When a valid header is found the ROM BOOTLOADER continues. The valid header information is available as part of AN76405 Application Note. When you are referring to bootloader are you referring to a custom boot-loader (which might be running from SPI Flash) or ROM Boot-loader. This post will be updated when have more information from my end. Thank You & Regards, Sudheer |
|
|
|
frank201 发表于 2018-11-29 12:44 谢谢你的回复。 我指的是自定义引导加载程序。在比特流的情况下会发生什么。FX3如何从SPI位置获取比特流并配置FPGA。我应该如何通知比特流存储位置到FX3。因此,每当FX3枚举时,它将在启动主应用程序之前配置FPGA。 例如。 我有UVC应用程序。我会把UVC固件和FPGA比特流存储在SPI闪存中。我想FX3配置FPGA之前,它开始流图像。 以上来自于百度翻译 以下为原文 Thanks for the reply. I am referring to the custom boot-loader. What will happen in case of bitstream. How does FX3 takes bitstream from SPI location and configure the FPGA. How should I notify bitstream stored location to FX3 . So that every time when FX3 enumerates , it will configure the FPGA before it starts the main application . For example. I have UVC application. I will store the UVC firmware and FPGA Bitstream in SPI Flash memory. I want the FX3 to configure the FPGA before it starts streaming the image. |
|
|
|
hgjhgd 发表于 2018-11-29 12:52 可以使用第二阶段引导加载程序。第二阶段引导加载程序将从SPI地址0x00开始。然后,您可以修复主固件映像地址和次要固件映像地址,其中第二阶段引导加载程序将寻找固件来引导。然后你可以将你的FPGA比特流存储到SPI闪存中的固定地址,FX3应用固件将读取它并将其加载到FPGA中。 例如: 0至32 KB:第二阶段引导装载程序 64 KB至320 KB:固件的第一次拷贝 320 KB至576 KB:固件的第二次拷贝 576 KB到1576 KB:FPGA比特流(假设比特流文件大小在1 MB左右) 1576 KB前进:您的自定义数据 以上来自于百度翻译 以下为原文 You can use the second stage bootloader. The second stage bootloader will start from a SPI address 0x00. You can then fix the main firmware image address and the secondary firmware image address where the second stage bootloader will look for the firmware to boot from. And then you can store your FPGA bitstream to fixed address in the SPI flash which the FX3 application firmware will read and load it into the FPGA.. For example: 0 to 32 KB: Second Stage bootloader 64 KB to 320 KB: first copy of firmware 320 KB to 576 KB: Second Copy of firmware 576 KB to 1576 KB: FPGA bitstream (Assuming the bitstream file size to be around 1 MB) 1576 KB onwards: Your custom data |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1824 浏览 1 评论
3633 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1509 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 03:37 , Processed in 1.060295 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号