2021-11-18 04:30 PM
Hi,
I am fairly new to the STM32 family. I am trying to program my STM32G030F6P6 with a ST-Link V2. I am using the TSSOP-20 Package varient.
However when I try to upload even a very simple program I get this error.
"Error in final launch sequence:
Failed to start GDB server
Failed to start GDB server
Error in initializing ST-LINK device.
Reason: (4) No device found on target."
So I was looking through forum posts and everything and it came to my attention that my boot0 pin is shared with the SWCLK pin. I found out one forum post says that I need to connect the NRST pin too in these type of situations. But in the datasheet I could not find a clear answer to that. Can you please comment on this and share your insights please. It would be a great help.
Best Regards
Solved! Go to Solution.
2021-11-18 10:22 PM
I tested all the connections again, reheated the chip, connected the NRST, and update the STlink firmware. Now I can upload. Thank you so much for your help
2021-11-18 06:56 PM
If the SWD pins are in SWD mode, all you need to connect are SWCLK, SWDIO and GND. BOOT0 being shared with SWCLK doesn't change things here. Note that since PA15 is shared with PA14, you need to keep PA15 uninitialized if you want to use SWD.
Can you connect with STM32CubeProgrammer?
2021-11-18 07:10 PM
Thank you for your quick answer.
I was refering to this post about the NRST connecting to the STLink. I am just trying to upload a bare minimum code with nothing. I have just initialized Serial Wire and that is all. No, PA15 PA14 are not configured as GPIO or anything.
I will try using the STM32CubeProgrammer. Installing now. :)
Thanks again. I will post my results
2021-11-18 10:22 PM
I tested all the connections again, reheated the chip, connected the NRST, and update the STlink firmware. Now I can upload. Thank you so much for your help
2022-06-23 07:08 AM
I have a question, what was the problem.