KL16 SPI delay before transmitting

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KL16 SPI delay before transmitting

540件の閲覧回数
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 件の賞賛
返信
1 返信

458件の閲覧回数
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 件の賞賛
返信