Skip to main content
klaus2399
Associate
September 3, 2016
Question

STM32F103TBU6 forgot port pins! restore comms?

  • September 3, 2016
  • 2 replies
  • 458 views
Posted on September 03, 2016 at 15:34

During my first foray into CubeMX I was distracted with clock settings and forgot to configure SWDIO/SWCLK and UART pins! After flashing, STLink can no longer connect. Is there a way to rescue the chip? 

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    September 3, 2016
    Posted on September 03, 2016 at 15:39

    Strap BOOT0 High so it boots into the System Loader, and use the ST-LINK Utilities to erase your errant code.

    Alternatively if you have NRST connected to the debugger you can ''Connect Under Reset'' to achieve the erasure.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    klaus2399
    klaus2399Author
    Associate
    September 4, 2016
    Posted on September 04, 2016 at 06:46

    BOOT0 High worked!

    Many thanks, clive1