Skip to main content
VThan.2
Associate III
Apr 26, 2022 7:13 PM UTC
Solved

Programming using I2C

Hello all,

 I have a design that is designed with a STM32. The SWDIO pin and SWCLK pin are pogo test points and difficult to solder wires to connect to the ST link programmer. The design has the BOOT0 pin pulled up to VDD. The I2C lines are the only way I can program the board. Once the board is programmed, can it be reprogrammed using the I2C lines for firmware development?

0693W00000Lz7SDQAZ.pngThank you

Vignesh

This topic has been closed for replies.
TDK
TDKBest answer
Apr 26, 2022 8:09 PM UTC

Holding BOOT0 high during reset will cause the chip to boot into the bootloader at every reset, during which time you can reprogram it.

Unless you change option bytes to change the BOOT0 behavior, in which case you will lose this capability.

Use SWD for programming/development and save yourself the headache and lack of productivity caused by not having a debugger.

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

7 replies

TDK
TDKBest answer
Apr 26, 2022 8:09 PM UTC

Holding BOOT0 high during reset will cause the chip to boot into the bootloader at every reset, during which time you can reprogram it.

Unless you change option bytes to change the BOOT0 behavior, in which case you will lose this capability.

Use SWD for programming/development and save yourself the headache and lack of productivity caused by not having a debugger.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andrew Neil
Super User
Apr 26, 2022 8:59 PM UTC

"The SWDIO pin and SWCLK pin are pogo test points and difficult to solder wires to"

Really?

Pads large enough for reliable pogo connection shouldn't be too hard to solder to...

Or make a pogo jig.

As @TDK​  suggests, the benefits of having SWD will far outweigh the effort in soldering ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
VThan.2
VThan.2Author
Associate III
Apr 26, 2022 9:41 PM UTC

Got it. Thank you very much.

Andrew Neil
Super User
Apr 27, 2022 9:29 AM UTC

Jolly good.

If your question is now resolved, please mark the solution:

0693W000008y9fZQAQ.png 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
VThan.2
VThan.2Author
Associate III
Apr 29, 2022 12:27 AM UTC

Hello @Andrew Neil​ , I had already marked it. Am I missing something?

TDK
Apr 29, 2022 12:57 AM UTC
Showed up as marked for me just now.
"If you feel a post has answered your question, please click ""Accept as Solution""."