Skip to main content
李放.1
Associate II
June 21, 2021
Solved

How can I use my own external loader for debugging in STM32CubeIDE?

I want to use OpenOCD as a debug probe to download code to external Flash。

I can't find a configuration to set the external Flash download algorithm in the OpenOCD configuration screen。What should I do to download code to external LFASH using OpenOCD?

Thanks for your help!!!!!!!

This topic has been closed for replies.
mattias norlander
ST Employee
June 28, 2021

Hi,

We only support external loaders with ST-LINK GDB server. Is there a particular reason as to why you want/need to rely on OpenOCD? Please share your view!

If you have to use OpenOCD then you will probably need to develop write some config files for pin mapping, external memory declaration etc.

In conclusion the recommendation would be to use ST-LINK GDB server.

1 reply

mattias norlander
ST Employee
June 28, 2021

Hi,

We only support external loaders with ST-LINK GDB server. Is there a particular reason as to why you want/need to rely on OpenOCD? Please share your view!

If you have to use OpenOCD then you will probably need to develop write some config files for pin mapping, external memory declaration etc.

In conclusion the recommendation would be to use ST-LINK GDB server.