How to Send and Receive multi-frame using CANTP in S32G3 processor?

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

How to Send and Receive multi-frame using CANTP in S32G3 processor?

Jump to solution
1,035 Views
vstephe
Contributor I

We are planning to procure S32G3 series Processor (S32G399A) and would require multi CAN frame support. We could see it supports 16 BCAN and 4 FlexCAN. But no information is identified regarding Multiframe support using CANTP. 

Please Clarify whether S32G3 series support CANTP or not?

0 Kudos
Reply
1 Solution
959 Views
Joey_z
NXP Employee
NXP Employee

hi,vstephe

Thank you for your information and reply.

BR

Joey

View solution in original post

0 Kudos
Reply
5 Replies
1,019 Views
Joey_z
NXP Employee
NXP Employee

hi,vstephe

Thank you for contacting us.

CanTP is the upper layer software behavior. It should configure the functions in the upper layers. As far as I know, CANNTP is an upper-level concept. When it reaches the CANIF layer, it will separate CANTP and eventually become a CAN/CANFD message. For CAN2ETH, LLCE will only forward CAN/CANFD messages.

BR

Joey

0 Kudos
Reply
1,002 Views
vstephe
Contributor I

@Joey, Thanks for the prompt response.

We understand that CANTP is a software concept which is extention of BCAN (Basic CAN) protocol.
CANTP support is required to send more than 8 bytes of CAN data.

With this understanding, I could not find the information how to enable CANTP protocol in S32G3 series (A53 core/Application processor).
Can you please guide us how to initialize CANTP and any CAN controller configuations to be done for the same?

0 Kudos
Reply
979 Views
Joey_z
NXP Employee
NXP Employee

hi,vstephe

Thank you for your reply.

For CAN2ETH, LLCE will only forward CAN/CANFD messages. That is, CAN frames of up to 64Bytes are forwarded. For the description mentioned in the question, only by splitting the TP frame. 

We have the CAN controller configurations guide, such as, AN13423(nxp.com.cn/docs/en/application-note/AN13423.pdf) and the llce user guide. 

Hope it can help you.

BR

Joey

 

 

0 Kudos
Reply
966 Views
vstephe
Contributor I
Thanks Joey,
Got the required file for CANTP support in the BSP package provided by NXP as below.
isotp.c - ISO 15765-2 CAN transport protocol is included in RTD (Automotive SW for S32G3 – Linux BSP)
0 Kudos
Reply
960 Views
Joey_z
NXP Employee
NXP Employee

hi,vstephe

Thank you for your information and reply.

BR

Joey

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2079431%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20Send%20and%20Receive%20multi-frame%20using%20CANTP%20in%20S32G3%20processor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079431%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20are%20planning%20to%20procure%20S32G3%20series%20Processor%20(%3CSPAN%3ES32G399A)%20and%20would%20require%20multi%20CAN%20frame%20support.%20We%20could%20see%20it%20supports%2016%20BCAN%20and%204%20FlexCAN.%20But%20no%20information%20is%20identified%20regarding%20Multiframe%20support%20using%20CANTP.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20Clarify%20whether%20S32G3%20series%20support%20CANTP%20or%20not%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2080680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20Send%20and%20Receive%20multi-frame%20using%20CANTP%20in%20S32G3%20processor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2080680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3Evstephe%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20information%20and%20reply.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2080641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20Send%20and%20Receive%20multi-frame%20using%20CANTP%20in%20S32G3%20processor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2080641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThanks%20Joey%2C%3CBR%20%2F%3EGot%20the%20required%20file%20for%20CANTP%20support%20in%20the%20BSP%20package%20provided%20by%20NXP%20as%20below.%3CBR%20%2F%3Eisotp.c%20-%20ISO%2015765-2%20CAN%20transport%20protocol%20is%20included%20in%20RTD%20(Automotive%20SW%20for%20S32G3%20%E2%80%93%20Linux%20BSP)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2080319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20Send%20and%20Receive%20multi-frame%20using%20CANTP%20in%20S32G3%20processor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2080319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3Evstephe%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20CAN2ETH%2C%20LLCE%20will%20only%20forward%20CAN%2FCANFD%20messages.%20That%20is%2C%20CAN%20frames%20of%20up%20to%2064Bytes%20are%20forwarded.%20For%20the%20description%20mentioned%20in%20the%20question%2C%20only%20by%20splitting%20the%20TP%20frame.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWe%20have%20the%20CAN%20controller%20configurations%20guide%2C%20such%20as%2C%20AN13423(%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com.cn%2Fdocs%2Fen%2Fapplication-note%2FAN13423.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Enxp.com.cn%2Fdocs%2Fen%2Fapplication-note%2FAN13423.pdf%3C%2FA%3E)%20and%20the%20llce%20user%20guide.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20it%20can%20help%20you.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2079797%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20Send%20and%20Receive%20multi-frame%20using%20CANTP%20in%20S32G3%20processor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079797%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24963%22%20target%3D%22_blank%22%3E%40Joey%3C%2FA%3E%2C%20Thanks%20for%20the%20prompt%20response.%3C%2FP%3E%3CP%3EWe%20understand%20that%20CANTP%20is%20a%20software%20concept%20which%20is%20extention%20of%20BCAN%20(Basic%20CAN)%20protocol.%3CBR%20%2F%3ECANTP%20support%20is%20required%20to%20send%20more%20than%208%20bytes%20of%20CAN%20data.%3CBR%20%2F%3E%3CBR%20%2F%3EWith%20this%20understanding%2C%20I%20could%20not%20find%20the%20information%20how%20to%20enable%20CANTP%20protocol%20in%20S32G3%20series%20(A53%20core%2FApplication%20processor).%3CBR%20%2F%3ECan%20you%20please%20guide%20us%20how%20to%20initialize%20CANTP%20and%20any%20CAN%20controller%20configuations%20to%20be%20done%20for%20the%20same%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2079513%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20Send%20and%20Receive%20multi-frame%20using%20CANTP%20in%20S32G3%20processor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079513%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%EF%BC%8C%3CSPAN%3Evstephe%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20contacting%20us.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECanTP%20is%26nbsp%3Bthe%20upper%20layer%20software%20behavior.%26nbsp%3BIt%20should%20configure%20the%20functions%20in%20the%20upper%20layers.%20As%20far%20as%20I%20know%2C%20CANNTP%20is%20an%20upper-level%20concept.%20When%20it%20reaches%20the%20CANIF%20layer%2C%20it%20will%20separate%20CANTP%20and%20eventually%20become%20a%20CAN%2FCANFD%20message.%26nbsp%3BFor%20CAN2ETH%2C%20LLCE%20will%20only%20forward%20CAN%2FCANFD%20messages.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EJoey%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E