完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好,
我一直在使用示例项目AN8665来学习如何将主机引导加载到我的PSoC。我遇到的问题与校验:无论我选择标准的总和或crc-16for bootloader的cyacd文件只有在每行结束的标准总和校验。我想用crc-16check相反,有一个设置我失踪? 谢谢 -安得烈 以上来自于百度翻译 以下为原文 Hello, I've been using the example project AN86526 to learn how to push a bootloadable from a host to my psoc. I've come across an issue with the checksums: regardless of whether I choose standard summation or crc-16 for the bootloader the cyacd file only has the standard summation checksum at the end of each line. I would like to employ the crc-16 check instead, is there a setting I'm missing? Thanks -Andrew |
|
相关推荐
2个回答
|
|
你可以选择数据包校验类型Bootloader组件此参数对传输数据包时使用的主机和程序之间的数据的校验类型选项。默认值是基本的总和。基本的求和校验是通过添加所有的字节计算(不包括校验),然后以2的补码。另一个选择是crc-16ccitt‒CCITT算法使用16位CRC。
在这个KBA http://www.cypress.com/knowledge-base-article/format-cyacd-file-psoc-3-or-psoc-5lp-bootloader-kba216138 有人提到 头记录指定设备版本并具有以下格式: 【4字节siliconid ] [字节siliconrev ] [字节校验型] 1字节的校验和,将表明式校验 以上来自于百度翻译 以下为原文 You can choose the option Packet checksum type in bootloader Component- This parameter has a couple of options for the type of checksum to use when transferring packets of data between the host and the bootloader. The default value is Basic summation. The basic summation checksum is computed by adding all the bytes (excluding the checksum) and then taking the 2’s complement. The other option is CRC-16CCITT ‒ the 16 bit CRC using the CCITT algorithm. In this KBA- http://www.cypress.com/knowledge-base-article/format-cyacd-file-psoc-3-or-psoc-5lp-bootloader-kba216138 It is mentioned that The header record specifies the device revision and has the following format: [4-byte SiliconID][1-byte SiliconRev][1-byte Checksum Type] 1 byte Checksum will indicate the Checksum type |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
727个成员聚集在这个小组
加入小组1939 浏览 1 评论
1686 浏览 1 评论
3452 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1612 浏览 6 评论
1407 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-7-1 14:06 , Processed in 0.586635 second(s), Total 48, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191