这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 使用filter接收报文放入rxbuff,接收ID0x1234569MCU会死机

共2条 1/1 1 跳转至

使用filter接收报文放入rxbuff,接收ID0x1234569MCU会死机的原因?

工程师
2024-03-01 14:48:14     打赏

我使用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);




关键词: filter     mcu     rxbuff    

助工
2024-03-01 14:48:54     打赏
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 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]