External Mode incl. CAN Communication

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

External Mode incl. CAN Communication

306 Views
Marcel17
Contributor I

Hi,

I have trouble to integrate a CAN-Communication besides the external mode with my S32K144 Evalboard (S32K1). I have taken the extmode_s32k1xx.slx example and extend it with the following the NXP CAN blocks:

Marcel17_0-1709197920134.png

Marcel17_1-1709197934926.png

Marcel17_2-1709197944223.png

Marcel17_3-1709197968040.png

Now, when I start “Build for Monitoring”, no errors occur. But I don’t receive any CAN-Massage from the Evalboard and the blue LED doesn’t blink.  When I klick “Connect”, I’ve got the error:

Marcel17_4-1709198007475.png

Of course, I’ve configured the interface to the right COM-Port and right speed:

Marcel17_6-1709198093250.png

When I comment out die CAN-Blocks, everything works fine!

 

May be important to now. If I take another configuration for the coder instead the original of the example, see:

Marcel17_7-1709198123568.png

and if I use the “embedded coder” to build, the CAN-Communication works! But in this configuration, I can’t use the external mode.   

I work with MBDT Toolbox_S32K1xx v4.3.0, MATLAB 2023b Update 7 and Embedded Coder v23.2.

Please, find find my small Simulink model in the attachments.

 

 

 

Tags (3)
0 Kudos
Reply
0 Replies