‎2021-04-07 01:25 PM
I think I dove in a bit over my head.
I made a custom stm32f0 board that measures and logs a magnetometer through SD card and CAN. It was originally prototyped and tested on the nucleo stm32f042k6 and I tried to copy the essence of it into kicad and make the pcb. I broke out the SWDIO and SWCLK pins, but did not realize that I should've included the reset circuitry.
I tried flashing the board with the stlink v2 debugger/programmer and received the
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.
message. Reviewed forums and learnt a lot of info that I should've researched before doing this :D and tried the following:
The BOOT0 has caused me some confusion as it doesn't really seem to be a pin on the F042K6. I was able to find it in the resources easily. And the cubeide didn't have it as an option when configuring the peripherals.
Since the experimenting, I've stripped it all back down to be:
It is still not recognizing in CubeIDE or ST-Link Utilities, so I think maybe I messed up this board. I have another sensor to try, but just wanted to run this by anyone who might read it all to see if there's something I'm missing... I've attached the schematic for reference. (Would attach the pcb layout, but don't really know a good way to with kicad)
Solved! Go to Solution.
‎2021-04-07 02:27 PM
From Data Sheet
PA8, PA9, PA10, PA11, PA12, PA13, PA14 and PA15 I/Os are supplied by VDDIO2.
‎2021-04-07 02:27 PM
From Data Sheet
PA8, PA9, PA10, PA11, PA12, PA13, PA14 and PA15 I/Os are supplied by VDDIO2.
‎2021-04-08 06:57 AM
Connected Vddio2 to power and I was able to flash and debug over SWD. Next time I'll make sure to RTFM!
‎2021-04-08 06:57 AM
Well that's embarrassing..
Thanks for pointing that out, I will try adding that and report back