Jun 11, 2021
03:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 11, 2021
03:02 AM
Hello Support,
I'm using TriBoard TC397 V2.0 and MC-ISAR_AS422_TC3xx_BASIC_1.40.0
Follow the demo code for MCMCAN module, I write the code blew.
Here is my EB tresos config
Initial OK, but when run after Can_17_McmCan_Write -> Can_17_McmCan_lWriteMsgObj
code line 5840
It will occur bus off error, and then into bus off ISR
I cannot see any message in busmaster
And in next while loop it will always stuck at bus off.
It should be no problem after Can_write function execute,right?
Please give me some suggestion to solve this problem, thank you.
Best regards
I'm using TriBoard TC397 V2.0 and MC-ISAR_AS422_TC3xx_BASIC_1.40.0
Follow the demo code for MCMCAN module, I write the code blew.
initial(){
const Port_ConfigType * ConfigPtr = NULL_PTR;
ConfigPtr = &Port_Config;
Port_Init(ConfigPtr);
IrqCan_Init();
Can_17_McmCan_Init(&Can_17_McmCan_Config);
Can_17_McmCan_SetControllerMode (Can_17_McmCanConf_CanController_CanController_0, CAN_T_START);
Can_17_McmCan_SetControllerMode (Can_17_McmCanConf_CanController_CanController_1, CAN_T_START);
}
main()
{
initial();
while(1){
Can_17_McmCan_Write(2, &PduInfo_1[0]) ;
/* Delay */
Counter = 0x5FFFF;
while(Counter--)
{}
}
}
Here is my EB tresos config
Initial OK, but when run after Can_17_McmCan_Write -> Can_17_McmCan_lWriteMsgObj
code line 5840
NodeRegAddressPtr->TX.BAR.U = (Ifx_UReg_32Bit)BuffIndex;
It will occur bus off error, and then into bus off ISR
I cannot see any message in busmaster
And in next while loop it will always stuck at bus off.
It should be no problem after Can_write function execute,right?
Please give me some suggestion to solve this problem, thank you.
Best regards
1 Reply
Nov 16, 2023
06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 16, 2023
06:23 AM
Hi,
I am facing the same bus off while using two can nodes.
"INIT" and Busoff coming once the can transmit is called.
Is the issue resolved ?
could you support me for this ?