S32k144 not receive in Logic analyzer

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

S32k144 not receive in Logic analyzer

Jump to solution
1,888 Views
vinmotion
Contributor II

Hello engineers , im new to nxp and i dont know why every example CAN project for s32k144 when i test receive using logic analyzer it get all can error and cannot decode can id or data. hopefully you guys can test the code to check . Thanks a lot 

flexcan_ERROR_nxp.png

0 Kudos
Reply
1 Solution
1,841 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I used below PCAN setting

PetrS_0-1759844202880.png


BR, Petr

View solution in original post

5 Replies
1,857 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tested your code on S32K144EVB-Q100 and with PCAN tool connected I see CAN FD message periodically received. Using a debugger no error is detected on FlexCAN module.

PetrS_0-1759832665208.png


In you case error frame is sent, I guess. You can check module MCR/ECR/ESR1 registers to see a state and error detected. If using S32K144EVB-Q100 as well on your side, be sure board is powered by 12V and SBC CAN transceiver is active.

BR, Petr



1,174 Views
Lixutong
Contributor I
Hello PetrS
I follow you code, and S32K144EVB-Q100 board is powered by 12V, and PCAN setting is same. but the CAN is seem not woking. The CANH-GND/CANL-GND is 1.3V, is it means the SBC CAN is not active, can you help me?
0 Kudos
Reply
1,182 Views
Lixutong
Contributor I
how to make SBC CAN transceiver active
0 Kudos
Reply
1,853 Views
vinmotion
Contributor II

Thank you sir but im fresher from university and nxp is all new to me , can you please share or screen shot how config pcan view to receive above program .. .

0 Kudos
Reply
1,842 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I used below PCAN setting

PetrS_0-1759844202880.png


BR, Petr

%3CLINGO-SUB%20id%3D%22lingo-sub-2181073%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32k144%20not%20receive%20in%20Logic%20analyzer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181073%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20engineers%20%2C%20im%20new%20to%20nxp%20and%20i%20dont%20know%20why%20every%20example%20CAN%20project%20for%20s32k144%20when%20i%20test%20receive%20using%20logic%20analyzer%20it%20get%20all%20can%20error%20and%20cannot%20decode%20can%20id%20or%20data.%20hopefully%20you%20guys%20can%20test%20the%20code%20to%20check%20.%20Thanks%20a%20lot%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22flexcan_ERROR_nxp.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22flexcan_ERROR_nxp.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359721i0D3F7905DB9373F6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22flexcan_ERROR_nxp.png%22%20alt%3D%22flexcan_ERROR_nxp.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2204378%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32k144%20not%20receive%20in%20Logic%20analyzer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2204378%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%20PetrS%3CBR%20%2F%3EI%20follow%20you%20code%2C%20and%20S32K144EVB-Q100%20board%20is%20powered%20by%2012V%2C%20and%20PCAN%20setting%20is%20same.%20but%20the%20CAN%20is%20seem%20not%20woking.%20The%20CANH-GND%2FCANL-GND%20is%201.3V%2C%20is%20it%20means%20the%20SBC%20CAN%20is%20not%20active%2C%20can%20you%20help%20me%3F%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2204352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32k144%20not%20receive%20in%20Logic%20analyzer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2204352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ehow%20to%20make%20SBC%20CAN%20transceiver%20active%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2181227%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32k144%20not%20receive%20in%20Logic%20analyzer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181227%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EI%20used%20below%20PCAN%20setting%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PetrS_0-1759844202880.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PetrS_0-1759844202880.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359755i7D027D3FE9330EC1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PetrS_0-1759844202880.png%22%20alt%3D%22PetrS_0-1759844202880.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2181150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32k144%20not%20receive%20in%20Logic%20analyzer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20sir%20but%20im%20fresher%20from%20university%20and%20nxp%20is%20all%20new%20to%20me%20%2C%20can%20you%20please%20share%20or%20screen%20shot%20how%20config%20pcan%20view%20to%20receive%20above%20program%20..%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2181135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32k144%20not%20receive%20in%20Logic%20analyzer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EI%20tested%20your%20code%20on%20S32K144EVB-Q100%20and%20with%20PCAN%20tool%20connected%20I%20see%20CAN%20FD%20message%20periodically%20received.%20Using%20a%20debugger%20no%20error%20is%20detected%20on%20FlexCAN%20module.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PetrS_0-1759832665208.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PetrS_0-1759832665208.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359733i6F74B5ADE2532A6D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PetrS_0-1759832665208.png%22%20alt%3D%22PetrS_0-1759832665208.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EIn%20you%20case%20error%20frame%20is%20sent%2C%20I%20guess.%20You%20can%20check%20module%20MCR%2FECR%2FESR1%20registers%20to%20see%20a%20state%20and%20error%20detected.%20If%20using%26nbsp%3BS32K144EVB-Q100%20as%20well%20on%20your%20side%2C%20be%20sure%20board%20is%20powered%20by%2012V%20and%20SBC%20CAN%20transceiver%20is%20active.%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E