STM32H7S78-DK: Template LRUN does not work
Hello,
The STM32Cube project Template_LRUN is failed on STM32H7S78-DK:
- STM32H7S78-DK, MB1736-H7S7L8-D01
- SW is from the latest master of https://github.com/STMicroelectronics/STM32CubeH7RS/tree/main/Projects/STM32H7S78-DK/Templates/Template_LRUN
- I also double check with the stm32cubeh7rs-v1-3-0.
Follow the instructions from readme:
- Build Template LRUN projects with CubeIDE v2.0.0
- Use CubeIDE to load Template_LRUN_Boot.elf to internal flash
- Use CubeProgrammer to program Template_LRUN_Appli.bin to external Nor-Flash and success.
Powerup the DK board and no LED is light-on.
By tracing the boot program, the MCU is hangup when copy the program from Nor-Flash to PSRAM. Crash happen on exact the copy to the first address in PSRAM. It seems PSRAM is not ready.
The error occurs at: https://github.com/STMicroelectronics/stm32-mw-extmem-mgr/blob/5c92d55af712b20030853a8ac7ddf87ab9eb1adf/psram/stm32_psram_driver.c#L138
/* Execute the command sequence */
for (uint8_t command_index = 0u; command_index < PsramObject->psram_public.NumberOfConfig; command_index++)
{
retr = PSRAM_ExecuteCommand(PsramObject, command_index);
if (retr != EXTMEM_DRIVER_PSRAM_OK)
{
goto error;
}
}Could you help?
Thanks!
Leo Ruan
