Skip to main content
Explorer
April 26, 2022
Solved

Programming using I2C

  • April 26, 2022
  • 4 replies
  • 2094 views

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.
    Best answer by TDK

    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.

    4 replies

    TDKAnswer
    Super User
    April 26, 2022

    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.

    Super User
    April 26, 2022

    "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 ...

    VThan.2Author
    Explorer
    April 26, 2022

    Got it. Thank you very much.

    Super User
    April 27, 2022

    Jolly good.

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

    0693W000008y9fZQAQ.png 

    VThan.2Author
    Explorer
    April 29, 2022

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

    Super User
    April 29, 2022
    Showed up as marked for me just now.