Skip to main content
BPRAS.1
Associate
October 27, 2022
Question

External loader using SPI is possible or not in STM32CubeIDE ?

  • October 27, 2022
  • 1 reply
  • 725 views

Is External loader programming possible using SPI through STM32CubeIDE(It should program internal and external memory at the same time)?

I am able to generate .stldr and program the external serial flash(Connected via SPI) using this file(.stldr) in STM32CubeProgrammer.

Is it possible to do the same using STM32CubeIDE? As this will program internal and external memory at the same time? I have tried this after selecting the .stldr file in debug_configuration of STM32CubeIDE , but it's not working.

Please confirm the same.

Thanks in Advance

This topic has been closed for replies.

1 reply

Andreas Bolsch
Lead III
October 27, 2022

Don't know how to accomplish this with external loader via STM32CubeProg. But in STM32CubeIDE you can use OpenOCD for flash programming. There's a bitbanging driver for OpenOCD (see https://review.openocd.org/c/openocd/+/4760), but you'd have to build the patched version yourself. The patch contains docs and sample cfg files for various STM32 boards. For this driver, there is no need for any sort of external loader, only the GPIOs have to be configured appropriately.