# HG changeset patch # User David Douard # Date 1604265099 -3600 # Node ID 5bed3318e56326dca21cd7ddf4a2b8355273ece7 # Parent 069bbd5ee3e4632215132128409f978875d984ce rename fp environment as fp_dfu and add a fp_stlink to make it a bit easier to choose the selected upload protocol diff -r 069bbd5ee3e4 -r 5bed3318e563 platformio.ini --- a/platformio.ini Sun Nov 01 22:10:10 2020 +0100 +++ b/platformio.ini Sun Nov 01 22:11:39 2020 +0100 @@ -35,7 +35,7 @@ framework = mbed board = nucleo_f303re -[env:fp] +[env:fp_dfu] platform = ststm32 framework = mbed board = hp34970_fp_f303rd @@ -46,3 +46,15 @@ -I$PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD debug_tool = stlink upload_protocol = dfu + +[env:fp_stlink] +platform = ststm32 +framework = mbed +board = hp34970_fp_f303rd +board_build.mbed.ldscript = + $PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD/STM32F303XE.ld +build_flags = + -DHAVE_PC + -I$PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD +debug_tool = stlink +upload_protocol = stlink