Extra SPI Clock Pulse Appears Before CS Line Goes Low on [MCU S32K312]

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

Extra SPI Clock Pulse Appears Before CS Line Goes Low on [MCU S32K312]

298 Views
Mohmedsohel
Contributor III

Hello NXP Team,

I’m observing an issue in my SPI communication using the [MCU S32K312] where an

extra SPI clock pulse (SCK) appears before the CS (Chip Select) line goes low.

*Verified SPI config (CPOL/CPHA modes).

My Questions:

  1. Why is this extra SCK pulse generated?
  2. Is there a workaround or specific configuration to avoid this?

    Below I have Attached Project file with that I have attached the snaps taken while testing SPI Communication

 

 

Tags (1)
0 Kudos
Reply
7 Replies

283 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

CLK low pulse is caused by using first workaround for ERR050456, that is resetting LPSPI module.
If you select 2 workaround, a low pulse would not appear. From RTD300 2nd workaround is properly implemented.
To enable the 2nd workaround, you need to define a macro ERR_IPV_LPSPIV2_0001 and ERR_IPV_LPSPIV2_0001_2ND_SOLUTION

RTD_SPI_UM.pdf:

PetrS_0-1750073954309.png

Anyway, if connected device is enabled by the CS, this SCK extra pulse brings no issue.

BR, Petr

0 Kudos
Reply

267 Views
Mohmedsohel
Contributor III
Hi PetrS,
Same macros ERR_IPV_LPSPIV2_0001 and ERR_IPV_LPSPIV2_0001_2ND_SOLUTION how can I implement them in MBDT
0 Kudos
Reply

281 Views
Mohmedsohel
Contributor III

Hi Petrs,
You mean to say that I need to define manually this macro in my project
ERR_IPV_LPSPIV2_0001 and ERR_IPV_LPSPIV2_0001_2ND_SOLUTION

T R
Sohel J

Tags (1)
0 Kudos
Reply

268 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

it would be ERR_IPV_LPSPIV2_E050456 and ERR_IPV_LPSPIV2_E050456_2ND_SOLUTION,
defined in Soc_Ips.h

BR, Petr

0 Kudos
Reply

264 Views
Mohmedsohel
Contributor III

Hi, 

 ERR_IPV_LPSPIV2_E050456 and ERR_IPV_LPSPIV2_E050456_2ND_SOLUTION these same macros how can I define them in MBDT to avoid the incoming extra Clock Pulse

T R
Sohel J

Tags (1)
0 Kudos
Reply

255 Views
PetrS
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

129 Views
Mohmedsohel
Contributor III
I just posted the query you said waiting for the response please it is emergency please resolve this asap due to this we struck in technical blocker
T R
Sohel
0 Kudos
Reply