Skip to main content
李放.1
Associate II
Jun 21, 2021 3:28 AM UTC
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 Technical Moderator
Jun 28, 2021 12:47 PM UTC

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

1 reply

mattias norlander
ST Technical Moderator
Jun 28, 2021 12:47 PM UTC

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.