coz stm32flash is not integrated with platfromio and I can't find '-i, GPIO_string' option in stm32loader.py,
I made some workaround script like below,
so now I can use 'PIO upload' for uploading firmware.
file : buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
diff --git a/buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
b/buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
index 006ef6f93..63ce945ce 100644
--- a/buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
+++ b/buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
@@ -26,9 +26,9 @@ env.AddPostAction(
#)
# In-line command with arguments
-#env.Replace(
-# UPLOADCMD="executable -arg1 -arg2 $SOURCE"
-#)
+env.Replace(
+ UPLOADCMD="stm32flash -v -i rts,-dtr,dtr /dev/ttyUSB0 -R -w $BUILD_DIR/${PROGNAME}.hex"
+)
# Python callback
#def on_upload(source, target, env):)