Skip to main content
DeveloperMan
Associate III
July 17, 2020
Question

Hello, I am using stm32f103 in my project. Software as GPIO_PinRemapConfig (GPIO_Remap_SWJ_JTAGDisable, ENABLE); I disabled it with the command. But now I can activate it back, I don't know how.

  • July 17, 2020
  • 8 replies
  • 1174 views

..

This topic has been closed for replies.

8 replies

Tesla DeLorean
Guru
July 17, 2020

With BOOT0=HIGH your code will no longer run at reset, and you can recover/erase the device in that mode

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
DeveloperMan
Associate III
July 17, 2020

So I can access jtag pins by interfering with this situation with hardware boot pin? Is that so?

Tesla DeLorean
Guru
July 17, 2020

Correct

You can protect the content of the flash from extraction with RDP/ROP (Read Out Protection) settings.

If you use an STM32 design that isn't 12+ years old you can also blow a fuse that disables the interface permanently. But you should think about how to use that, and how to update from within, before you brick the device and need ComponentSolderingDude to replace the IC

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
DeveloperMan
Associate III
July 17, 2020

So I can access jtag pins by interfering with this situation with hardware boot pin? Is that so?

Tesla DeLorean
Guru
July 17, 2020

Yes, think of threat surface as a sphere, where the radius is the disparity in wits, and where the radius can increase over time

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
July 17, 2020

Yes. Hold BOOT0 high during reset and access the chip with JTAG or SWD.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DeveloperMan
Associate III
July 17, 2020

Thanks for your interest.