Bare metal example using SPI

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

Bare metal example using SPI

810 Views
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?

Labels (1)
Tags (1)
0 Kudos
2 Replies

538 Views
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 Kudos

538 Views
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 Kudos