STM32U5A9 OctoSPI memory mapped (read only) with NOR FLASH triggers hard fault on first access.
I am trying to bring up the MX25UM51245G NOR Flash connected to OctoSPI 1 on a STM32U5xx development board. I have implemented most of the actions specified in AN5050 to set up this NOR Flash.
Since my use case does NOT require the ability to have the MCU write to the flash, I have only implemented the read mode of the memory mapped interactions.I have generated code using CubeMX and have set up the memory component as follows:
1. HCLK is 120Mhz.
2. Single Data Rate (expect the OctoSPI to run at 60Mhz).
3. OctoSPI clock prescaler set to '1' ==> expect this to generate a 60Mhz clock to the OctoSPI.
When I run the firmware I see that the MCU has no issues accessing the OctoSpi and the OctoSpiManager on the MCU. I also do not see any 'obvious' errors when the MCU interacts with the memory's SPI component in 'indirect' or 'auto polling' mode.
Then I enable the readonly memory mapped mode (based on example in AN5050) but the very first access to address location 0x9000000 generates a precise hard-fault.
Trying to correlate the documentation to the example source code to the 'tutorial videos' has been challenging at best and I am running out of ideas -- any clues would be a big help.
This would have been a piece of cake when Iused to work with the STM32 verilog hardware designs -- ah well....
