Hello again,
Firstly, thank you very much @Uwe Bonnes and @KDJEM.1 for both responses. I have read several times the AN5050 application note document, as you indicated.
In the mentioned document, they say that the proposed connection is possible though the OsctoSPI (GP)IO Manager. However, I didn't found neither in the documentation nor in the HAL drivers how these pins can be configured without using the multiplexed mode (which uses both OSPIs instead of one).
Secondly, meanwhile, I was chatting with @Radek RIPA (ST employee) and he answered me in the customer support. I think his messages are super helpful, so I'll post here for all the community. Hope it helps :)
For OctoSPI in Multiplexed mode:
@Radek RIPAwrote:
The OSPI periphery is designed only to handle one memory at time.
There is one solution to use OSPI1 and OSPI2 in multiplexed mode. That the both peripheries will use same clock and data pins but the CS will be separated for each memory.
There is no other solution for memory mapped mode. Possibility would be to have switch that can be controlled to redirect the CS to one or second memory. But switch must be managed manually and the SW must take care of memory consistency. which is not expect as efficient solution.
...
If you have MX simply select xSPI1 in multiplexed mode and xSPI2 in multiplexed mode and you will see.
they will share D0...Dx, CLK, DQS. And have separated CS.
For OctoSPI without Multiplexed mode:
@Radek RIPAwrote:
...
The solution is different.
They use one SPI interface for example OSPI1
The trick is that the OSPI1 must have CS alternate function possible on two pins. For example on H735 OSPIM_P1_NCS is on PE11, PB10, PG6, PC11, PB6.
You select two of them for example PE11 and PB10. And connect the two memories there.
If you want use memory1 you configure PE11 as alternate function for OSPI. And PB10 must be as output high.
When you want use memory2 the PE11 will be high and PB10 will be as alternate function.
This change must be done by code is not automatic like in multiplexed mode.
Thank you all for the replies. Best regards,
Manuel