Browse Source

Support STM32 platform up to 6.1.x

Scott Lahteine 4 years ago
parent
commit
89704ce7f9
1 changed files with 27 additions and 44 deletions
  1. 27
    44
      platformio.ini

+ 27
- 44
platformio.ini View File

37
   SlowSoftI2CMaster=https://github.com/mikeshub/SlowSoftI2CMaster/archive/master.zip
37
   SlowSoftI2CMaster=https://github.com/mikeshub/SlowSoftI2CMaster/archive/master.zip
38
 
38
 
39
 [common_stm32f1]
39
 [common_stm32f1]
40
-platform      = ststm32
40
+platform      = ststm32@<6.2.0
41
 build_flags   = !python Marlin/src/HAL/STM32F1/build_flags.py
41
 build_flags   = !python Marlin/src/HAL/STM32F1/build_flags.py
42
   ${common.build_flags} -std=gnu++14 -DHAVE_SW_SERIAL
42
   ${common.build_flags} -std=gnu++14 -DHAVE_SW_SERIAL
43
 build_unflags = -std=gnu++11
43
 build_unflags = -std=gnu++11
386
 # STM32F4 with STM32GENERIC
386
 # STM32F4 with STM32GENERIC
387
 #
387
 #
388
 [env:STM32F4]
388
 [env:STM32F4]
389
-platform      = ststm32
389
+platform      = ststm32@<6.2.0
390
 board         = disco_f407vg
390
 board         = disco_f407vg
391
 build_flags   = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
391
 build_flags   = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
392
 lib_ignore    = Adafruit NeoPixel, TMCStepper
392
 lib_ignore    = Adafruit NeoPixel, TMCStepper
396
 # STM32F7 with STM32GENERIC
396
 # STM32F7 with STM32GENERIC
397
 #
397
 #
398
 [env:STM32F7]
398
 [env:STM32F7]
399
-platform      = ststm32
399
+platform      = ststm32@<6.2.0
400
 board         = remram_v1
400
 board         = remram_v1
401
 build_flags   = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
401
 build_flags   = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
402
 lib_ignore    = Adafruit NeoPixel, TMCStepper
402
 lib_ignore    = Adafruit NeoPixel, TMCStepper
406
 # ARMED (STM32)
406
 # ARMED (STM32)
407
 #
407
 #
408
 [env:ARMED]
408
 [env:ARMED]
409
-platform      = ststm32
409
+platform      = ststm32@<6.2.0
410
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
410
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
411
 board         = armed_v1
411
 board         = armed_v1
412
 build_flags   = ${common.build_flags}
412
 build_flags   = ${common.build_flags}
548
 # Malyan M200 v2 (STM32F070RB)
548
 # Malyan M200 v2 (STM32F070RB)
549
 #
549
 #
550
 [env:STM32F070RB_malyan]
550
 [env:STM32F070RB_malyan]
551
-platform    = ststm32
551
+platform    = ststm32@<6.2.0
552
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
552
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
553
 board       = malyanM200v2
553
 board       = malyanM200v2
554
 build_flags = -DSTM32F0xx -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
554
 build_flags = -DSTM32F0xx -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
562
 # Malyan M300 (STM32F070CB)
562
 # Malyan M300 (STM32F070CB)
563
 #
563
 #
564
 [env:malyan_M300]
564
 [env:malyan_M300]
565
-platform    = ststm32@>=6.1.0
565
+platform    = ststm32@>=6.1.0,<6.2.0
566
 board       = malyanm300_f070cb
566
 board       = malyanm300_f070cb
567
 build_flags = ${common.build_flags}
567
 build_flags = ${common.build_flags}
568
   -DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"MALYAN_M300\""
568
   -DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"MALYAN_M300\""
588
 # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
588
 # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
589
 #
589
 #
590
 [env:STM32F401VE_STEVAL]
590
 [env:STM32F401VE_STEVAL]
591
-platform          = ststm32
591
+platform          = ststm32@<6.2.0
592
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
592
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
593
 board             = STEVAL_STM32F401VE
593
 board             = STEVAL_STM32F401VE
594
 build_flags       = ${common.build_flags}
594
 build_flags       = ${common.build_flags}
607
 # FLYF407ZG
607
 # FLYF407ZG
608
 #
608
 #
609
 [env:FLYF407ZG]
609
 [env:FLYF407ZG]
610
-platform          = ststm32
610
+platform          = ststm32@<6.2.0
611
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
611
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
612
 board             = FLYF407ZG
612
 board             = FLYF407ZG
613
 build_flags       = ${common.build_flags}
613
 build_flags       = ${common.build_flags}
624
 # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
624
 # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
625
 #
625
 #
626
 [env:FYSETC_S6]
626
 [env:FYSETC_S6]
627
-platform          = ststm32
627
+platform          = ststm32@<6.2.0
628
 platform_packages =
628
 platform_packages =
629
    tool-stm32duino
629
    tool-stm32duino
630
    framework-arduinoststm32@${common.arduinoststm32_ver}
630
    framework-arduinoststm32@${common.arduinoststm32_ver}
648
 # Shield - https://github.com/jmz52/Hardware
648
 # Shield - https://github.com/jmz52/Hardware
649
 #
649
 #
650
 [env:STM32F407VE_black]
650
 [env:STM32F407VE_black]
651
-platform          = ststm32
651
+platform          = ststm32@<6.2.0
652
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
652
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
653
 board             = blackSTM32F407VET6
653
 board             = blackSTM32F407VET6
654
 build_flags       = ${common.build_flags}
654
 build_flags       = ${common.build_flags}
665
 # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
665
 # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
666
 #
666
 #
667
 [env:BIGTREE_SKR_PRO]
667
 [env:BIGTREE_SKR_PRO]
668
-platform          = ststm32
668
+platform          = ststm32@<6.2.0
669
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
669
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
670
 board             = BigTree_SKR_Pro
670
 board             = BigTree_SKR_Pro
671
 build_flags       = ${common.build_flags}
671
 build_flags       = ${common.build_flags}
685
 # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
685
 # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
686
 #
686
 #
687
 [env:BIGTREE_GTR_V1_0]
687
 [env:BIGTREE_GTR_V1_0]
688
-platform          = ststm32@>=5.7.0
688
+platform          = ststm32@>=5.7.0,<6.2.0
689
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
689
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
690
 board             = BigTree_GTR_v1
690
 board             = BigTree_GTR_v1
691
 extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
691
 extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
795
 #
795
 #
796
 # RUMBA32
796
 # RUMBA32
797
 #
797
 #
798
-[env:rumba32_f446ve]
799
-platform      = ststm32
798
+
799
+[common_rumba32]
800
+platform      = ststm32@<6.2.0
800
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
801
 platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
801
 board         = rumba32_f446ve
802
 board         = rumba32_f446ve
802
-build_flags   = ${common.build_flags}
803
-  -DSTM32F4xx
804
-  -DARDUINO_RUMBA32_F446VE
805
-  -DARDUINO_ARCH_STM32
806
-  "-DBOARD_NAME=\"RUMBA32_F446VE\""
807
-  -DSTM32F446xx
808
-  -DUSBCON
809
-  -DUSBD_VID=0x0483
810
-  "-DUSB_MANUFACTURER=\"Unknown\""
811
-  "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
803
+build_flags   = ${common.build_flags} -Os -IMarlin/src/HAL/STM32
804
+  -DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\""
805
+  -DSTM32F446xx -DUSBCON "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
812
   -DHAL_PCD_MODULE_ENABLED
806
   -DHAL_PCD_MODULE_ENABLED
813
   -DUSBD_USE_CDC
807
   -DUSBD_USE_CDC
814
   -DDISABLE_GENERIC_SERIALUSB
808
   -DDISABLE_GENERIC_SERIALUSB
815
   -DHAL_UART_MODULE_ENABLED
809
   -DHAL_UART_MODULE_ENABLED
816
-  -Os
817
-  -IMarlin/src/HAL/STM32
818
 lib_ignore    = Adafruit NeoPixel, SoftwareSerial
810
 lib_ignore    = Adafruit NeoPixel, SoftwareSerial
819
 src_filter    = ${common.default_src_filter} +<src/HAL/STM32>
811
 src_filter    = ${common.default_src_filter} +<src/HAL/STM32>
820
-monitor_speed = 500000
821
 upload_protocol = dfu
812
 upload_protocol = dfu
822
 
813
 
814
+[env:rumba32_f446ve]
815
+platform      = ${common_rumba32.platform}
816
+extends       = common_rumba32
817
+build_flags   = ${common_rumba32.build_flags} -DUSBD_VID=0x0483
818
+monitor_speed = 500000
819
+
823
 #
820
 #
824
 # MKS RUMBA32 (adds TMC2208/2209 UART interface and AUX-1)
821
 # MKS RUMBA32 (adds TMC2208/2209 UART interface and AUX-1)
825
 #
822
 #
826
 [env:rumba32_mks]
823
 [env:rumba32_mks]
827
-platform      = ststm32
828
-platform_packages = framework-arduinoststm32@${common.arduinoststm32_ver}
829
-board         = rumba32_f446ve
830
-build_flags   = ${common.build_flags}
831
-  -DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\""
832
-  -DSTM32F446xx -DUSBCON -DUSBD_VID=0x8000
833
-  "-DUSB_MANUFACTURER=\"Unknown\""
834
-  "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
835
-  -DHAL_PCD_MODULE_ENABLED
836
-  -DUSBD_USE_CDC
837
-  -DDISABLE_GENERIC_SERIALUSB
838
-  -DHAL_UART_MODULE_ENABLED
839
-  -Os
840
-  -IMarlin/src/HAL/STM32
841
-lib_ignore    = Adafruit NeoPixel, SoftwareSerial
842
-src_filter    = ${common.default_src_filter} +<src/HAL/STM32>
843
-upload_protocol = dfu
824
+platform    = ${common_rumba32.platform}
825
+extends     = common_rumba32
826
+build_flags = ${common_rumba32.build_flags} -DUSBD_VID=0x8000
844
 
827
 
845
 #
828
 #
846
 # Just print the dependency tree
829
 # Just print the dependency tree

Loading…
Cancel
Save