CAN data transfer error

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

CAN data transfer error

260 Views
Andrew101
Contributor II

Hello everyone,

I tried to use a example of CAN on S32K344 EVB  board. I used CAN AUTOSAR MCAL layer example (RTD600 MCAL & IP] S32K3X4EVB-T172 FlexCAN Example Interrupt/Polling - NXP Community). However, when I measured the signal by logic analyzer, I saw the board always sent 1 or some wrong bytes in the data field. I expect the data field is "0x01,0x02, 0x03, 0x04,0x05, 0x06, 0x07, 0x08". The position of these wrong bytes is random. I use S32DS version 3.6.3 and RTD6.0.0. Here are the results. Thanks for your help.

Andrew101_0-1760349015816.pngAndrew101_1-1760349052692.png

Andrew101_2-1760349075447.png

 

 

0 Kudos
Reply
1 Reply

194 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Andrew101,

Are you measuring CAN_Rx, or CAN_H/L from the bus? Also, if possible, please try testing the project with any CAN interface available. I can see the project successfully returns a frame at 500kbps with the bus status kept at OK.

Snag_66f4971.png

I can also see from the logic analyzer there are no issues. Could you please check connections, GND, sampling point + voltage threshold (if available) from your analyzer? Also, please check if jumper settings are configured as stated in the S32K3X4EVB-T172 Getting Starded.

Snag_66ebfb0.png

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2184760%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECAN%20data%20transfer%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2184760%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%3CP%3EI%20tried%20to%20use%20a%20example%20of%20CAN%20on%20S32K344%20EVB%26nbsp%3B%20board.%20I%20used%20%3CSTRONG%3ECAN%3C%2FSTRONG%3E%26nbsp%3B%3CSTRONG%3EAUTOSAR%20MCAL%20layer%20example%3C%2FSTRONG%3E%26nbsp%3B(%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FRTD600-MCAL-amp-IP-S32K3X4EVB-T172-FlexCAN-Example-Interrupt%2Fta-p%2F2142069%22%20target%3D%22_blank%22%3ERTD600%20MCAL%20%26amp%3B%20IP%5D%20S32K3X4EVB-T172%20FlexCAN%20Example%20Interrupt%2FPolling%20-%20NXP%20Community%3C%2FA%3E).%20However%2C%20when%20I%20measured%20the%20signal%20by%20logic%20analyzer%2C%20I%20saw%20the%20board%20always%20sent%201%20or%20some%20wrong%20bytes%20in%20the%20data%20field.%20I%20expect%20the%20data%20field%20is%20%22%3CSPAN%3E0x01%2C0x02%2C%200x03%2C%200x04%2C0x05%2C%200x06%2C%200x07%2C%200x08%22.%3C%2FSPAN%3E%20The%20position%20of%20these%20wrong%20bytes%20is%20random.%20I%20use%20S32DS%20version%203.6.3%20and%20RTD6.0.0.%20Here%20are%20the%20results.%20Thanks%20for%20your%20help.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Andrew101_0-1760349015816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Andrew101_0-1760349015816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360456iB62AE0B723FC6D3E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Andrew101_0-1760349015816.png%22%20alt%3D%22Andrew101_0-1760349015816.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Andrew101_1-1760349052692.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Andrew101_1-1760349052692.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360457i69677A9835CAAD93%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Andrew101_1-1760349052692.png%22%20alt%3D%22Andrew101_1-1760349052692.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Andrew101_2-1760349075447.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Andrew101_2-1760349075447.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360458i1DB507EC9EC6BC03%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Andrew101_2-1760349075447.png%22%20alt%3D%22Andrew101_2-1760349075447.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2187803%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CAN%20data%20transfer%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187803%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254964%22%20target%3D%22_blank%22%3E%40Andrew101%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EAre%20you%20measuring%20CAN_Rx%2C%20or%20CAN_H%2FL%20from%20the%20bus%3F%20Also%2C%20if%20possible%2C%20please%20try%20testing%20the%20project%20with%20any%20CAN%20interface%20available.%26nbsp%3BI%20can%20see%20the%20project%20successfully%20returns%20a%20frame%20at%20500kbps%20with%20the%20bus%20status%20kept%20at%20OK.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snag_66f4971.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snag_66f4971.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361261i6F2E66B775B5DE05%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Snag_66f4971.png%22%20alt%3D%22Snag_66f4971.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20can%20also%20see%20from%20the%20logic%20analyzer%20there%20are%20no%20issues.%20Could%20you%20please%20check%20connections%2C%20GND%2C%20sampling%20point%20%2B%20voltage%20threshold%20(if%20available)%20from%20your%20analyzer%3F%20Also%2C%20please%20check%20if%20jumper%20settings%20are%20configured%20as%20stated%20in%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.google.com%2Furl%3Fsa%3Dt%26amp%3Brct%3Dj%26amp%3Bq%3D%26amp%3Besrc%3Ds%26amp%3Bsource%3Dweb%26amp%3Bcd%3D%26amp%3Bcad%3Drja%26amp%3Buact%3D8%26amp%3Bved%3D2ahUKEwi69cbB26mQAxVDJEQIHc0BEEEQFnoECBsQAQ%26amp%3Burl%3Dhttps%253A%252F%252Fwww.nxp.com%252Fdesign%252Fdesign-center%252Fdevelopment-boards-and-designs%252FS32K3X4EVB-T172%26amp%3Busg%3DAOvVaw0-PSUYGzyccS0CU7IWo-A6%26amp%3Bopi%3D89978449%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ES32K3X4EVB-T172%20Getting%20Starded.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snag_66ebfb0.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snag_66ebfb0.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361259iB563DE5EBE6415A1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Snag_66ebfb0.png%22%20alt%3D%22Snag_66ebfb0.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E