完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用filter接收报文放入rxbuff,可以接受ID0x1234568, 如果接收ID 0x1234569 MCU会死机,配置如下,请问哪里配错了
g_mcmcan.canNodeConfig.filterConfig.standardListSize = 1; //Standard Frame g_mcmcan.canNodeConfig.filterConfig.extendedListSize = 16; //Extended Frame g_mcmcan.canNodeConfig.filterConfig.messageIdLength = IfxCan_MessageIdLength_extended; g_mcmcan.canNodeConfig.messageRAM.standardFilterListStartAddress = 0x0; g_mcmcan.canNodeConfig.messageRAM.extendedFilterListStartAddress = 0x80; g_mcmcan.canNodeConfig.messageRAM.rxFifo0StartAddress = 0x100; g_mcmcan.canNodeConfig.messageRAM.rxFifo1StartAddress = 0x200; g_mcmcan.canNodeConfig.messageRAM.rxBuffersStartAddress = 0x300; g_mcmcan.canNodeConfig.messageRAM.txEventFifoStartAddress = 0x400; g_mcmcan.canNodeConfig.messageRAM.txBuffersStartAddress = 0x440; g_mcmcan.canNodeConfig.messageRAM.baseAddress = MODULE_CAN0_RAM; g_mcmcan.canFilter.number = 7; g_mcmcan.canFilter.elementConfiguration = IfxCan_FilterElementConfiguration_storeInRxBuffer; g_mcmcan.canFilter.id1 = (uint32)0x1234568; g_mcmcan.canFilter.rxBufferOffset = IfxCan_RxBufferId_7; IfxCan_Can_setExtendedFilter( g_mcmcan.can00Node, g_mcmcan.canFilter); g_mcmcan.canFilter.number = 8; g_mcmcan.canFilter.elementConfiguration = IfxCan_FilterElementConfiguration_storeInRxBuffer; g_mcmcan.canFilter.id1 = (uint32)0x1234569; g_mcmcan.canFilter.rxBufferOffset = IfxCan_RxBufferId_8; IfxCan_Can_setExtendedFilter( g_mcmcan.can00Node, g_mcmcan.canFilter); |
|
相关推荐
1个回答
|
|
sionFilterListStartAddress = 0x10;g_mcmcan.canNodeConfig.messageRAM.rxBufferStartAddress = 0x20;g_mcmcan.canNodeConfig.messageRAM.rxBufferConfigSize = 16;g_mcmcan.canNodeConfig.messageRAM.txBufferStartAddress = 0x30;g_mcmcan.canNodeConfig.messageRAM.txBufferConfigSize = 16;g_mcmcan.canNodeConfig.messageRAM.txEventFifoStartAddress = 0x40;g_mcmcan.canNodeConfig.messageRAM.txEventFifoConfigSize = 8;g_mcmcan.canNodeConfig.messageRAM.txBufferFifoStartAddress = 0x48;g_mcmcan.canNodeConfig.messageRAM.txBufferFifoConfigSize = 8;
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
《DNESP32S3使用指南-IDF版_V1.6》第三十章 DHT11数字温湿度传感器
522 浏览 0 评论
656 浏览 0 评论
【敏矽微ME32G070开发板免费体验】之原厂2812测试例程解析
978 浏览 0 评论
1042 浏览 2 评论
《DNESP32S3使用指南-IDF版_V1.6》第二十六章 INFRARED_RECEPTION实验
735 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
12044 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 10:11 , Processed in 0.649099 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号