完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我很喜欢MultiApp Bootloader,我不知道如何在flash中有2个可引导加载的项目,并在这两个项目之间进行选择。有什么项目吗?我试着在CY网站搜索Creator。但没有任何迹象。有人在上面工作吗?
以上来自于百度翻译 以下为原文 I am stuck up with MultiApp Bootloader .I dont know how exactly to have 2 bootloadable projects in the flash and select between these two. Is there any example project? I tried searching in Cy Website , Creator. but no sign of it. Has anyone worked on it ? |
|
相关推荐
4个回答
|
|
任何关于如何获得程序的文件都是足够好的。我已经把两个项目编程成PSoC的Flash,我不知道如何在两者之间进行选择。我被卡住了!
以上来自于百度翻译 以下为原文 Any documents on how to get the programs working wil be good enough. I have programmed two projects into flash of PSoC and I dont know how to select between the two. I am stuck! |
|
|
|
这篇文章是MyHARI的多应用程序引导加载程序的复制品。既然Srim已经把它贴在另一个帖子上了,我就把它转寄到这里。
多应用程序引导加载程序允许用户在闪存中放置两个图像。具有此选项的典型原因是,如果一个可引导加载项目的引导加载操作失败,或者自举加载项目由于其他原因而损坏,则另一个可引导加载的项目仍然可以。执行。这确保了始终存在驻留在Flash中的有效应用图像。使用此特性,可以放置两个相同项目的图像,或者将两个不同的应用程序完全放在一起。 使用“双模式”选项,第二个可引导加载项目将在第一个可引导加载项目的开始和Flash结束之间的行中占据Flash。这限制了多个应用程序的闪存大小可被引导到正常可引导项目的一半。 每当建立了一个依赖于多应用程序引导程序项目的可引导加载项目时,两个CyACD文件被创建为后缀*y1.CyAcd和*y2.CyAcd。前者总是占据引导加载的闪存区域的初始一半,而后者占据剩余的一半。 在应用程序之间切换的步骤 让我们假设有两个可引导加载的项目:1) 当这些依赖于MABL构建时,为每个项目生成两个CYACD文件: 项目Ay1.CyACD和项目AY2.CYACD By1.CYACD和项目BY2.CYACD *.1.CYACD文件将永远占据Flash的前半部分和*2.2.CyACD WiLoCuPy的下半部分。作为活动和运行的应用程序不能覆盖。下面演示在(BCP)中使用的命令来切换应用程序。 从应用程序1到应用程序2的切换 W 08 01 36 36 01 00 01 C7 FF 17 r 08 x x x x x x 从应用程序2到应用程序1的切换 W 08 01 36 36 01 00 00 C8 FF 17 r 08 x x x x x x 哪里 08 -引导加载程序I2C从地址 01 -引导加载程序包启动 36 -设置活动应用程序命令 01 00字节的字节数(下字节优先) 00 -设置图像γ1作为活动 C8FF-基本求和校验和(FFF-(01+36+01+00+00)+01) 17 -分组结束 其他细节可以在Bootloader数据表中找到。让我知道,如果你需要更多的信息。 以上来自于百度翻译 以下为原文 This post is replica of MultiApp Bootloader from MicroHari. As Srim had already posted it on the other post, i am reposting it here [size=10.909090995788574px]The multi-App Bootloader allows users to place two images in the flash.The typical reason for having this option is that if a bootload operation fails for one Bootloadable project, or that Bootloadable project becomes corrupted for some other reason, then the other Bootloadable project can still be executed. This ensures that there is always a valid application image residing in flash. With this feature, you can place two images of the same project or place two different applications altogether. [size=10.909090995788574px] [size=10.909090995788574px]With the "dual mode" option the second Bootloadable project shall occupy flash starting at the row that is halfway between the start of the first Bootloadable project and the end of flash. This limits the flash size of multi-app Bootlodable to half of that of a normal Bootloadable project. [size=10.909090995788574px]Whenever a Bootloadable project having a dependency to a Multi-app Bootloader project is built, two CYACD files are created with suffixes *_1.cyacd and *_2.cyacd. The former will always occupy the initial half of the Bootloadable flash area and the later the remaining half. [size=10.909090995788574px] [size=10.909090995788574px] [size=10.909090995788574px]Steps to switch between applications [size=10.909090995788574px]Let us assume that there are two Bootloadable projects: 1) Project_A and 2) Project_B [size=10.909090995788574px]When these are built with a dependency to a MABL, two cyacd files are generated for each project: [size=10.909090995788574px]Project_A_1.cyacd and Project_A_2.cyacd [size=10.909090995788574px]Project_B_1.cyacd and Project_B_2.cyacd [size=10.909090995788574px]The *_1.cyacd file will always occupy first half of the flash and *_2.cyacd will occupy second half. An application set as active and running cannot be overwritten. The following demonstrates the commands used in (BCP) to switch application. [size=10.909090995788574px] [size=10.909090995788574px]Switching from application_1 to application_2 [size=10.909090995788574px]w 08 01 36 01 00 01 c7 ff 17 [size=10.909090995788574px]r 08 x x x x x x x [size=10.909090995788574px] [size=10.909090995788574px]Switching from application_2 to application_1 [size=10.909090995788574px]w 08 01 36 01 00 00 c8 ff 17 [size=10.909090995788574px]r 08 x x x x x x x [size=10.909090995788574px] [size=10.909090995788574px]where [size=10.909090995788574px]08 – Bootloader I2C slave address [size=10.909090995788574px]01 - Bootloader packet start [size=10.909090995788574px]36 – Set active application command [size=10.909090995788574px]01 00 – Number of bytes to follow (Lower byte first) [size=10.909090995788574px]00 – Set image #1 as active [size=10.909090995788574px]C8FF – Basic Summation checksum (FFFF-(01+36+01+00+00)+01) [size=10.909090995788574px]17 – Packet End [size=10.909090995788574px] [size=10.909090995788574px]The other details can be found in the Bootloader datasheet. Let me know if you need more info on this. |
|
|
|
感谢您的回复@阿瓦加德罗。它也适用于PSOC3设备吗?
以上来自于百度翻译 以下为原文 Thanks for your reply @Avagadro. Does it apply to PSoC3 devices as well? |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2100 浏览 1 评论
1846 浏览 1 评论
3665 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
561浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
413浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
906浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 12:03 , Processed in 1.043242 second(s), Total 85, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号