2025-07-07 6:23 AM
Hello,
I am trying to make an external loader for a STM32H5 to program a QSPI flash MX25L12835F with STM32 Cube Programmer.
In my project I add files Dev_inf.c .h ans Loader_Src.c .h from :
And modify them to adapt to my board :
- Dev_inf.c : update StorageInfo struct
- Loader_src.c : reimplement Init() , MassErase() , Write(), SectorErase() with my flash driver.
I test these functions in debug with the original linker STM32H562RGTX_FLASH.ld and these functions works ok.
After I change the linker file with linker.ld of the branch contrib stm32-external-loader\Loader_Files\other devices and build and generate the file .stldr and put it into STM32CubeProgrammer\bin\ExternalLoader
Then when I open STM32CubeProgrammer I see my external loader in the list :
But when I try to read or erase at QSPI address 0x90000000 I get an error immediatly and nothing happens on the QSPI bus signals like if the functions are not executed :
Does anyone have an idea of what I forgot to do ?
Thanks,