SPI loop back application on S32DS is not working.

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

SPI loop back application on S32DS is not working.

936 Views
krishna_Bugudi
Contributor I

NXP_spi_signals_without_loopBack.jpgQ172_K344_EVK.jpgNXP_spi_signals.jpgHi, NXP

I want to bring up SPI interface on K344 Q172 EVK and Run a SPI Loop Back application but on S32DS, Example SPI Loop back Application given for these boards : 

Hardware installation

Supported boards

S32K3X4EVB-Q257 47827 PCB RevX1 SCH RevA or S32K3X4EVB-T172 53148 PCB RevX5 SCH RevB

Since, I'm using Q172 K344 EVK, So I created Pin Mux for Q172 K344 EVK and performed Debug flash and probed signals for SPI master and slave. what I have observed is that chip select behavior is as not as expected and I have given screen shot of SPI Master signals and also there is no signals present on SPI slave. Please let me know If you need any further information to resolve this?

I'm attaching the project folder in zip and Logic analyzer signals screen shots.

Thank you.

0 Kudos
Reply
5 Replies

808 Views
krishna_Bugudi
Contributor I

Hi, @VaneB 

Yes. the RxSlaveBuffer contains the same data that was transmitted by the master.

Thank You.

0 Kudos
Reply

769 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @krishna_Bugudi 

Since the data received by the slave is correct, it seems the issue is indeed related to the logic analyzer.

0 Kudos
Reply

742 Views
krishna_Bugudi
Contributor I

Could you share the steps followed to confirm SPI slave buffer data received from SPI master and logic analyzer screen shots if available. Did you use Q172 EVK board? 

0 Kudos
Reply

698 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @krishna_Bugudi 

Since we observed unusual behavior in the signal using the analyzer, the best way to ensure the data was transmitted correctly is to verify the information stored in the buffers.

0 Kudos
Reply

890 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @krishna_Bugudi 

I will test it on my side, but could you please help verify whether the RxSlaveBuffer contains the same data that was transmitted by the master? I would like to first rule out any issues with the logic analyzer, especially since the project configuration appears to be correct and is based on the original example code.

 

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2151457%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESPI%20loop%20back%20application%20on%20S32DS%20is%20not%20working.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151457%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NXP_spi_signals_without_loopBack.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NXP_spi_signals_without_loopBack.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352169i67B4F485E52FD17E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22NXP_spi_signals_without_loopBack.jpg%22%20alt%3D%22NXP_spi_signals_without_loopBack.jpg%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%22Q172_K344_EVK.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Q172_K344_EVK.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352170i324108412C2D9E93%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Q172_K344_EVK.jpg%22%20alt%3D%22Q172_K344_EVK.jpg%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%22NXP_spi_signals.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NXP_spi_signals.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352167iA32F95FFA87708B2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22NXP_spi_signals.jpg%22%20alt%3D%22NXP_spi_signals.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3EHi%2C%20NXP%3C%2FP%3E%3CP%3EI%20want%20to%20bring%20up%20SPI%20interface%20on%20K344%20Q172%20EVK%20and%20Run%20a%20SPI%20Loop%20Back%20application%20but%20on%20S32DS%2C%20Example%20SPI%20Loop%20back%20Application%20given%20for%20these%20boards%20%3A%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3EHardware%20installation%3C%2FP%3E%3CP%3ESupported%20boards%3C%2FP%3E%3CP%3ES32K3X4EVB-Q257%2047827%20PCB%20RevX1%20SCH%20RevA%20or%20S32K3X4EVB-T172%2053148%20PCB%20RevX5%20SCH%20RevB%3C%2FP%3E%3CP%3ESince%2C%20I'm%20using%20Q172%20K344%20EVK%2C%20So%20I%20created%20Pin%20Mux%20for%20Q172%20K344%20EVK%20and%20performed%20Debug%20flash%20and%20probed%20signals%20for%20SPI%20master%20and%20slave.%20what%20I%20have%20observed%20is%20that%20chip%20select%20behavior%20is%20as%20not%20as%20expected%20and%20I%20have%20given%20screen%20shot%20of%20SPI%20Master%20signals%20and%20also%20there%20is%20no%20signals%20present%20on%20SPI%20slave.%20Please%20let%20me%20know%20If%20you%20need%20any%20further%20information%20to%20resolve%20this%3F%3C%2FP%3E%3CP%3EI'm%20attaching%20the%20project%20folder%20in%20zip%20and%20Logic%20analyzer%20signals%20screen%20shots.%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2155471%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20loop%20back%20application%20on%20S32DS%20is%20not%20working.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2155471%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%2F253760%22%20target%3D%22_blank%22%3E%40krishna_Bugudi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20we%20observed%20unusual%20behavior%20in%20the%20signal%20using%20the%20analyzer%2C%20the%20best%20way%20to%20ensure%20the%20data%20was%20transmitted%20correctly%20is%20to%20verify%20the%20information%20stored%20in%20the%3CSPAN%3E%26nbsp%3Bbuffers.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2154289%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20loop%20back%20application%20on%20S32DS%20is%20not%20working.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2154289%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECould%20you%20share%20the%20steps%20followed%20to%20confirm%20SPI%20slave%20buffer%20data%20received%20from%20SPI%20master%20and%20logic%20analyzer%20screen%20shots%20if%20available.%20Did%20you%20use%20Q172%20EVK%20board%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2153829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20loop%20back%20application%20on%20S32DS%20is%20not%20working.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2153829%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%2F253760%22%20target%3D%22_blank%22%3E%40krishna_Bugudi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20the%20data%20received%20by%20the%20slave%20is%20correct%2C%20it%20seems%20the%20issue%20is%20indeed%20related%20to%20the%20logic%20analyzer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2153286%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20loop%20back%20application%20on%20S32DS%20is%20not%20working.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2153286%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYes.%20the%20RxSlaveBuffer%20contains%20the%20same%20data%20that%20was%20transmitted%20by%20the%20master.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20You.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152532%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20loop%20back%20application%20on%20S32DS%20is%20not%20working.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152532%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%2F253760%22%20target%3D%22_blank%22%3E%40krishna_Bugudi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20will%20test%20it%20on%20my%20side%2C%20but%20could%20you%20please%20help%20verify%20whether%20the%20RxSlaveBuffer%20contains%20the%20same%20data%20that%20was%20transmitted%20by%20the%20master%3F%20I%20would%20like%20to%20first%20rule%20out%20any%20issues%20with%20the%20logic%20analyzer%2C%20especially%20since%20the%20project%20configuration%20appears%20to%20be%20correct%20and%20is%20based%20on%20the%20original%20example%20code.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E