Is it possible to use FlexSPI as regular SPI?

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

Is it possible to use FlexSPI as regular SPI?

Jump to solution
3,236 Views
bess
Contributor II

Hello,

I am adding a Bosch BMI270 IMU to my i.MXRT685 (specifically MIMXRT685SFVKB) based project, and the only serial communication port available to me is FlexSPI. The set of pins available to me is as follows:

PIO1_18 FLEXSPI0A_SCLK
PIO1_19 FLEXSPI0A_SS0_N
PIO1_20 FLEXSPI0A_DATA0
PIO1_21 FLEXSPI0A_DATA1

Before I charge head first into this, I'd like to make sure that the FlexSPI will work me my purposes - SPI master to configure registers on the IMU and read the generated data.

Tags (3)
0 Kudos
Reply
1 Solution
3,182 Views
jay_heng
NXP Employee
NXP Employee

You may refer to \SDK_2_12_1_EVK-MIMXRT685\boards\evkmimxrt685\driver_examples\flexspi\octal\polling_transfer demo, flexspi_nor_enable_octal_mode() function in flexspi_octal_polling_transfer.c. regular SPI mode is used in this function to access flash register.

View solution in original post

0 Kudos
Reply
4 Replies
3,193 Views
jay_heng
NXP Employee
NXP Employee

Yes, You can use FlexSPI as regular SPI (master mode only).

FlexSPI supports 1/2/4/8bits transfer modes. 1bit transfer mode is so called regular SPI .

0 Kudos
Reply
3,191 Views
bess
Contributor II

Thanks for your reply!

Is there some sample code of this implementation that I can refer to?

0 Kudos
Reply
3,183 Views
jay_heng
NXP Employee
NXP Employee

You may refer to \SDK_2_12_1_EVK-MIMXRT685\boards\evkmimxrt685\driver_examples\flexspi\octal\polling_transfer demo, flexspi_nor_enable_octal_mode() function in flexspi_octal_polling_transfer.c. regular SPI mode is used in this function to access flash register.

0 Kudos
Reply
3,175 Views
bess
Contributor II
Thanks!
0 Kudos
Reply