完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在寻找一个PSoC 4引导加载程序,它加载一个来自外部缓冲区的图像(在这种情况下,ExtFlash,里面有CYACD文件)。 我将确保图像从我的一端进入闪存,我可以提供引导装载器的CYACD文件的字符数组,或者逐行地提供任何工作。我要找的是将CYACD文件加载到Flash的代码。 所有引导加载程序似乎都是从通信协议运行而不是从外部缓冲区运行的。 现在,BLE示例有一个外部闪存引导加载程序演示,但我并不真正看到蓝牙和引导加载之间的分离。 我猜一个好的开始是有一个引导程序从一个(硬编码)的图像字符串(CYACD文件内容)开始作为输入。有人有这样的事吗?其余的我可以自己做 如果我走错路了,或者我不清楚我需要什么,让我知道。 当做, 罗伯特 以上来自于百度翻译 以下为原文 Hello, I'm looking for a PSoC 4 bootloader that loads an image from an external buffer (ext. flash in this case, which has the cyacd file in it). I'll make sure the image gets inside the flash from my end, I can provide the bootloader with the char array of the cyacd file, or line by line, whatever works. What I am looking for is the code that loads that cyacd file to the flash. All bootloaders seem to be made to run from a communication protocol rather than from an external buffer. Now the BLE examples have an external flash bootloader demo, but I dont really see the separation between bluetooth and the bootloading. I guess a good start would be to have a bootloader that starts with a (hardcoded) images string (cyacd file contents) as an input. Does anyone have such a thing? The rest I can do myself If I am approaching things the wrong way, or if I am not clear what I need, let me know Regards, Robert |
|
相关推荐
2个回答
|
|
请看看这个PSoC 4 EEPROM引导加载示例- Hackster.io
谢谢, 希马 以上来自于百度翻译 以下为原文 Kindly have a look at this PSoC 4 EEPROM Bootloader Example - Hackster.io Thanks, Hima |
|
|
|
嗨,Hima, 谢谢你的回复。 这似乎是我正在寻找的。虽然它看起来都很笨拙,因为它是Bootloader协议的一种仿真,在此之上,该示例不具有任何硬件抽象,使得它不容易阅读和理解。 Bootload/FieldRead部分我理解,但我不知道在Bootloader中CybTrDrRead编写函数的用途。它几乎像引导引导程序在引导加载过程中向内存写入命令。 你能告诉我Bootloader和内存之间的通信吗?为什么要写东西? 更一般的注意,作为特征请求; 我非常怀疑我是唯一一个想从备用内存源启动的人,它可能值得花一些时间来更新引导加载程序组件,并用一个合适的接口来完成一个示例,它是用于内存访问而不是那些CyBtldrCommRead /写函数。在将来的Bootloader版本中,可以使用CytLtRMultRead/Wrand函数来进行直接内存访问。这在很多物联网应用中是必不可少的,尤其是当通信的可靠性不可靠时。 任何程序员都可以在一块内存中获取图像,我只需要一个函数,告诉我Bootloader想要读取的数据/字符串/数组。 当做, 罗伯特 以上来自于百度翻译 以下为原文 Hi Hima, Thank you for the reply. This seems to be what I am looking for. Though it all looks so hacky, since it is sort of an emulation of the bootloader protocol, and on top of that, the example does not feature any hardware abstraction making it not easy to read and understand. The bootloadable / image write part I do understand, but I don't see the purpose of CyBtldrCommWrite function in the bootloader. It almost looks like the bootloader is WRITING commands to the memory during the bootload process. Can you please enlighten me on the communication between bootloader and memory? Why is it writing stuff? On a more general note, as a feature request; I highly doubt I am the only one wanting to boot from alternate memory-based sources, it might be worth investing some time in getting the bootloader component updated and an example done with a proper interface meant for memory access instead of those CyBtldrCommRead/Write functions. Maybe make CyBtldrMemRead/Write functions for direct memory access in future versions of the bootloader. This really is a must-have in many IoT applications, especially when reliability of communication is unreliable. Any programmer can get an image in a piece of memory, I would just need a function that tells me which data/string/array the bootloader wants to read. Regards, Robert |
|
|
|
只有小组成员才能发言,加入小组>>
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 06:50 , Processed in 0.970261 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号