Issue with CAN Communication using NXP Controller and MBDT on MATLAB

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

Issue with CAN Communication using NXP Controller and MBDT on MATLAB

494 Views
ashutoshsahu
Contributor I

We are working on a VCU that has NXP S32K144 controller platform.

We are facing issues receiving and transmitting CAN messages using NXP Support Package on MATLAB for this controller.

While we can Rx CAN message if a dedicated "Message Buffer" is provided for each ID in "FCAN_Receive" block settings, but this is not a ideal solution. The number of "Message Buffer" has a limit of 15. So we could not have dedicated message buffer for each Rx message if we have more than 15 messages.

We have quite a lot of CAN IDs to send and receive on bus and hence would need a mask to receive multiple IDs with same "Message Buffer". We tried using mask but that is not working for us.

We could not receive messages properly, if we put a common "Message Buffer" and some ID mask.

 

Tags (4)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2301789%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIssue%20with%20CAN%20Communication%20using%20NXP%20Controller%20and%20MBDT%20on%20MATLAB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301789%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3EWe%20are%20working%20on%20a%20VCU%20that%20has%26nbsp%3BNXP%26nbsp%3BS32K144%20controller%20platform.%3C%2FP%3E%3CP%3EWe%20are%20facing%20issues%20receiving%20and%20transmitting%20CAN%20messages%20using%26nbsp%3BNXP%26nbsp%3BSupport%20Package%20on%20MATLAB%20for%20this%20controller.%3C%2FP%3E%3CP%3EWhile%20we%20can%20Rx%20CAN%20message%20if%20a%20dedicated%20%22Message%20Buffer%22%20is%20provided%20for%20each%20ID%20in%20%22FCAN_Receive%22%20block%20settings%2C%20but%20this%20is%20not%20a%20ideal%20solution.%20The%20number%20of%20%22Message%20Buffer%22%20has%20a%20limit%20of%2015.%20So%20we%20could%20not%20have%20dedicated%20message%20buffer%20for%20each%20Rx%20message%20if%20we%20have%20more%20than%2015%20messages.%3C%2FP%3E%3CP%3EWe%20have%20quite%20a%20lot%20of%20CAN%20IDs%20to%20send%20and%20receive%20on%20bus%20and%20hence%20would%20need%20a%20mask%20to%20receive%20multiple%20IDs%20with%20same%20%22Message%20Buffer%22.%20We%20tried%20using%20mask%20but%20that%20is%20not%20working%20for%20us.%3C%2FP%3E%3CP%3EWe%20could%20not%20receive%20messages%20properly%2C%20if%20we%20put%20a%20common%20%22Message%20Buffer%22%20and%20some%20ID%20mask.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E