KL16 SPI delay before transmitting

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

KL16 SPI delay before transmitting

406 Views
mikewilliams
Contributor I

I'm using Codewarrior 10.6.4 letting PE setup my SPI device on a KL16.  After I call SPI_Init() and SPI_Enable(), I have to have a ~200ms delay before transmitting on the bus.  If I don't, the data going out seems to be garbage.  However, if I put in that delay, the data going out is fine.

I've never seen this before.  Any ideas?

0 Kudos
1 Reply

324 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Would you please show the image of garbage waveform?
Please also attached a test project, so that I can direct test it.


Additionally MCUXpresso IDE are recommend to replace CodeWarrior10.6.4.

CodeWarrior IDE Support has Changed for Kinetis Devices.png
There are several spi driver examples in MCUXpresso SDK.

spi driver_examples.png
Please refer: Getting Started with MCUXpresso and FRDM-K64F

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos