2024-11-13 01:35 AM - last edited on 2024-11-13 01:58 AM by Andrew Neil
Hi everyone,
I’m working on a project with an STM32H745, and I need to use a custom QSPI flash loader in IAR Embedded Workbench. I already have a custom loader file provided by ST, but it's in .stldr format, which is compatible with STM32CubeProgrammer, not IAR.
In IAR, I’ve successfully set up loaders for internal flash using .flash files (for BANK1 and BANK2), but I haven’t found a straightforward way to use .stldr files directly in IAR. I’ve tried searching through the IAR flashloader configurations, but it seems like .stldr files aren’t natively supported.
Any advice or resources for creating or adapting a QSPI flash loader in IAR would be greatly appreciated!
Thanks in advance!
2024-11-13 01:49 AM
Doesn't IAR have a method of scripting? One that deals.with the pin specifics and another that deals with the part via the QSPI/OSPI interface?
They have their own .ELF method and source.
2024-11-14 04:38 AM
These loaders are such a pain. Better to avoid them totally. If your application has functionality to write or update to the flash, make it working first (anyway you will need to set up the QSPI and the flash). Then you can write code to read files from your host PC by semihosting and write to the flash. You can even optimize by detecting changes and update only changed parts, etc.