does STM32U5A9J-DK support HAL_RCCEx_OCTOSPIDelayConfig for Octo-SPI PSRAM?
Hello,
I configured the STM32CubeIDE project and codes for the Octo-SPI PSRAM according to the AN5050. However, the compilation was failed with below messages. The HAL_RCCEx_OCTOSPIDelayConfig is not available in STM32CubeU5 HAL driver. How can I solve this problem?
To avoid the compilation error, the DelayBlock_Calibration was removed temporarily. The addressing of Octo-SPI PSRAM has an error at OCTOSOP1_BASE 0x90000000 as below. Why the default base address is not responding?
Thanks.
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m33 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U5A9xx -c -I../Core/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
arm-none-eabi-gcc "../Core/Src/stm32u5xx_hal_msp.c" -mcpu=cortex-m33 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U5A9xx -c -I../Core/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/stm32u5xx_hal_msp.d" -MT"Core/Src/stm32u5xx_hal_msp.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/stm32u5xx_hal_msp.o"
../Core/Src/main.c: In function 'DelayBlock_Calibration':
../Core/Src/main.c:827:17: warning: implicit declaration of function 'HAL_RCCEx_OCTOSPIDelayConfig'; did you mean 'HAL_RCCEx_CRSConfig'? [-Wimplicit-function-declaration]
827 | HAL_RCCEx_OCTOSPIDelayConfig(delay, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HAL_RCCEx_CRSConfig
arm-none-eabi-gcc "../Core/Src/stm32u5xx_it.c" -mcpu=cortex-m33 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U5A9xx -c -I../Core/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/stm32u5xx_it.d" -MT"Core/Src/stm32u5xx_it.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/stm32u5xx_it.o"
arm-none-eabi-gcc "../Core/Src/system_stm32u5xx.c" -mcpu=cortex-m33 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U5A9xx -c -I../Core/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc -I../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/system_stm32u5xx.d" -MT"Core/Src/system_stm32u5xx.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/system_stm32u5xx.o"
arm-none-eabi-gcc -o "STM32U5A9J-DK-OctalRAM.elf" @"objects.list" -mcpu=cortex-m33 -T"C:\Users\jekim\STM32CubeIDE\workspace_1.17.0\STM32U5A9J-DK-OctalRAM\STM32U5A9NJHXQ_FLASH.ld" --specs=nosys.specs -Wl,-Map="STM32U5A9J-DK-OctalRAM.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/main.o: in function `DelayBlock_Calibration':
C:/Users/jekim/STM32CubeIDE/workspace_1.17.0/STM32U5A9J-DK-OctalRAM/Debug/../Core/Src/main.c:827: undefined reference to `HAL_RCCEx_OCTOSPIDelayConfig'
C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/jekim/STM32CubeIDE/workspace_1.17.0/STM32U5A9J-DK-OctalRAM/Debug/../Core/Src/main.c:890: undefined reference to `HAL_RCCEx_OCTOSPIDelayConfig'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:64: STM32U5A9J-DK-OctalRAM.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
10:00:19 Build Failed. 3 errors, 1 warnings. (took 4s.173ms)
