Bare metal example using SPI

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

Bare metal example using SPI

1,020件の閲覧回数
vix
Contributor II

Is there a bare metal example for VF61 that shows how to use SPI in master mode?

I'm interested in having a frame of 24 bits; according to the VFxxx Reference Manual

SPI frames longer than 16 bits can be supported using the continuous selection format.

Is there an example that shows this feature?

ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

748件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

Hello Vix,

You can take a look to the BareMetal examples available in the following web page, there is a QSPI driver, that you may use.

Sample Code for Vybrid Controller Tower System 

Have a nice day sir!

0 件の賞賛
返信

748件の閲覧回数
vix
Contributor II

I looked to the QSPI example, and modified it to work with SPI0.

I enabled the clock CCM_CCGR0_CG12 and set the IOMUXC PTB19, PTB20, PTB21 and PTB22 but connecting an oscilloscope, the pins are not driven at all.

Is there any additional configuration needed?

0 件の賞賛
返信