我使用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);
共2条
1/1 1 跳转至页
使用filter接收报文放入rxbuff,接收ID0x1234569MCU会死机的原因?
关键词: filter mcu rxbuff
2楼
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;
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
与电子爱好者谈读图二被打赏50分 | |
【FRDM-MCXN947评测】Core1适配运行FreeRtos被打赏50分 | |
【FRDM-MCXN947评测】双核调试被打赏50分 | |
【CPKCORRA8D1B评测】---移植CoreMark被打赏50分 | |
【CPKCORRA8D1B评测】---打开硬件定时器被打赏50分 | |
【FRDM-MCXA156评测】4、CAN loopback模式测试被打赏50分 | |
【CPKcorRA8D1评测】--搭建初始环境被打赏50分 | |
【FRDM-MCXA156评测】3、使用FlexIO模拟UART被打赏50分 | |
【FRDM-MCXA156评测】2、rt-thread MCXA156 BSP制作被打赏50分 | |
【FRDM-MCXN947评测】核间通信MUTEX被打赏50分 |