Is it possible to use FlexSPI as regular SPI?

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

Is it possible to use FlexSPI as regular SPI?

ソリューションへジャンプ
3,250件の閲覧回数
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,196件の閲覧回数
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,207件の閲覧回数
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,205件の閲覧回数
bess
Contributor II

Thanks for your reply!

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

0 件の賞賛
返信
3,197件の閲覧回数
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,189件の閲覧回数
bess
Contributor II
Thanks!
0 件の賞賛
返信