CAN FD 8Mbps

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

CAN FD 8Mbps

Jump to solution
943 Views
Tomato1
Contributor III

On the evaluation board S32K3X4EVB-T172,

when the CAN FD transmission speed is increased from 4 Mbps to 5 or 8Mbps, the data phase waveform output stops. I would like to ask for advice on how to resolve this issue.

Data transmission is operating correctly in the range of 500 kbps to 4 Mbps.

The arbitration phase is 1 Mbps, and the payload is 64 bytes.

0 Kudos
Reply
1 Solution
344 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Tomato1

I don't have a test environment to test at a rate of 8MB/s.

You can check the ESR register yourself to confirm possible causes of the error. This is likely still related to the TDC configuration value.

You'll have to spend some time troubleshooting this yourself. You can add a timeout check for transmission, and after the timeout, you can call "FlexCAN_Ip_AbortTransfer" to try retransmitting.

View solution in original post

0 Kudos
Reply
8 Replies
534 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Tomato1

My mistake.

I retested and discovered that I hadn't enabled BRS and Enhanced CBT before.

The attached results are based on the S32K344EVB.

I discovered that when the rate reaches 5MB, TDC configuration must be enabled; otherwise, communication will fail. (I didn't encounter any problems at 4MB.)

Senlent_0-1766135334057.png

Senlent_1-1766135386420.png

(The ETDCOFF value for TDC is a value I entered based on a simple test. Theoretically, it is related to the transceiver used and the bus architecture.)

 

0 Kudos
Reply
349 Views
Tomato1
Contributor III

Thank you for your response.

With the attached file, I was able to send at 8Mbps, but after about 100 seconds of continuous transmission, I am unable to exit the loop at the following line in the main function. I would appreciate your confirmation on this.

Despite having a transmission interval of about 1 second, the bit in register "IFAG1" is not set to 1, or it may have been inadvertently cleared.

 

while(FlexCAN_Ip_GetTransferStatus(INST_FLEXCAN_0, TX_MB_IDX) != FLEXCAN_STATUS_SUCCESS)
{
FlexCAN_Ip_MainFunctionWrite(INST_FLEXCAN_0, TX_MB_IDX);
}
0 Kudos
Reply
345 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Tomato1

I don't have a test environment to test at a rate of 8MB/s.

You can check the ESR register yourself to confirm possible causes of the error. This is likely still related to the TDC configuration value.

You'll have to spend some time troubleshooting this yourself. You can add a timeout check for transmission, and after the timeout, you can call "FlexCAN_Ip_AbortTransfer" to try retransmitting.

0 Kudos
Reply
628 Views
Tomato1
Contributor III
I changed the CAN transceiver from TJA1443 to TJA1462, which supports 8 Mbps, and retried. Up to 4 Mbps, transmission works normally, but when set to 5 Mbps, as shown in the image below, a waveform is transmitted for an instant, and then nothing is sent afterward. I would like to know the cause and how to resolve this.
At 5 Mbps, the waveform pattern changes midway.
0 Kudos
Reply
595 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Tomato1

I can't test the 8MB for you, but I tested the 5MB on the S32K3X4EVB with your configuration, and it worked perfectly.

0 Kudos
Reply
544 Views
Tomato1
Contributor III

I have reviewed the attached file.

I was able to replicate the same operation,

but when checking the waveform with an oscilloscope, it shows a bit width of 1us, and the data phase appears to be transmitted at 1Mbps.

When setting "brs" to TRUE, the transmission stops midway through the waveform.

Please check it.

Tags (1)
0 Kudos
Reply
891 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Tomato1

TJA1443 is used in S32K3X4EVB-T172 and i can see the speed limited on TJA1443.

This could be the reason why 8Mbps can not run successfully.

2025-11-17_9-54-19.png

0 Kudos
Reply
861 Views
Tomato1
Contributor III

Thank you for your response. I will replace the CAN transceiver with one that supports 8Mbps and try again.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2205603%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2205603%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOn%20the%20evaluation%20board%20S32K3X4EVB-T172%2C%3C%2FP%3E%3CP%3Ewhen%20the%20CAN%20FD%20transmission%20speed%20is%20increased%20from%204%20Mbps%20to%205%20or%208Mbps%2C%20the%20data%20phase%20waveform%20output%20stops.%20I%20would%20like%20to%20ask%20for%20advice%20on%20how%20to%20resolve%20this%20issue.%3C%2FP%3E%3CP%3EData%20transmission%20is%20operating%20correctly%20in%20the%20range%20of%20500%20kbps%20to%204%20Mbps.%3C%2FP%3E%3CP%3EThe%20arbitration%20phase%20is%201%20Mbps%2C%20and%20the%20payload%20is%2064%20bytes.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3EI%20changed%20the%20CAN%20transceiver%20from%20TJA1443%20to%20TJA1462%2C%20which%20supports%208%20Mbps%2C%20and%20retried.%20Up%20to%204%20Mbps%2C%20transmission%20works%20normally%2C%20but%20when%20set%20to%205%20Mbps%2C%20as%20shown%20in%20the%20image%20below%2C%20a%20waveform%20is%20transmitted%20for%20an%20instant%2C%20and%20then%20nothing%20is%20sent%20afterward.%20I%20would%20like%20to%20know%20the%20cause%20and%20how%20to%20resolve%20this.%3C%2FDIV%3E%3CDIV%3E%3CDIV%3EAt%205%20Mbps%2C%20the%20waveform%20pattern%20changes%20midway.%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264562%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264562%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3ETomato1%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20can't%20test%20the%208MB%20for%20you%2C%20but%20I%20tested%20the%205MB%20on%20the%20S32K3X4EVB%20with%20your%20configuration%2C%20and%20it%20worked%20perfectly.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2266690%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266690%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3ETomato1%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EMy%20mistake.%3C%2FP%3E%0A%3CP%3EI%20retested%20and%20discovered%20that%20I%20hadn't%20enabled%20BRS%20and%20Enhanced%20CBT%20before.%3C%2FP%3E%0A%3CP%3EThe%20attached%20results%20are%20based%20on%20the%20S32K344EVB.%3C%2FP%3E%0A%3CP%3EI%20discovered%20that%20when%20the%20rate%20reaches%205MB%2C%20TDC%20configuration%20must%20be%20enabled%3B%20otherwise%2C%20communication%20will%20fail.%20(I%20didn't%20encounter%20any%20problems%20at%204MB.)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1766135334057.png%22%20style%3D%22width%3A%20701px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1766135334057.png%22%20style%3D%22width%3A%20701px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1766135334057.png%22%20style%3D%22width%3A%20701px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1766135334057.png%22%20style%3D%22width%3A%20701px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1766135334057.png%22%20style%3D%22width%3A%20701px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370757i03B554FF3D02DB00%2Fimage-dimensions%2F701x311%3Fv%3Dv2%22%20width%3D%22701%22%20height%3D%22311%22%20role%3D%22button%22%20title%3D%22Senlent_0-1766135334057.png%22%20alt%3D%22Senlent_0-1766135334057.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_1-1766135386420.png%22%20style%3D%22width%3A%20706px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1766135386420.png%22%20style%3D%22width%3A%20706px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1766135386420.png%22%20style%3D%22width%3A%20706px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1766135386420.png%22%20style%3D%22width%3A%20706px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1766135386420.png%22%20style%3D%22width%3A%20706px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370758iC189291B8AED1093%2Fimage-dimensions%2F706x427%3Fv%3Dv2%22%20width%3D%22706%22%20height%3D%22427%22%20role%3D%22button%22%20title%3D%22Senlent_1-1766135386420.png%22%20alt%3D%22Senlent_1-1766135386420.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E(The%20ETDCOFF%20value%20for%20TDC%20is%20a%20value%20I%20entered%20based%20on%20a%20simple%20test.%20Theoretically%2C%20it%20is%20related%20to%20the%20transceiver%20used%20and%20the%20bus%20architecture.)%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2266482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%20have%20reviewed%20the%20attached%20file.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20was%20able%20to%20replicate%20the%20same%20operation%2C%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Ebut%20when%20checking%20the%20waveform%20with%20an%20oscilloscope%2C%20it%20shows%20a%20bit%20width%20of%201us%2C%20and%20the%20data%20phase%20appears%20to%20be%20transmitted%20at%201Mbps.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWhen%20setting%20%22brs%22%20to%20TRUE%2C%20the%20transmission%20stops%20midway%20through%20the%20waveform.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20check%20it.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2267913%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2267913%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20response.%3C%2FP%3E%3CP%3EWith%20the%20attached%20file%2C%20I%20was%20able%20to%20send%20at%208Mbps%2C%20but%20after%20about%20100%20seconds%20of%20continuous%20transmission%2C%20I%20am%20unable%20to%20exit%20the%20loop%20at%20the%20following%20line%20in%20the%20main%20function.%20I%20would%20appreciate%20your%20confirmation%20on%20this.%3C%2FP%3E%3CP%3EDespite%20having%20a%20transmission%20interval%20of%20about%201%20second%2C%20the%20bit%20in%20register%20%22IFAG1%22%20is%20not%20set%20to%201%2C%20or%20it%20may%20have%20been%20inadvertently%20cleared.%3C%2FP%3E%3CBR%20%2F%3E%3CDIV%3Ewhile(FlexCAN_Ip_GetTransferStatus(INST_FLEXCAN_0%2C%20TX_MB_IDX)%20!%3D%20FLEXCAN_STATUS_SUCCESS)%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EFlexCAN_Ip_MainFunctionWrite(INST_FLEXCAN_0%2C%20TX_MB_IDX)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2267928%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20FD%208Mbps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2267928%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3ETomato1%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20don't%20have%20a%20test%20environment%20to%20test%20at%20a%20rate%20of%208MB%2Fs.%3C%2FP%3E%0A%3CP%3EYou%20can%20check%20the%20ESR%20register%20yourself%20to%20confirm%20possible%20causes%20of%20the%20error.%20This%20is%20likely%20still%20related%20to%20the%20TDC%20configuration%20value.%3C%2FP%3E%0A%3CP%3EYou'll%20have%20to%20spend%20some%20time%20troubleshooting%20this%20yourself.%20You%20can%20add%20a%20timeout%20check%20for%20transmission%2C%20and%20after%20the%20timeout%2C%20you%20can%20call%20%22FlexCAN_Ip_AbortTransfer%22%20to%20try%20retransmitting.%3C%2FP%3E%3C%2FLINGO-BODY%3E