AnsweredAssumed Answered

FRDM-KL03Z and fsl_spi

Question asked by Enrico S on Feb 10, 2015
Latest reply on Feb 16, 2015 by Mark Butcher

Hi all,

I'm using processor expert to setup a SPI connection, with the KL03 being the master.

I'm using the SPI_DRV_MasterInit function to initialize the master, and the SPI_DRV_MasterTransfer to transmit data. However, the code seems to get stuck right after I call the transfer function. Also, I can't see the sclk signal out of the pin using an oscilloscope after initialization.. Any idea on what I'm doing wrong?

 

If this can help, in the clock rate selection of the fls_spi module, in the clock path I read IRC_8MHz. Should this be the 48MHz clock as for the lpuart module?

Re: FRDM-KL03Z and debug console

 

EDIT:

It seems like the SPI_DRV_MasterIRQHandler is not being called? However, the MasterInit method should be taking care of the IRQ enable...

 

 

Thank you,

Enrico

Outcomes