How to implement can task in 5748G Z4_1 core?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to implement can task in 5748G Z4_1 core?

399 Views
zhangah
Contributor II

Hi,

     I implement can task in Z4_1 core.Can task is the only task in Z4_1 core which just receive can message and send can message over CAN1~8.when received can message,then save the message in the ram fifo buff.

    Now the problem is that the eight can port receiving can message together will lost some can message when the bus load of every can port is 100%.

   If the bus load of every can port is 35%, there'll be no can message lost in the reception of can task.The Frequency of Z4_1 core is 120MHz.

   Could somebody give me some suggestion ?  Thanks.

Labels (1)
0 Kudos
1 Reply

353 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems you simply do not read RX MBs fast enough and you lost a message. You did not specify what SW do you use, so hard to say. Also you did not say what messages you have on the bus, what is a baudrate, etc.

If I assume shortest message on the bus with std ID and 1 byte payload, with 1Mbps the message takes 55us. With 3 bits intermission frame you can have message each 58us. Assuming 8 CAN buses you have 58/8 = 7.25us to read the MB. 

Is this achievable with your application?

BR, Petr 

0 Kudos