完善资料让更多小伙伴认识你,还能领取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板卡-初识设备树之设备树组成和结构
503 浏览 0 评论
【敏矽微ME32G070开发板免费体验】点亮WS2812B灯板
476 浏览 0 评论
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-Linux内核移植之内核启动流程
744 浏览 0 评论
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-TF卡烧录流程之烧写过程
1436 浏览 0 评论
2891 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
12148 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-9 22:40 , Processed in 0.694808 second(s), Total 75, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号