Solved
STM32CubeL4 v1.17.1 OSPI Delay Block Bypass Problem
The latest versions of the STM32CubeL4 drivers (1.17.1) and CubeMX (6.5.0) introduce two bugs related to the OSPI and Delay Block Bypass.
- In stm32l4xx_hal_ospi.c line 383, the MODIFY_REG macro no long clears the DLYBYP bit. It also fails to set it according to the CubeMX configuration. I don't understand why these were removed.
- The CubeMX setting is using inverse logic. The setting is labeled Delay Block Bypass. Thus, Enable should indicate the bypass is enabled (HAL_OSPI_DELAY_BLOCK_BYPASSED), whereas Disable should mean disabling the bypass (HAL_OSPI_DELAY_BLOCK_USED). However, CubeMX reverses these values.
