How to configure it correctly to receive CAN messages through MBDT S32K

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

How to configure it correctly to receive CAN messages through MBDT S32K

ソリューションへジャンプ
1,910件の閲覧回数
bearman_m
Contributor II

Attached is the program I wrote. And I can send messages correctly. However, I want to receive many messages from 3 CAN buses. And I only wrote a section of CAN0 RX, but I cannot receive any message content. I don't know why.
How can i correctly use this blocks to receive many messages correctly?

And if have many messages, which are more than message buffers i have , how can i  receive these messages?

Thanks for your help!

1 解決策
1,839件の閲覧回数
constantinrazva
NXP Employee
NXP Employee

Hello bearman.m ,

I will take a look at your model a bit later, but for now I want to address your other question - you can receive messages from all range of possible IDs using just 1 single MB - all you have to do is set the corresponding acceptance filter (ID + mask). However, if you want to have a hardware trigger for more independent ranges, then you will use more MBs. You will have to set each of them with the according acceptance filter. This will be limited by the number of MB you have available on the hardware itself. However, this limit is only for how many independent interrupts can be generated; the number of IDs from which you can receive messages is not limited (as explained earlier, 1 MB can be used to accept from the entire range of available IDs).

Hope this helps,

Razvan.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,840件の閲覧回数
constantinrazva
NXP Employee
NXP Employee

Hello bearman.m ,

I will take a look at your model a bit later, but for now I want to address your other question - you can receive messages from all range of possible IDs using just 1 single MB - all you have to do is set the corresponding acceptance filter (ID + mask). However, if you want to have a hardware trigger for more independent ranges, then you will use more MBs. You will have to set each of them with the according acceptance filter. This will be limited by the number of MB you have available on the hardware itself. However, this limit is only for how many independent interrupts can be generated; the number of IDs from which you can receive messages is not limited (as explained earlier, 1 MB can be used to accept from the entire range of available IDs).

Hope this helps,

Razvan.

0 件の賞賛
返信
1,839件の閲覧回数
bearman_m
Contributor II

I have solved this problem. As you said, 1 MB can be used to accept from the entire range of available IDs. 

Thank you very much for your answers ! 

0 件の賞賛
返信