Using STM32 Blue Pill Clones in PlatformIO

preview_player
Показать описание
1) OPEN FOLDER
C:\Users\YOUR_WINDOWS_USERNAME\.platformio\packages\tool-openocd\scripts\target\

2) OPEN FILE

3) FIND #jtag scan chain on Line #33 for me at the moment) and change it to this.

#jtag scan chain
if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
if { [using_jtag] } {
# See STM Document RM0008 Section 26.6.3
set _CPUTAPID 0x3ba00477
} {
# this is the SW-DP tap id not the jtag tap id
#set _CPUTAPID 0x1ba01477 # legit Blue Pill
#set _CPUTAPID 0x2ba01477 # crap clone Blue Pill
set _CPUTAPID 0x1ba01477

}
}

4) Save and recompile in PlatformIO

Above are the directions to allow using STM32 Blue Pill Clones (such as CS32F103C8T6) in PlatformIO. This works perfectly for me and only takes about 5 seconds once you know where the files are.

--- Podcast Subscribe Options ---


--- Follow Me ---

-- Electronics Tools And Kits at My Company ---
Рекомендации по теме
Комментарии
Автор

I do this for the STC 8051 based chips and stgal. I back them up, as an update for that platform/chip will wipe the changes out.

UReasonIt
Автор

Better way is copy this file, and create new "target". Now you can change this in pIO menu.

wojciechbajon