Kicad-STM32 icon indicating copy to clipboard operation
Kicad-STM32 copied to clipboard

Blue Pill SWD breakout symbol - SWD pins wrong order?

Open solarmon opened this issue 3 years ago • 3 comments

I've just tried the YAAJ_BluePill:YAAJ_BluePill_Part_Like_SWD_Breakout symbol and have mapped this to use the Kicad-STM32-master:YAAJ_BluePill_SWD_1 footprint.

However, it seems the SWD pins does not match the footprint - they seem to be on the reversed order.

The SWD pinouts for the YAAJ_BluePill:YAAJ_BluePill_Part_Like_SWD_Breakout symbol:

41 = 3V3 42 = SWIO 43 = SWCLK 44 = GND

However, the SWD silkscreen for the pins are:

41 = GND 42 = SWCLK 43 = SWIO 44 = 3V3

solarmon avatar Dec 01 '20 13:12 solarmon

This is true... Will fix this issue ASAP (within 24H).

Thanks !

yet-another-average-joe avatar Dec 01 '20 13:12 yet-another-average-joe

Now, it should be fixed.

yet-another-average-joe avatar Dec 01 '20 21:12 yet-another-average-joe

Thank you!

For my project I did edit the footprint to change the pin number ordering. But thank you for updating the master.

solarmon avatar Dec 02 '20 11:12 solarmon

Thank you for creating this, YAAJ.

I think there may still be something off with the SWD pins here though.

Most of my blue pill boards have the pins oriented like this:

image (Source: https://stm32-base.org/assets/img/boards/STM32F103C8T6_Blue_Pill-2.jpg)

It's hard to read but from top to bottom as pictured that is: GND CLK DIO 3.3

Both blue pill footprints (YAAJ_BluePill_SWD_1, and YAAJ_BluePill_SWD_2) appear consistent and the silkscreen is marked correctly where applicable.

The symbol YAAJ_BluePill_Part_Like_SWD_Breakout also appears correct.

The other symbol, YAAJ_BluePill_SWD_Breakout, appears to be inconsistent with the others.

Current: Pin 41 - Missing Pin 42 - DIO Pin 43 - CLK Pin 44 - GND

I propose this should be corrected to:

Pin 41 - GND Pin 42 - CLK Pin 43 - DIO Pin 44 - 3.3V

No rush. Just thought I'd mention it when I noticed it.

tinfever avatar Nov 13 '22 02:11 tinfever

Oh yes, you are right ! About the SWD pins : I always replace them with straight ones, or straighten them if I'm lazy.... Makes it easier to use. Of course, in order to break it out, it has to be replaced with a straight one, and soldered on the other side.... But there's a problem : it seems not all bluepills have the same header layout : the 4-pin header position may vary. Slightly, but this makes the footprint unreliable. Best option is to remove all symbols / models with the "breakout" suffix. This will be done for the current version of KiCad (6). In the future... I will not fix an issue with a useless "feature" : who does need to breakout the SWD port ??? Nobody, and I never used it myself ! But my toolchain is currently broken. For an unknown reason, I'm currently unable to export models from Kicad and reimport them in FreeCAD/Kicad-Stepup since I installed FreeCad 0.20 ! And no time for investigation :(

yet-another-average-joe avatar Nov 14 '22 16:11 yet-another-average-joe