‎2019-04-30 01:34 AM
It seems there is a mistake in STM32Cube\Repository\STM32Cube_FW_L4_V1.13.0\Projects\STM32L4R9I-EVAL\Examples\OSPI\OSPI_NOR_MemoryMapped project, the STM32L4R9I-EVAL board flash chip is connected in OCTOSPI1, but in this project, the instance is OSPIHandle.Instance = OCTOSPI2; . This project can run successfully, but actually it is accessing external RAM, not external FLASH. If we change the instance to the correct OCTOSPI1, it will run into error handler very soon. Please provide correct example code, thanks.
Solved! Go to Solution.
‎2019-04-30 03:29 AM
Hello,
This is not a mistake. The example use a OSPI NOR memory in memory-mapped mode with the OctoSPI IO Manager (OCTOSPIM) allows to set a fully programmable pre-mapping of the OCTOSPI1 and OCTOSPI2 signals. Any OCTOSPIM_Pn_x port signal can be mapped independently to OCTOSPI1 or OCTOSPI2.
In this example, the OCTOSPI2 mapped with OCTOSPIM port1.
Regards,
Imen
‎2019-04-30 03:29 AM
Hello,
This is not a mistake. The example use a OSPI NOR memory in memory-mapped mode with the OctoSPI IO Manager (OCTOSPIM) allows to set a fully programmable pre-mapping of the OCTOSPI1 and OCTOSPI2 signals. Any OCTOSPIM_Pn_x port signal can be mapped independently to OCTOSPI1 or OCTOSPI2.
In this example, the OCTOSPI2 mapped with OCTOSPIM port1.
Regards,
Imen
‎2019-04-30 07:20 PM
Hi Imen,
Problem fixed. Thanks a lot :grinning_face_with_sweat:
Martin