cancel
Showing results for 
Search instead for 
Did you mean: 

Using SWD and USB DFU to flash code

bhoomika_patil
Associate

Originally a reply here: https://community.st.com/t5/stm32-mcus-products/using-swd-pins-to-flash-code/td-p/759046

Split to a new thread as this is a new question.


Thank you for the solution. However, I have another doubt here. While referring to: STM32H5 MCU hardware development. i came across- 

 

bhoomika_patil_1-1736331551293.png

Here it says for DFU (device firmware upgrade) for STM32H503 series is supported by PA11/ PA12. So does this mean that both SWDIO, SWCLK and the port PA11/PA12 can be used for the firmware update?

4 REPLIES 4

Please mark the solution in the other thread.

 


@bhoomika_patil wrote:

does this mean that both SWDIO, SWCLK and the port PA11/PA12 can be used for the firmware update?


Yes - and all the other options.

But only SWD provides debug.

And you will have to provide additional hardware for USB ...

 

 

bhoomika_patil
Associate

duplicate - merged


Thank you for the explanation. However, while referring to STM32H5 MCU hardware development: i came across- 

bhoomika_patil_0-1736336433434.png

The table says that DFU (device firmware update) can be done using PA11/ PA12 for STMH503 series, so does this indicate that both SWDIO, SWCLK and PA11/PA12 can be used for software update?

 

But I have configured all other pins in my design and only left alone with SWDIO and SWCLK. So should it be a problem if I want update the firmware using these two pins?

 

You marked the wrong post in the other thread - you need to mark which ever one you think actually provided the solution to your problem!

 


@bhoomika_patil wrote:

But I have configured all other pins in my design


Obviously, if you want to use them for USB then you can't use them for anything else!