cancel
Showing results for 
Search instead for 
Did you mean: 

External loader using SPI is possible or not in STM32CubeIDE ?

BPRAS.1
Associate II

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

1 REPLY 1
Andreas Bolsch
Lead II

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.