This widget could not be displayed.
Not applicable
Mar 23, 2017
07:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 23, 2017
07:42 PM
I have a problem about TC275 CAN FIFO ,
my code about initialize CAN (Fragment):
IfxMultican_Can_MsgObj_initConfig(&canMsgObjConfig, &CanNode0);
canMsgObjConfig.msgObjId = 33;
canMsgObjConfig.msgObjCount = 8;
canMsgObjConfig.firstSlaveObjId = 34;
canMsgObjConfig.messageId = 1;
canMsgObjConfig.acceptanceMask = 0;
canMsgObjConfig.frame = IfxMultican_Frame_transmit;
canMsgObjConfig.control.messageLen = IfxMultican_DataLengthCode_8;
canMsgObjConfig.control.extendedFrame = FALSE;
canMsgObjConfig.control.matchingId = FALSE;
IfxMultican_Can_MsgObj_init(&CanMsgObjTx0, &canMsgObjConfig);
My User Code:
if do this :
for (i = 0; i < 8; i++)
{
while( IfxMultican_Can_MsgObj_sendMessage(&CanMsgObjTx0, &txMsg) == IfxMultican_Status_notSentBusy );
}
It can be transmitted normally !
but if do this :
for (i = 0; i < 4; i++)
{
while( IfxMultican_Can_MsgObj_sendMessage(&CanMsgObjTx0, &txMsg) == IfxMultican_Status_notSentBusy );
}
It can only be transmitted once ,the second time be transmitted is failed !
It can not be sent continuously.
Does anyone have this problem, who can help me?
my code about initialize CAN (Fragment):
IfxMultican_Can_MsgObj_initConfig(&canMsgObjConfig, &CanNode0);
canMsgObjConfig.msgObjId = 33;
canMsgObjConfig.msgObjCount = 8;
canMsgObjConfig.firstSlaveObjId = 34;
canMsgObjConfig.messageId = 1;
canMsgObjConfig.acceptanceMask = 0;
canMsgObjConfig.frame = IfxMultican_Frame_transmit;
canMsgObjConfig.control.messageLen = IfxMultican_DataLengthCode_8;
canMsgObjConfig.control.extendedFrame = FALSE;
canMsgObjConfig.control.matchingId = FALSE;
IfxMultican_Can_MsgObj_init(&CanMsgObjTx0, &canMsgObjConfig);
My User Code:
if do this :
for (i = 0; i < 8; i++)
{
while( IfxMultican_Can_MsgObj_sendMessage(&CanMsgObjTx0, &txMsg) == IfxMultican_Status_notSentBusy );
}
It can be transmitted normally !
but if do this :
for (i = 0; i < 4; i++)
{
while( IfxMultican_Can_MsgObj_sendMessage(&CanMsgObjTx0, &txMsg) == IfxMultican_Status_notSentBusy );
}
It can only be transmitted once ,the second time be transmitted is failed !
It can not be sent continuously.
Does anyone have this problem, who can help me?
- Tags:
- IFX
1 Reply
This widget could not be displayed.
Not applicable
May 04, 2017
09:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 04, 2017
09:08 AM
canMsgObjConfig.control.messageLen = IfxMultican_DataLengthCode_8;
didn't run this code but if you set your data length to 8 you have to give it 8 bytes...
didn't run this code but if you set your data length to 8 you have to give it 8 bytes...
This widget could not be displayed.