S32K344 SPI Master TX

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

S32K344 SPI Master TX

1,779 Views
Xjh193
Contributor III

Hello,when i used s32k344 , I want to send a frame of 32 bit by LPSPI1. But  I get two frame of 32 bit on an oscilloscope. How is SPI module  configurated reference attachement. The same is true for other SPI modules. Please help me !

Xjh193_0-1645001402054.png

 

0 Kudos
Reply
2 Replies

1,768 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Xjh193,

If TXMSK = 0, a new transfer is initiated only when the Transmit Data Register is written, so, if there is only one 32bit write to the FIFO, the module should send just one 32bit frame (FRAMESZ = 31).

 

Do you need to reset the FIFOs in the function?

There is an erratum regarding the FIFO reset:

ERR050456: LPSPI: Reset to fifo does not work as expected

https://www.nxp.com/webapp/Download?colCode=S32K3X4-0P55A-1P55A-ERRATA

 

Can you please try without the two writes to the Control Register?

 

Regards,

Daniel

 

0 Kudos
Reply

1,750 Views
Xjh193
Contributor III

hi @Daniel, the bug cause we found slow clock is not configured by MCU_CGM register.

Thank you!

0 Kudos
Reply