cancel
Showing results for 
Search instead for 
Did you mean: 

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

李放.1
Associate II

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!!!!!!!

1 ACCEPTED SOLUTION

Accepted Solutions
mattias norlander
ST Employee

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.

View solution in original post

1 REPLY 1
mattias norlander
ST Employee

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.