From default Project template - Convert *CAN FD* to *CAN*

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

From default Project template - Convert *CAN FD* to *CAN*

Jump to solution
938 Views
Aris_
Contributor II

Hi All,

I'm working on the MR-CANHUBK344-S32. 

I can run the tutorial: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/175845...

But, I cannot observe the CAN messages exchanged between CAN0 and CAN1 with my required hardware. I have to use a Kvaser Leaf Light v2 and I have to get those messages in a "standard CAN" format (the "old" version of CAN that is limited to 1000Kbps), not "CAN-FD" which is more recent and faster.

I tried several things but I can't figure out how to:

  • Get the same example working using the "old" CAN protocol with 500Kbps.

I tried unchecking this box: 

Aris__0-1742494052992.png

I tried playing with the CAN FD baudrate to set it to 500Kbps, or simply removing the whole section "0", with no success.

I'm a little lost now. I'm sure it's super simple to solve but I'm not yet familiar enough with S32CT.

Thank you in advance for your help.
Aris

0 Kudos
Reply
1 Solution
921 Views
robertv
NXP Employee
NXP Employee

Hello @Aris_ ,

To clarify some things first, the option you unchecked in the configuration is not used to enable or disable CanFD, but to select the protocol it's using (ISO CanFD or non-iso CanFD):

robertv_0-1742555084252.png

In terms of sending normal Can frames (not FD), that should be achieved by simply opening the Can_Write block and unchecking the "Can FD Message" option, which you can see here:

robertv_1-1742555157815.png

Let me know if this helps and you start seeing the Can frames on your Kvaser Leaf Light v2. 

Regards,
Robert V

 

View solution in original post

3 Replies
922 Views
robertv
NXP Employee
NXP Employee

Hello @Aris_ ,

To clarify some things first, the option you unchecked in the configuration is not used to enable or disable CanFD, but to select the protocol it's using (ISO CanFD or non-iso CanFD):

robertv_0-1742555084252.png

In terms of sending normal Can frames (not FD), that should be achieved by simply opening the Can_Write block and unchecking the "Can FD Message" option, which you can see here:

robertv_1-1742555157815.png

Let me know if this helps and you start seeing the Can frames on your Kvaser Leaf Light v2. 

Regards,
Robert V

 

872 Views
Aris_
Contributor II
Perfect! It works
0 Kudos
Reply
857 Views
robertv
NXP Employee
NXP Employee

Hello @Aris_ ,

Glad to hear it worked!

Regards,
Robert V

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2065758%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFrom%20default%20Project%20template%20-%20Convert%20*CAN%20FD*%20to%20*CAN*%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2065758%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20All%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20working%20on%20the%20MR-CANHUBK344-S32.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20run%20the%20tutorial%3A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Model-Based-Design-Tools%2FCommunicating-over-the-CAN-Bus%2Fta-p%2F1758456%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Model-Based-Design-Tools%2FCommunicating-over-the-CAN-Bus%2Fta-p%2F1758456%3C%2FA%3E%3C%2FP%3E%3CP%3EBut%2C%20I%20cannot%20observe%20the%20CAN%20messages%20exchanged%20between%20CAN0%20and%20CAN1%20with%20my%20required%20hardware.%20I%20have%20to%20use%20a%20Kvaser%20Leaf%20Light%20v2%20and%20I%20have%20to%20get%20those%20messages%20in%20a%20%22standard%20CAN%22%20format%20(the%20%22old%22%20version%20of%20CAN%20that%20is%20limited%20to%201000Kbps)%2C%20not%20%22CAN-FD%22%20which%20is%20more%20recent%20and%20faster.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20several%20things%20but%20I%20can't%20figure%20out%20how%20to%3A%3C%2FP%3E%3CUL%3E%3CLI%3EGet%20the%20same%20example%20working%20using%20the%20%22old%22%20CAN%20protocol%20with%20500Kbps.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI%20tried%20unchecking%20this%20box%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Aris__0-1742494052992.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Aris__0-1742494052992.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329122iBC184D27B3EFB32C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Aris__0-1742494052992.png%22%20alt%3D%22Aris__0-1742494052992.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20tried%20playing%20with%20the%20CAN%20FD%20baudrate%20to%20set%20it%20to%20500Kbps%2C%20or%20simply%20removing%20the%20whole%20section%20%220%22%2C%20with%20no%20success.%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20a%20little%20lost%20now.%20I'm%20sure%20it's%20super%20simple%20to%20solve%20but%20I'm%20not%20yet%20familiar%20enough%20with%20S32CT.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20in%20advance%20for%20your%20help.%3CBR%20%2F%3EAris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2070299%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20From%20default%20Project%20template%20-%20Convert%20*CAN%20FD*%20to%20*CAN*%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2070299%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248091%22%20target%3D%22_blank%22%3E%40Aris_%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EGlad%20to%20hear%20it%20worked!%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3ERobert%20V%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2070186%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20From%20default%20Project%20template%20-%20Convert%20*CAN%20FD*%20to%20*CAN*%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2070186%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPerfect!%20It%20works%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2066292%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20From%20default%20Project%20template%20-%20Convert%20*CAN%20FD*%20to%20*CAN*%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2066292%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248091%22%20target%3D%22_blank%22%3E%40Aris_%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3ETo%20clarify%20some%20things%20first%2C%20the%20option%20you%20unchecked%20in%20the%20configuration%20is%20not%20used%20to%20enable%20or%20disable%20CanFD%2C%20but%20to%20select%20the%20protocol%20it's%20using%20(ISO%20CanFD%20or%20non-iso%20CanFD)%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22robertv_0-1742555084252.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22robertv_0-1742555084252.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329265iC64835942D630463%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22robertv_0-1742555084252.png%22%20alt%3D%22robertv_0-1742555084252.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20terms%20of%20sending%20normal%20Can%20frames%20(not%20FD)%2C%20that%20should%20be%20achieved%20by%20simply%20opening%20the%20Can_Write%20block%20and%20unchecking%20the%20%22Can%20FD%20Message%22%20option%2C%20which%20you%20can%20see%20here%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22robertv_1-1742555157815.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22robertv_1-1742555157815.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329266iF9257D76C9BD00DC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22robertv_1-1742555157815.png%22%20alt%3D%22robertv_1-1742555157815.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ELet%20me%20know%20if%20this%20helps%20and%20you%20start%20seeing%20the%20Can%20frames%20on%20your%20Kvaser%20Leaf%20Light%20v2.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3ERobert%20V%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E