完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
嗨,我试图为整个程序内存生成一个CRC16,这样我可以在启动时检查所有东西是否正常,然后运行任何任务。我已经能够通过XC8链接器->Additional Properties->Checksum框生成复选和,该复选框的代码是:使用Pype 1021并将其放入程序存储器中的地址1FFF中。问题是程序空间只有14位宽,而我的CRC值是16位,所以MSB啃坏了。有没有办法让CRC的生成在两个内存位置上分割结果?谢谢,Nodee
以上来自于百度翻译 以下为原文 Hi, Im attempting to generate a CRC16 for the entire program memory so I can check at startup that everything is as it should be before running any tasks. I have been able to generate a checksum through the XC8 Linker -> Additional Properties -> Checksum box with the code: 0-1FFE@1FFF,offset=0xFFFF,algorithm=5,width=2,poly=0x1021 this generates a CRC16 using poly 1021 and places it in at address 1FFF in program memory. The problem is the program space is only 14 bits wide and my crc value is 16 bits, so the MSB nibble gets ruined. Is there a way to get the generation of the CRC to split the result over two memory locations? Thanks, Nodee |
|
相关推荐
4个回答
|
|
|
尝试将范围更改为0—1FFD @ 1FFE,并将“代码=0x34”添加到该行。这应该将上6位设置为“ReLLW”操作码,并将值分割为两个字。
以上来自于百度翻译 以下为原文 Try changing the range to 0-1ffd@1ffe and adding "code=0x34" to the line. That should set the upper 6 bits to a "retlw" opcode and split the value across two words. |
|
|
|
|
|
我使用的是MPLAX和XC16,我们能用XC16完成CRC16任务吗?如果是这样,请分享它的细节。我知道我们可以在xC16中使用HealMID做校验和。谢谢,Kathappan。
以上来自于百度翻译 以下为原文 I am using MPLAB X and XC16. Can we able to CRC16 task using XC16? If so, please share the details on it. I know that we can do checksum using hexmate in XC16. Thanks, Kathappan |
|
|
|
|
|
这是当你劫持别人的问题时通常会发生的混乱。
以上来自于百度翻译 以下为原文 This is the usual confusion that ensues when you hijack someone else's question. |
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
514 浏览 0 评论
5819 浏览 9 评论
2351 浏览 8 评论
2238 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3546 浏览 3 评论
1170浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1124浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
893浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
514浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-18 14:05 , Processed in 0.681539 second(s), Total 49, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1444