ソースを参照

Support STM32 platform up to 6.1.x

Scott Lahteine 4年前
コミット
89704ce7f9
1個のファイルの変更27行の追加44行の削除
  1. 27
    44
      platformio.ini

+ 27
- 44
platformio.ini ファイルの表示

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

読み込み中…
キャンセル
保存