Skip to main content
Visitor II
November 13, 2024
Question

Using .stldr Custom Loader for QSPI Flash with IAR on STM32H7

  • November 13, 2024
  • 2 replies
  • 845 views

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.

Questions:

  1. Is there a way to convert .stldr files into an IAR-compatible format, like .flash?
  2. Does anyone know if ST provides an IAR-compatible QSPI loader for the STM32H7 series, or if IAR has a utility for converting .stldr files?
  3. Has anyone successfully created a custom QSPI flash loader for STM32H7 in IAR, and if so, do you have any tips?

Any advice or resources for creating or adapting a QSPI flash loader in IAR would be greatly appreciated!

Thanks in advance!

    This topic has been closed for replies.

    2 replies

    Graduate II
    November 13, 2024

    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.

    Super User
    November 14, 2024

    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.