Programming using I2C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-26 12:13 PM
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?
Thank you
Vignesh
Solved! Go to Solution.
- Labels:
-
Bootloader
-
I2C
-
STM32L5 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-26 1:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-26 1:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-26 1:59 PM
"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 designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-26 2:41 PM
Got it. Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-27 2:29 AM
Jolly good.
If your question is now resolved, please mark the solution:
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-28 5:27 PM
Hello @Andrew Neil​ , I had already marked it. Am I missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-28 5:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 2:00 AM
Seems you marked it after that post?
Anyhow, tis done now!
:thumbs_up:
A complex system designed from scratch never works and cannot be patched up to make it work.
