Is it possible to use FlexSPI as regular SPI?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is it possible to use FlexSPI as regular SPI?

跳至解决方案
3,247 次查看
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.

标记 (3)
0 项奖励
回复
1 解答
3,193 次查看
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 项奖励
回复
4 回复数
3,204 次查看
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 项奖励
回复
3,202 次查看
bess
Contributor II

Thanks for your reply!

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

0 项奖励
回复
3,194 次查看
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 项奖励
回复
3,186 次查看
bess
Contributor II
Thanks!
0 项奖励
回复