S32K148 - SCK remain high

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

S32K148 - SCK remain high

1,792 Views
madogz28
Contributor II

Hi everyone, 

I tried to use the example about the SPI driver in the attachment, but for the S32K148 board. 

It's working but not very well. Indeed, after 10 sending, the SCK pin remain high. I have to suspend the debugger and resume to send again my frame but only 10 by 10.

Everyone knows how I can resolve this issue ?

Thanks.

Fred.

Labels (1)
0 Kudos
3 Replies

1,006 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Which pins do you use?

Do you try to communicate with the SBC or you just connected MISO - MOSI?

Do you see any error flags?

Regards,

Daniel

0 Kudos

1,006 Views
madogz28
Contributor II

Hi, sorry for the delay. 

I am using : 

  • PTD1 for SIN,
  • PTD2 for SOUT,
  • PTC15 for SCK,
  • PTD3 for PCS0. 

I am not trying to communicate with SBC, but I connected an oscilloscope on the MOSI (SOUT) in order to watch the signal. 

And I haven't error flags, I already checked that. 

Thank you,


Fred

0 Kudos

1,007 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Fred,

PTD1, PTD2 and PTD3 can be routed to LPSPI1 but PTC15 to LPSPI2.

Do you really use PTC15?

Can you attach the code?

Regards,

Daniel

0 Kudos