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?
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.
There are several spi driver examples in MCUXpresso SDK.
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!
-----------------------------------------------------------------------------------------------------------------------