Electrical Engineering Asked by Jwdsoft on November 28, 2021
I’m a beginner and I’m using STM32F10x family to learn about electronics.I was using STM32F103 blue pill in the past few months and I can debug it and upload code to it while both boot0 and boot1 are equal to 0.
When I switched to STM32F105 which has only boot0 and exposed since I couldn’t find boot1 in the pinout in the datasheet.I have to hook boot0 into vcc in order to flash the elf file.now this also happens on the blue pill I can’t flash it wihout turning boot0 into 1.
the problem is I can’t debug it while boot0 is equal to 1 i’m getting
Target is not responding, retrying…
Target is not responding, retrying…
Error! Failed to read target status
Debugger connection lost.
Shutting down…
I think its because boot0 is equal to 1.
and when I turn back boot0 into zero the debugger can’t flash the file and can’t debug.
I’m trying to debug it since I have a problem I done a simple code to toggle led after 1 second but the code only execute for 16 seconds and stop executing. and I want to debug it to see why.
on the STM32F103 the this problem don’t happen
I have solved the problem.the problem was that I activated SWDIO and SWCLK from Micro pinout.
Now when I chose SWD under System Core -> SYS.
it works fine and i'm able to upload software and debug while BOOT0 is equal to 0.
Answered by Jwdsoft on November 28, 2021
Your code won't run while the BOOT0 pin is high.
But if your code re-purposes or disables the SWD, or is simply bad in various ways, then you can't reprogram it.
The solution is to:
There are ways to do this with having the ST/LINK manipulate the hardware reset rather than changing the boot pin, but they can be tricky, software configuration needs to be just right, and fake ST/LINK adapters generally aren't able to actually drive their reset output
Answered by Chris Stratton on November 28, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP