2024-11-17 03:09 PM
Hi,
I configured the STM32U5G9VJT6Q to use QSPI to interface to a NOR FLASH ( MT25QL128ABA1EW9-0SIT ).
Because of other connectivity, the only option for the data lines (Data [3..0] as highlighted in yellow in the attached screenshot) is "Port 2 IO [7..4]". All other options in the drop-down menu next to "Data [3..0]" are either red or disabled.
I need to be absolutely sure of the connectivity and that it will work (preferably using the HAL drivers).
Does that configuration work?
With reference to the pins table in the attached screenshot, do I need to connect the data lines as follows:
- PH9 (P2_IO4) connected to QSPI flash memory Data 0
- PH10 (P2_IO5) connected to QSPI flash memory Data 1
- PH11 (P2_IO6) connected to QSPI flash memory Data 2
- PH12 (P2_IO7) connected to QSPI flash memory Data 3
or in some other ways?
Thank you
Solved! Go to Solution.
2024-11-18 12:13 AM
Hello @Ricko,
Firstly, the IO[7:4] can be mapped to Data [3..0] because IO[7:4] can be used as possible remap for quad-SPI mode as mentioned in RM0456 Section 28.4.3 OCTOSPI interface to memory modes.
Secondly, thanks to OCTOSPI I/O manager matrix, the user can set a fully programmable premapping of functions:
• Any OCTOSPIM_Pn_CLK / OCTOSPIM_Pn_NCLK pair can be mapped independently to OCTOSPI1_CLK/OCTOSPI1_NCLK or OCTOSPI2_CLK/OCTOSPI2_NCLK
• Any OCTOSPIM_Pn_DQS can be mapped independently to OCTOSPI1_DQS or OCTOSPI2_DQS
• Any OCTOSPIM_Pn_NCS can be mapped independently to OCTOSPI1_NCS or OCTOSPI2_NCS
• Any OCTOSPIM_Pn_IO[3:0] and OCTOSPIM_Pn_IO[7:4] can be mapped independently to OCTOSPI1_IO[3:0], OCTOSPI1_IO[7:4], OCTOSPI2_IO1[3:0] or OCTOSPI2_IO[7:4]
For more information, please see section 29.4.3 OCTOSPIM matrix in RM0456.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-18 12:13 AM
Hello @Ricko,
Firstly, the IO[7:4] can be mapped to Data [3..0] because IO[7:4] can be used as possible remap for quad-SPI mode as mentioned in RM0456 Section 28.4.3 OCTOSPI interface to memory modes.
Secondly, thanks to OCTOSPI I/O manager matrix, the user can set a fully programmable premapping of functions:
• Any OCTOSPIM_Pn_CLK / OCTOSPIM_Pn_NCLK pair can be mapped independently to OCTOSPI1_CLK/OCTOSPI1_NCLK or OCTOSPI2_CLK/OCTOSPI2_NCLK
• Any OCTOSPIM_Pn_DQS can be mapped independently to OCTOSPI1_DQS or OCTOSPI2_DQS
• Any OCTOSPIM_Pn_NCS can be mapped independently to OCTOSPI1_NCS or OCTOSPI2_NCS
• Any OCTOSPIM_Pn_IO[3:0] and OCTOSPIM_Pn_IO[7:4] can be mapped independently to OCTOSPI1_IO[3:0], OCTOSPI1_IO[7:4], OCTOSPI2_IO1[3:0] or OCTOSPI2_IO[7:4]
For more information, please see section 29.4.3 OCTOSPIM matrix in RM0456.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-18 07:02 AM
Thank you @KDJEM.1
2024-11-18 07:04 AM
2024-11-18 07:06 AM - edited 2024-11-18 07:06 AM
@SofLityes, I did, I always do. :)
Thank you too for the other replies.