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.
Solved! Go to Solution.
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.
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 .
Thanks for your reply!
Is there some sample code of this implementation that I can refer to?
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.