|
@@ -21,6 +21,7 @@ boards_dir = buildroot/share/PlatformIO/boards
|
21
|
21
|
default_envs = mega2560
|
22
|
22
|
|
23
|
23
|
[common]
|
|
24
|
+arduinoststm32_ver = >=4.10700,<4.10800
|
24
|
25
|
default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
|
25
|
26
|
extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
|
26
|
27
|
build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
|
|
@@ -470,6 +471,7 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/ST
|
470
|
471
|
#
|
471
|
472
|
[env:ARMED]
|
472
|
473
|
platform = ststm32
|
|
474
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
473
|
475
|
board = armed_v1
|
474
|
476
|
build_flags = ${common.build_flags}
|
475
|
477
|
-DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC
|
|
@@ -638,12 +640,14 @@ lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-H
|
638
|
640
|
#
|
639
|
641
|
[env:STM32F070RB_malyan]
|
640
|
642
|
platform = ststm32
|
|
643
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
641
|
644
|
board = malyanM200v2
|
642
|
645
|
build_flags = -DSTM32F0xx -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
|
643
|
646
|
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
|
|
647
|
+ -DCUSTOM_STARTUP_FILE
|
644
|
648
|
-IMarlin/src/HAL/STM32
|
645
|
649
|
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
646
|
|
-lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL
|
|
650
|
+lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL, SoftwareSerial
|
647
|
651
|
|
648
|
652
|
#
|
649
|
653
|
# Malyan M300 (STM32F070CB)
|
|
@@ -676,8 +680,8 @@ lib_ignore = Adafruit NeoPixel
|
676
|
680
|
#
|
677
|
681
|
[env:STM32F401VE_STEVAL]
|
678
|
682
|
platform = ststm32
|
|
683
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
679
|
684
|
board = STEVAL_STM32F401VE
|
680
|
|
-platform_packages = framework-arduinoststm32@>=3.10700,<4
|
681
|
685
|
build_flags = ${common.build_flags}
|
682
|
686
|
-DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
|
683
|
687
|
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STEVAL_F401VE\"
|
|
@@ -694,15 +698,15 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
694
|
698
|
#
|
695
|
699
|
[env:FLYF407ZG]
|
696
|
700
|
platform = ststm32
|
|
701
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
697
|
702
|
board = FLYF407ZG
|
698
|
|
-platform_packages = framework-arduinoststm32@>=3.10700,<4
|
699
|
703
|
build_flags = ${common.build_flags}
|
700
|
704
|
-DSTM32F4 -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
|
701
|
705
|
-DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x8000
|
702
|
706
|
-IMarlin/src/HAL/STM32
|
703
|
707
|
build_unflags = -std=gnu++11
|
704
|
708
|
extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
705
|
|
-lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
|
|
709
|
+lib_ignore = Adafruit NeoPixel, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
|
706
|
710
|
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
707
|
711
|
|
708
|
712
|
|
|
@@ -711,10 +715,10 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
711
|
715
|
#
|
712
|
716
|
[env:FYSETC_S6]
|
713
|
717
|
platform = ststm32
|
714
|
|
-board = fysetc_s6
|
715
|
718
|
platform_packages =
|
716
|
719
|
tool-stm32duino
|
717
|
|
- framework-arduinoststm32@>=3.10700,<4
|
|
720
|
+ framework-arduinoststm32@${common.arduinoststm32_ver}
|
|
721
|
+board = fysetc_s6
|
718
|
722
|
build_flags = ${common.build_flags}
|
719
|
723
|
-DTARGET_STM32F4 -std=gnu++14
|
720
|
724
|
-DVECT_TAB_OFFSET=0x10000
|
|
@@ -735,8 +739,8 @@ upload_protocol = serial
|
735
|
739
|
#
|
736
|
740
|
[env:STM32F407VE_black]
|
737
|
741
|
platform = ststm32
|
|
742
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
738
|
743
|
board = blackSTM32F407VET6
|
739
|
|
-platform_packages = framework-arduinoststm32@>=3.10700,<4
|
740
|
744
|
build_flags = ${common.build_flags}
|
741
|
745
|
-DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
|
742
|
746
|
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
|
|
@@ -752,8 +756,8 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
752
|
756
|
#
|
753
|
757
|
[env:BIGTREE_SKR_PRO]
|
754
|
758
|
platform = ststm32
|
|
759
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
755
|
760
|
board = BigTree_SKR_Pro
|
756
|
|
-platform_packages = framework-arduinoststm32@>=3.10700,<4
|
757
|
761
|
build_flags = ${common.build_flags}
|
758
|
762
|
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
|
759
|
763
|
-DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
|
|
@@ -772,7 +776,7 @@ debug_init_break =
|
772
|
776
|
#
|
773
|
777
|
[env:BIGTREE_GTR_V1_0]
|
774
|
778
|
platform = ststm32@>=5.7.0
|
775
|
|
-platform_packages = framework-arduinoststm32@>=3.10700,<4
|
|
779
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
776
|
780
|
board = BigTree_SKR_Pro
|
777
|
781
|
extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
778
|
782
|
build_flags = ${common.build_flags}
|
|
@@ -794,8 +798,8 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
794
|
798
|
#
|
795
|
799
|
[env:BIGTREE_BTT002]
|
796
|
800
|
platform = ststm32@5.6.0
|
|
801
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
797
|
802
|
board = BigTree_Btt002
|
798
|
|
-platform_packages = framework-arduinoststm32@>=3.10700,<4
|
799
|
803
|
build_flags = ${common.build_flags}
|
800
|
804
|
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VG\"
|
801
|
805
|
-DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
|
|
@@ -883,6 +887,7 @@ debug_tool = jlink
|
883
|
887
|
#
|
884
|
888
|
[env:rumba32_f446ve]
|
885
|
889
|
platform = ststm32
|
|
890
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
886
|
891
|
board = rumba32_f446ve
|
887
|
892
|
build_flags = ${common.build_flags}
|
888
|
893
|
-DSTM32F4xx
|
|
@@ -899,7 +904,8 @@ build_flags = ${common.build_flags}
|
899
|
904
|
-DDISABLE_GENERIC_SERIALUSB
|
900
|
905
|
-DHAL_UART_MODULE_ENABLED
|
901
|
906
|
-Os
|
902
|
|
-lib_ignore = Adafruit NeoPixel
|
|
907
|
+ -IMarlin/src/HAL/STM32
|
|
908
|
+lib_ignore = Adafruit NeoPixel, SoftwareSerial
|
903
|
909
|
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
904
|
910
|
monitor_speed = 500000
|
905
|
911
|
upload_protocol = dfu
|
|
@@ -909,6 +915,7 @@ upload_protocol = dfu
|
909
|
915
|
#
|
910
|
916
|
[env:rumba32_mks]
|
911
|
917
|
platform = ststm32
|
|
918
|
+platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
|
912
|
919
|
board = rumba32_f446ve
|
913
|
920
|
build_flags = ${common.build_flags}
|
914
|
921
|
-DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\""
|
|
@@ -920,8 +927,9 @@ build_flags = ${common.build_flags}
|
920
|
927
|
-DDISABLE_GENERIC_SERIALUSB
|
921
|
928
|
-DHAL_UART_MODULE_ENABLED
|
922
|
929
|
-Os
|
923
|
|
-lib_ignore = Adafruit NeoPixel
|
924
|
|
-src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F7>
|
|
930
|
+ -IMarlin/src/HAL/STM32
|
|
931
|
+lib_ignore = Adafruit NeoPixel, SoftwareSerial
|
|
932
|
+src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
925
|
933
|
upload_protocol = dfu
|
926
|
934
|
|
927
|
935
|
#
|