完善资料让更多小伙伴认识你,还能领取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;
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-LCD显示图片编程示例之介绍mmap
180 浏览 0 评论
《DNESP32S3使用指南-IDF版_V1.6》第二章 常用的C语言知识点
587 浏览 0 评论
【RA-Eco-RA2E1-48PIN-V1.0开发板试用】(第三篇)ADC采集+PWM输出
549 浏览 0 评论
《DNK210使用指南 -CanMV版 V1.0》第四十五章 人脸识别实验
548 浏览 0 评论
1051 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
11763 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 19:19 , Processed in 0.613197 second(s), Total 74, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号