rename fp environment as fp_dfu and add a fp_stlink draft

Sun, 01 Nov 2020 22:11:39 +0100

author
David Douard <david.douard@sdf3.org>
date
Sun, 01 Nov 2020 22:11:39 +0100
changeset 41
5bed3318e563
parent 40
069bbd5ee3e4
child 42
13bc915b657b

rename fp environment as fp_dfu and add a fp_stlink

to make it a bit easier to choose the selected upload protocol

platformio.ini file | annotate | diff | comparison | revisions
--- 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

mercurial