cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H563ZI, Openocd configure and flash

tebel
Associate II

Greetings!

 

Getting back into embedded after a long while. As the title says I am wanting to use STM32H563ZI with openocd, but it is not supported out of the box. I have gone through the readme and it looks like I need to create a specific `target/stm32h5x.cfg` file to use with this board. I just want to get working on command line right now. I am on a Mac.

 

I think I am missing something fundamental and/or gotten tunnel vision.

* Is there a template to create a new .cfg for this board somewhere.

* What is the usual process to get support for a new board ? Fork below repo, add new file, and submit a PR?

* I have looked at the following links but must be missing something. Thanks in advance!

https://openocd.org/doc/pdf/openocd.pdf

https://github.com/STMicroelectronics/OpenOCD

https://community.st.com/t5/stm32-mcus-products/nucleo-stm32h5-debugging-openocd/td-p/618225

 

 

6 REPLIES 6
Pavel A.
Evangelist III

The ST fork of OpenOCD is bundled with CubeIDE and it supports STM32H5. Just specify OpenOCD in your debugger configuration instead of "GDB server". It will create .cfg file for OpenOCD. If this does not work please report a bug.

 What is the usual process to get support for a new board

If you mean - board based on STM32 - get the latest CubeIDE, it should support all released MCUs

 

tebel
Associate II

Got it, will take a look. Thanks!

tebel
Associate II

I am not seeing OpenOCD as an option. Also, my ultimate goal is to use Rust as a programming language. It looks like CubeIDE does not support this. What would be the best way to get this to work.Screenshot 2024-02-28 at 7.55.12 PM.pngScreenshot 2024-02-28 at 7.54.20 PM.png

Pavel A.
Evangelist III

Select STM32 application. You've selected generic C++ app. (no idea why they left it in the menu).

PavelA_0-1709416397082.png

Rust... Sorry, not my sort of burger. In Rust we don't trust.

As Pavel writes, select stm32...appli. , like mine here:

 

AScha3_0-1709417267174.png

+

>In Rust we don't trust.   :)  :)

maybe...look here:

https://community.st.com/t5/stm32-mcus-embedded-software/rust-support/m-p/234668

If you feel a post has answered your question, please click "Accept as Solution".

Regarding Rust support, you can use probe-rs tools.

Also if you use VS Code you can install rust-analyzer extension, and "debugger for probe-rs" extension.