NXP LPSPI Configuration S32K344 EVB

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

NXP LPSPI Configuration S32K344 EVB

215 Views
rakYps21
Contributor II

Hi team,

I am currently working on LPSPI communication on the S32K344 EVK using NXP RTD 4.0.0.

I have completed the required configuration for LPSPI and am trying to develop an SPI loopback communication on the EVK.
However, I am currently facing an issue where the data is being transmitted, but I am not receiving the expected data in the RX buffer.

I have attached the following for your reference:

  • Project source code
  • Relevant configuration details

Could you please go through the attached project and configuration and help me identify the issue?

Specifically, I would appreciate your support in checking:

  • LPSPI master/slave configuration
  • LPSPI pin configuration and signal routing
  • TX/RX buffer configuration
  • API usage for LPSPI transmit and receive

Any additional configuration required for loopback communication on the S32K344 EVK

Please let me know if any additional information or logs are required from my side.

Thanks,

Raky

Tags (1)
0 Kudos
Reply
4 Replies

159 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @rakYps21 

I reviewed your code and configuration, and I could not find any issues. I also flashed the project onto an FRDM-A-S32K344 board, and as shown in the screenshots below, the RX buffers on both the master and slave sides contain the expected data for both transmissions. 

VaneB_0-1791408815175.pngVaneB_1-1791408828639.png

I understand that you are using an S32K3x4EVB board. Could you please let me know which specific EVB variant you are using?

Also, if possible, could you share a picture of the MCU on your board? I would like to check the device marking and mask set. 

 

BR, VaneB

0 Kudos
Reply

141 Views
rakYps21
Contributor II

Hi @VaneB,

Thank you for your acknowledgment and for testing the setup from your end.

I am currently using the FRDM Automotive S32K344MINI-EVB board HDQFP172 MCU.

I have also shared an image of the MCU mounted on the board for your reference.
Kindly check and confirm.

Please let me know if you need any additional information from my side.

 

Regards,

Raky

0 Kudos
Reply

76 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @rakYps21 

Thank you for sharing the image.

It looks like we are using a very similar setup. To make sure both setups are aligned, could you please double-check that your SPI signals on your setup are connected as shown below and match the pin assignments specified in the FRDM-A-S32K344 Rev. A schematic?

VaneB_0-1791478360750.png

0 Kudos
Reply

5 Views
rakYps21
Contributor II

Hi @VaneB ,

I have double-checked the SPI signal connections and pin assignments on my setup, and they are configured as specified in the FRDM-A-S32K344.

Everything matches the configuration you mentioned.
Looking forward to your response and further guidance on the issue.

Best regards,
Raky

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2419134%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENXP%20LPSPI%20Configuration%20S32K344%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419134%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20team%2C%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20on%20LPSPI%20communication%20on%20the%20S32K344%20EVK%20using%20NXP%20RTD%204.0.0.%3C%2FP%3E%3CP%3EI%20have%20completed%20the%20required%20configuration%20for%20LPSPI%20and%20am%20trying%20to%20develop%20an%20SPI%20loopback%20communication%20on%20the%20EVK.%3CBR%20%2F%3EHowever%2C%20I%20am%20currently%20facing%20an%20issue%20where%20the%20data%20is%20being%20transmitted%2C%20but%20I%20am%20not%20receiving%20the%20expected%20data%20in%20the%20RX%20buffer.%3C%2FP%3E%3CP%3EI%20have%20attached%20the%20following%20for%20your%20reference%3A%3C%2FP%3E%3CUL%3E%3CLI%3EProject%20source%20code%3C%2FLI%3E%3CLI%3ERelevant%20configuration%20details%3C%2FLI%3E%3C%2FUL%3E%3CP%3ECould%20you%20please%20go%20through%20the%20attached%20project%20and%20configuration%20and%20help%20me%20identify%20the%20issue%3F%3C%2FP%3E%3CP%3ESpecifically%2C%20I%20would%20appreciate%20your%20support%20in%20checking%3A%3C%2FP%3E%3CUL%3E%3CLI%3ELPSPI%20master%2Fslave%20configuration%3C%2FLI%3E%3CLI%3ELPSPI%20pin%20configuration%20and%20signal%20routing%3C%2FLI%3E%3CLI%3ETX%2FRX%20buffer%20configuration%3C%2FLI%3E%3CLI%3EAPI%20usage%20for%20LPSPI%20transmit%20and%20receive%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAny%20additional%20configuration%20required%20for%20loopback%20communication%20on%20the%20S32K344%20EVK%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20any%20additional%20information%20or%20logs%20are%20required%20from%20my%20side.%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ERaky%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419210%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20LPSPI%20Configuration%20S32K344%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419210%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%2F266857%22%20target%3D%22_blank%22%3E%40rakYps21%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20reviewed%20your%20code%20and%20configuration%2C%20and%20I%20could%20not%20find%20any%20issues.%20I%20also%20flashed%20the%20project%20onto%20an%20FRDM-A-S32K344%20board%2C%20and%20as%20shown%20in%20the%20screenshots%20below%2C%20the%20RX%20buffers%20on%20both%20the%20master%20and%20slave%20sides%20contain%20the%20expected%20data%20for%20both%20transmissions.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_0-1791408815175.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1791408815175.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1791408815175.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1791408815175.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F397471iD4BFE10BCD58AABC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_0-1791408815175.png%22%20alt%3D%22VaneB_0-1791408815175.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_1-1791408828639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_1-1791408828639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_1-1791408828639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_1-1791408828639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F397472iEDED431BC1566C21%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_1-1791408828639.png%22%20alt%3D%22VaneB_1-1791408828639.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20understand%20that%20you%20are%20using%20an%20S32K3x4EVB%20board.%20Could%20you%20please%20let%20me%20know%20which%20specific%20EVB%20variant%20you%20are%20using%3F%3C%2FP%3E%0A%3CP%3EAlso%2C%20if%20possible%2C%20could%20you%20share%20a%20picture%20of%20the%20MCU%20on%20your%20board%3F%20I%20would%20like%20to%20check%20the%20device%20marking%20and%20mask%20set.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20LPSPI%20Configuration%20S32K344%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419440%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%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20acknowledgment%20and%20for%20testing%20the%20setup%20from%20your%20end.%3C%2FP%3E%3CP%3EI%20am%20currently%20using%20the%20%3CSTRONG%3EFRDM%20Automotive%20S32K344MINI-EVB%20board%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3EHDQFP172%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3EMCU.%3C%2FP%3E%3CP%3EI%20have%20also%20shared%20an%20image%20of%20the%20MCU%20mounted%20on%20the%20board%20for%20your%20reference.%3CBR%20%2F%3EKindly%20check%20and%20confirm.%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20you%20need%20any%20additional%20information%20from%20my%20side.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERaky%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20LPSPI%20Configuration%20S32K344%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419547%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%2F266857%22%20target%3D%22_blank%22%3E%40rakYps21%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20sharing%20the%20image.%3C%2FP%3E%0A%3CP%3EIt%20looks%20like%20we%20are%20using%20a%20very%20similar%20setup.%20To%20make%20sure%20both%20setups%20are%20aligned%2C%20could%20you%20%3CSPAN%3Eplease%20double-check%20that%20your%3C%2FSPAN%3E%20SPI%20signals%20on%20your%20setup%20are%20connected%20as%20shown%20below%20and%20match%20the%20pin%20assignments%20specified%20in%20the%20FRDM-A-S32K344%20Rev.%20A%20schematic%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_0-1791478360750.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1791478360750.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F397549i56DD459F16E210CA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_0-1791478360750.png%22%20alt%3D%22VaneB_0-1791478360750.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E