Artillery Ruby (STM32F401RCT6) (#23029)

This commit is contained in:
Keith Bennett
2021-11-01 20:23:24 -07:00
committed by Scott Lahteine
parent 0b84194127
commit 7e9e2a7435
14 changed files with 1552 additions and 20 deletions

View File

@ -8,37 +8,19 @@ except ImportError:
import os
Import("env", "projenv")
# access to global build environment
print(env)
# access to project build environment (is used source files in "src" folder)
print(projenv)
config = configparser.ConfigParser()
config.read("platformio.ini")
#com_port = config.get("env:STM32F103RC_meeb", "upload_port")
#print('Use the {0:s} to reboot the board to dfu mode.'.format(com_port))
#
# Upload actions
#
def before_upload(source, target, env):
print("before_upload")
# do some actions
# use com_port
#
env.Execute("pwd")
def after_upload(source, target, env):
print("after_upload")
# do some actions
#
#
env.Execute("pwd")
print("Current build targets", map(str, BUILD_TARGETS))
env.AddPreAction("upload", before_upload)
env.AddPostAction("upload", after_upload)

View File

@ -1,7 +1,6 @@
#
# buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
#
import os
from os.path import join
from os.path import expandvars
Import("env")