I use S32K evb to send can message;when I use can continuous send like this question;
how to program to let Flexcan can continuous send data on s32ds.
if(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, TX_MAILBOX) == STATUS_SUCCESS)
{
SendCANData(TX_MAILBOX, TX_MSG_ID, &ledRequested, 1);
}
The sending rate is very slow, and only 5 frames can be sent every 1 s.
The project is on the attachment. Where is the problem?
Solved! Go to Solution.
Hi,
once the MB is prepared for transmission, that is the CODE is written with 0xC, the MB participates in arbitration and the message is sent on the first opportunity window, when module sees a bus free.
So you can have several MBs prepared (in your case 3) for TX and those will be transmitted based on priority checked during arbitration.
BR, Petr
1 What is the state of J108 and 109 ?
2
How much voltage is Vbat?
J108/J109 are placed and Vbat is 12V.
BR, Petr
thank you!
The reason for the error is that I used vbat 5v。
I have another question: How many send mailboxes are suitable for not dropping frames? for example, I need to send 3 messages, each message period is 10ms.
Hi,
once the MB is prepared for transmission, that is the CODE is written with 0xC, the MB participates in arbitration and the message is sent on the first opportunity window, when module sees a bus free.
So you can have several MBs prepared (in your case 3) for TX and those will be transmitted based on priority checked during arbitration.
BR, Petr
Hi,
I tested this example with PCAN tool and see message sent each cca 150us.
This I think confirms theoretical assumption.
BR, Petr