Switch from OctoSPI1 to OctoSPI2
Hello,
currently we are successfully using an external NOR flash connect via Hyperbus on OCTOSPI1, ClockPort 1 for some time (~1.5 year).
We would like to switch to OCTOSPI2 because we want to use the other address area (0x70000000UL instead of 0x90000000UL).
According to the reference manual and CubeMX this should work without changing any pins.
So we replaced in our software:
OCTOSPI1 --> OCTOSPI2
__HAL_RCC_OSPI1_CLK_ENABLE --> __HAL_RCC_OSPI2_CLK_ENABLE
Every other parameter is unchanged, since we want to control the exact same device.
But it doesn't work. We receive a timeout in HAL_OSPI_Transmit() -> OSPI_WaitFlagStateUntilTimeout().
We are using the HAL init and configuration routines from STM32H7CubeH7 version 1.10.0 (drivers 1.10.0).
Any idea what we missed? Thank you!
