How to implement can task in 5748G Z4_1 core?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to implement can task in 5748G Z4_1 core?

519件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

473件の閲覧回数
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 件の賞賛
返信