ソースを参照

🔨 Move, tweak maple envs

Scott Lahteine 2年前
コミット
22c5bd7eae
60個のファイルの変更184行の追加299行の削除
  1. 1
    1
      .github/workflows/test-builds.yml
  2. 6
    6
      Marlin/src/pins/pins.h
  3. 1
    1
      buildroot/share/PlatformIO/boards/marlin_maple_CHITU_F103.json
  4. 1
    1
      buildroot/share/PlatformIO/boards/marlin_maple_MEEB_3DP.json
  5. 0
    18
      buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld
  6. 0
    23
      buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  7. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin.py
  8. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  9. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  10. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  11. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  12. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  13. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  14. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  15. 0
    5
      buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  16. 0
    14
      buildroot/share/PlatformIO/scripts/robin.py
  17. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/board.cpp
  18. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/board/board.h
  19. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/common.inc
  20. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/extra_libs.inc
  21. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/flash.ld
  22. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103z_dfu.ld
  23. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103zc.ld
  24. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103zd.ld
  25. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103ze.ld
  26. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/vector_symbols.inc
  27. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/pins_arduino.h
  28. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/variant.h
  29. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/boards.cpp
  30. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/boards_setup.cpp
  31. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/start.S
  32. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/start_c.c
  33. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/syscalls.c
  34. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/board.cpp
  35. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/board/board.h
  36. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/bootloader.ld
  37. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/common.inc
  38. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/extra_libs.inc
  39. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/flash.ld
  40. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/jtag.ld
  41. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/mem-flash.inc
  42. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/mem-jtag.inc
  43. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/mem-ram.inc
  44. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/ram.ld
  45. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rb.ld
  46. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rb_bootloader.ld
  47. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rc.ld
  48. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rc_bootloader.ld
  49. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103re.ld
  50. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/vector_symbols.inc
  51. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/pins_arduino.h
  52. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/variant.h
  53. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/boards.cpp
  54. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/boards_setup.cpp
  55. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/start.S
  56. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/start_c.c
  57. 0
    0
      buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/syscalls.c
  58. 0
    0
      buildroot/tests/STM32F103RC_meeb_maple
  59. 8
    0
      ini/renamed.ini
  60. 167
    190
      ini/stm32f1-maple.ini

+ 1
- 1
.github/workflows/test-builds.yml ファイルの表示

@@ -59,7 +59,7 @@ jobs:
59 59
         #- STM32F103RC_btt_maple
60 60
         - STM32F103RC_btt_USB_maple
61 61
         - STM32F103RC_fysetc_maple
62
-        - STM32F103RC_meeb
62
+        - STM32F103RC_meeb_maple
63 63
         - jgaurora_a5s_a1_maple
64 64
         - STM32F103VE_longer_maple
65 65
         #- mks_robin_maple

+ 6
- 6
Marlin/src/pins/pins.h ファイルの表示

@@ -492,15 +492,15 @@
492 492
 #elif MB(STM3R_MINI)
493 493
   #include "stm32f1/pins_STM3R_MINI.h"          // STM32F103VE?                           env:STM32F103VE env:STM32F103RE_maple
494 494
 #elif MB(GTM32_PRO_VB)
495
-  #include "stm32f1/pins_GTM32_PRO_VB.h"        // STM32F103VE                            env:STM32F103VE env:STM32F103RE_maple
495
+  #include "stm32f1/pins_GTM32_PRO_VB.h"        // STM32F103VE                            env:STM32F103VE env:STM32F103VE_GTM32_maple
496 496
 #elif MB(GTM32_PRO_VD)
497
-  #include "stm32f1/pins_GTM32_PRO_VD.h"        // STM32F103VE                            env:STM32F103VE env:STM32F103RE_maple
497
+  #include "stm32f1/pins_GTM32_PRO_VD.h"        // STM32F103VE                            env:STM32F103VE env:STM32F103VE_GTM32_maple
498 498
 #elif MB(GTM32_MINI)
499
-  #include "stm32f1/pins_GTM32_MINI.h"          // STM32F103VE                            env:STM32F103VE env:STM32F103RE_maple
499
+  #include "stm32f1/pins_GTM32_MINI.h"          // STM32F103VE                            env:STM32F103VE env:STM32F103VE_GTM32_maple
500 500
 #elif MB(GTM32_MINI_A30)
501
-  #include "stm32f1/pins_GTM32_MINI_A30.h"      // STM32F103VE                            env:STM32F103VE env:STM32F103RE_maple
501
+  #include "stm32f1/pins_GTM32_MINI_A30.h"      // STM32F103VE                            env:STM32F103VE env:STM32F103VE_GTM32_maple
502 502
 #elif MB(GTM32_REV_B)
503
-  #include "stm32f1/pins_GTM32_REV_B.h"         // STM32F103VE                            env:STM32F103VE env:STM32F103RE_maple
503
+  #include "stm32f1/pins_GTM32_REV_B.h"         // STM32F103VE                            env:STM32F103VE env:STM32F103VE_GTM32_maple
504 504
 #elif MB(MORPHEUS)
505 505
   #include "stm32f1/pins_MORPHEUS.h"            // STM32F103RE                            env:STM32F103RE env:STM32F103RE_maple
506 506
 #elif MB(CHITU3D)
@@ -556,7 +556,7 @@
556 556
 #elif MB(LONGER3D_LK)
557 557
   #include "stm32f1/pins_LONGER3D_LK.h"         // STM32F1                                env:STM32F103VE_longer env:STM32F103VE_longer_maple
558 558
 #elif MB(CCROBOT_MEEB_3DP)
559
-  #include "stm32f1/pins_CCROBOT_MEEB_3DP.h"    // STM32F1                                env:STM32F103RC_meeb
559
+  #include "stm32f1/pins_CCROBOT_MEEB_3DP.h"    // STM32F1                                env:STM32F103RC_meeb_maple
560 560
 #elif MB(CHITU3D_V5)
561 561
   #include "stm32f1/pins_CHITU3D_V5.h"          // STM32F1                                env:chitu_f103 env:chitu_f103_maple env:chitu_v5_gpio_init env:chitu_v5_gpio_init_maple
562 562
 #elif MB(CHITU3D_V6)

buildroot/share/PlatformIO/boards/marlin_CHITU_F103.json → buildroot/share/PlatformIO/boards/marlin_maple_CHITU_F103.json ファイルの表示

@@ -15,7 +15,7 @@
15 15
       ]
16 16
     ],
17 17
     "mcu": "stm32f103zet6",
18
-    "variant": "marlin_CHITU_F103"
18
+    "variant": "marlin_maple_CHITU_F103"
19 19
   },
20 20
   "debug": {
21 21
     "jlink_device": "STM32F103ZE",

buildroot/share/PlatformIO/boards/marlin_MEEB_3DP.json → buildroot/share/PlatformIO/boards/marlin_maple_MEEB_3DP.json ファイルの表示

@@ -18,7 +18,7 @@
18 18
       "ldscript": "stm32f103xc.ld"
19 19
     },
20 20
     "mcu": "stm32f103rct6",
21
-    "variant": "marlin_MEEB_3DP"
21
+    "variant": "marlin_maple_MEEB_3DP"
22 22
   },
23 23
   "debug": {
24 24
     "jlink_device": "STM32F103RC",

+ 0
- 18
buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld ファイルの表示

@@ -1,18 +0,0 @@
1
-/*
2
- * Linker script for Generic STM32F103RC boards, using the generic bootloader (which takes the lower 8k of memory)
3
- */
4
-
5
-MEMORY
6
-{
7
-	ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K
8
-	rom (rx)  : ORIGIN = 0x08008000, LENGTH = 256K - 32K
9
-}
10
-
11
-/* Provide memory region aliases for common.inc */
12
-REGION_ALIAS("REGION_TEXT", rom);
13
-REGION_ALIAS("REGION_DATA", ram);
14
-REGION_ALIAS("REGION_BSS", ram);
15
-REGION_ALIAS("REGION_RODATA", rom);
16
-
17
-/* Let common.inc handle the real work. */
18
-INCLUDE common.inc

+ 0
- 23
buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py ファイルの表示

@@ -4,29 +4,9 @@
4 4
 import pioutil
5 5
 if pioutil.is_pio_build():
6 6
 
7
-	try:
8
-		import configparser
9
-	except ImportError:
10
-		import ConfigParser as configparser
11
-
12 7
 	import os
13 8
 	Import("env", "projenv")
14 9
 
15
-	config = configparser.ConfigParser()
16
-	config.read("platformio.ini")
17
-
18
-	#
19
-	# Upload actions
20
-	#
21
-	def before_upload(source, target, env):
22
-		env.Execute("pwd")
23
-
24
-	def after_upload(source, target, env):
25
-		env.Execute("pwd")
26
-
27
-	env.AddPreAction("upload", before_upload)
28
-	env.AddPostAction("upload", after_upload)
29
-
30 10
 	flash_size = 0
31 11
 	vect_tab_addr = 0
32 12
 
@@ -38,6 +18,3 @@ if pioutil.is_pio_build():
38 18
 
39 19
 	print('Use the {0:s} address as the marlin app entry point.'.format(vect_tab_addr))
40 20
 	print('Use the {0:d}KB flash version of stm32f103rct6 chip.'.format(flash_size))
41
-
42
-	import marlin
43
-	marlin.custom_ld_script("STM32F103RC_MEEB_3DP.ld")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin.py
3
-#
4
-import robin
5
-robin.prepare("0x08007000", "mks_robin.ld", "Robin.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_e3.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_e3.py
3
-#
4
-import robin
5
-robin.prepare("0x08005000", "mks_robin_e3.ld", "Robin_e3.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_e3p.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_e3p.py
3
-#
4
-import robin
5
-robin.prepare("0x08007000", "mks_robin_e3p.ld", "Robin_e3p.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_lite.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_lite.py
3
-#
4
-import robin
5
-robin.prepare("0x08005000", "mks_robin_lite.ld", "mksLite.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_lite3.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_lite3.py
3
-#
4
-import robin
5
-robin.prepare("0x08005000", "mks_robin_lite.ld", "mksLite3.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_mini.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_mini.py
3
-#
4
-import robin
5
-robin.prepare("0x08007000", "mks_robin_mini.ld", "Robin_mini.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_nano.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_nano.py
3
-#
4
-import robin
5
-robin.prepare("0x08007000", "mks_robin_nano.ld", "Robin_nano.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_nano35.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_nano35.py
3
-#
4
-import robin
5
-robin.prepare("0x08007000", "mks_robin_nano.ld", "Robin_nano35.bin")

+ 0
- 5
buildroot/share/PlatformIO/scripts/mks_robin_pro.py ファイルの表示

@@ -1,5 +0,0 @@
1
-#
2
-# mks_robin_pro.py
3
-#
4
-import robin
5
-robin.prepare("0x08007000", "mks_robin_pro.ld", "Robin_pro.bin")

+ 0
- 14
buildroot/share/PlatformIO/scripts/robin.py ファイルの表示

@@ -1,14 +0,0 @@
1
-#
2
-# robin.py
3
-#
4
-
5
-# Apply customizations for a MKS Robin
6
-def prepare(address, ldname, fwname):
7
-	import pioutil
8
-	if pioutil.is_pio_build():
9
-		import marlin
10
-		def encrypt(source, target, env):
11
-			marlin.encrypt_mks(source, target, env, fwname)
12
-		marlin.relocate_firmware(address)
13
-		marlin.custom_ld_script(ldname)
14
-		marlin.add_post_action(encrypt);

buildroot/share/PlatformIO/variants/marlin_CHITU_F103/board.cpp → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/board.cpp ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/board/board.h → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/board/board.h ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/common.inc → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/common.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/extra_libs.inc → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/extra_libs.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/flash.ld → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/flash.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/stm32f103z_dfu.ld → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103z_dfu.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/stm32f103zc.ld → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103zc.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/stm32f103zd.ld → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103zd.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/stm32f103ze.ld → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/stm32f103ze.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/ld/vector_symbols.inc → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/ld/vector_symbols.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/pins_arduino.h → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/pins_arduino.h ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/variant.h → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/variant.h ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/wirish/boards.cpp → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/boards.cpp ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/wirish/boards_setup.cpp → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/boards_setup.cpp ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/wirish/start.S → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/start.S ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/wirish/start_c.c → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/start_c.c ファイルの表示


buildroot/share/PlatformIO/variants/marlin_CHITU_F103/wirish/syscalls.c → buildroot/share/PlatformIO/variants/marlin_maple_CHITU_F103/wirish/syscalls.c ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/board.cpp → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/board.cpp ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/board/board.h → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/board/board.h ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/bootloader.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/bootloader.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/common.inc → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/common.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/extra_libs.inc → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/extra_libs.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/flash.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/flash.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/jtag.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/jtag.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/mem-flash.inc → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/mem-flash.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/mem-jtag.inc → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/mem-jtag.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/mem-ram.inc → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/mem-ram.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/ram.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/ram.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/stm32f103rb.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rb.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/stm32f103rb_bootloader.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rb_bootloader.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/stm32f103rc.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rc.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/stm32f103rc_bootloader.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103rc_bootloader.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/stm32f103re.ld → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/stm32f103re.ld ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/ld/vector_symbols.inc → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/ld/vector_symbols.inc ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/pins_arduino.h → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/pins_arduino.h ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/variant.h → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/variant.h ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/wirish/boards.cpp → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/boards.cpp ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/wirish/boards_setup.cpp → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/boards_setup.cpp ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/wirish/start.S → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/start.S ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/wirish/start_c.c → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/start_c.c ファイルの表示


buildroot/share/PlatformIO/variants/marlin_MEEB_3DP/wirish/syscalls.c → buildroot/share/PlatformIO/variants/marlin_maple_MEEB_3DP/wirish/syscalls.c ファイルの表示


buildroot/tests/STM32F103RC_meeb → buildroot/tests/STM32F103RC_meeb_maple ファイルの表示


+ 8
- 0
ini/renamed.ini ファイルの表示

@@ -48,3 +48,11 @@ extends = renamed
48 48
 [env:STM32F103RC_btt_512K_USB_maple]
49 49
 # Renamed to STM32F103RE_btt_USB_maple
50 50
 extends = renamed
51
+
52
+[env:STM32F103RC_meeb]
53
+# Renamed to STM32F103RC_meeb_maple
54
+extends = renamed
55
+
56
+[env:STM32F103VE_GTM32]
57
+# Renamed to STM32F103VE_GTM32_maple
58
+extends = renamed

+ 167
- 190
ini/stm32f1-maple.ini ファイルの表示

@@ -22,7 +22,7 @@
22 22
 #
23 23
 # HAL/STM32F1 Common Environment values
24 24
 #
25
-[common_stm32f1]
25
+[STM32F1_maple]
26 26
 platform          = ststm32@~12.1
27 27
 board_build.core  = maple
28 28
 build_flags       = !python Marlin/src/HAL/STM32F1/build_flags.py
@@ -34,52 +34,62 @@ lib_deps          = ${common.lib_deps}
34 34
   SoftwareSerialM
35 35
 platform_packages = tool-stm32duino
36 36
 extra_scripts     = ${common.extra_scripts}
37
-  pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
38
-  pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
39
-      buildroot/share/PlatformIO/scripts/offset_and_rename.py
37
+                    pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
38
+                    pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
39
+                        buildroot/share/PlatformIO/scripts/custom_board.py
40
+                        buildroot/share/PlatformIO/scripts/offset_and_rename.py
40 41
 
41 42
 #
42
-# STM32F103RC
43
+# Generic STM32F103RC environment
43 44
 #
44
-[common_STM32F103RC_maple]
45
-extends           = common_stm32f1
46
-board             = genericSTM32F103RC
47
-monitor_speed     = 115200
45
+[env:STM32F103RC_maple]
46
+extends       = STM32F1_maple
47
+board         = genericSTM32F103RC
48
+monitor_speed = 115200
49
+
50
+#
51
+# Generic STM32F103RE environment
52
+#
53
+[env:STM32F103RE_maple]
54
+extends       = STM32F1_maple
55
+board         = genericSTM32F103RE
56
+monitor_speed = 115200
48 57
 
49 58
 #
50 59
 # MEEB_3DP (STM32F103RCT6 with 512K)
51 60
 #
52
-[env:STM32F103RC_meeb]
53
-extends           = common_STM32F103RC_maple
54
-board             = marlin_MEEB_3DP
55
-build_flags       = ${common_stm32f1.build_flags}
56
-                    -DDEBUG_LEVEL=0
57
-                    -DSS_TIMER=4
58
-                    -DSTM32_FLASH_SIZE=512
59
-                    -DHSE_VALUE=12000000U
60
-                    -DUSE_USB_COMPOSITE
61
-                    -DVECT_TAB_OFFSET=0x2000
62
-                    -DGENERIC_BOOTLOADER
63
-extra_scripts     = ${common_stm32f1.extra_scripts}
64
-  pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
65
-  buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
66
-lib_deps          = ${common_stm32f1.lib_deps}
67
-  USBComposite for STM32F1@0.91
61
+[env:STM32F103RC_meeb_maple]
62
+extends              = env:STM32F103RC_maple
63
+board                = marlin_maple_MEEB_3DP
64
+build_flags          = ${STM32F1_maple.build_flags}
65
+                       -DDEBUG_LEVEL=0
66
+                       -DSS_TIMER=4
67
+                       -DSTM32_FLASH_SIZE=512
68
+                       -DHSE_VALUE=12000000U
69
+                       -DUSE_USB_COMPOSITE
70
+                       -DVECT_TAB_OFFSET=0x2000
71
+                       -DGENERIC_BOOTLOADER
72
+board_build.ldscript = STM32F103RC_MEEB_3DP.ld
73
+extra_scripts        = ${STM32F1_maple.extra_scripts}
74
+                       pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
75
+                           buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
76
+lib_deps             = ${STM32F1_maple.lib_deps}
77
+                       USBComposite for STM32F1@0.91
68 78
 custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
69
-debug_tool        = stlink
70
-upload_protocol   = dfu
79
+debug_tool           = stlink
80
+upload_protocol      = dfu
71 81
 
72 82
 #
73 83
 # FYSETC STM32F103RC
74 84
 #
75 85
 [env:STM32F103RC_fysetc_maple]
76
-extends           = common_STM32F103RC_maple
77
-extra_scripts     = ${common_stm32f1.extra_scripts}
78
-  buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
79
-build_flags       = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
80
-lib_ldf_mode      = chain
81
-debug_tool        = stlink
82
-upload_protocol   = serial
86
+extends         = env:STM32F103RC_maple
87
+extra_scripts   = ${STM32F1_maple.extra_scripts}
88
+                  buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
89
+build_flags     = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0
90
+lib_ldf_mode    = chain
91
+debug_tool      = stlink
92
+upload_protocol = serial
83 93
 
84 94
 #
85 95
 # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
@@ -88,48 +98,28 @@ upload_protocol   = serial
88 98
 #   STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
89 99
 #
90 100
 [env:STM32F103RC_btt_maple]
91
-extends              = common_STM32F103RC_maple
101
+extends              = env:STM32F103RC_maple
92 102
 board_build.address  = 0x08007000
93 103
 board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
94
-extra_scripts        = ${common_stm32f1.extra_scripts}
95
-  buildroot/share/PlatformIO/scripts/custom_board.py
96
-build_flags          = ${common_stm32f1.build_flags}
97
-  -DDEBUG_LEVEL=0 -DSS_TIMER=4
104
+build_flags          = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
98 105
 monitor_speed        = 115200
99 106
 
100 107
 [env:STM32F103RC_btt_USB_maple]
101
-extends           = env:STM32F103RC_btt_maple
102
-build_flags       = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
103
-lib_deps          = ${env:STM32F103RC_btt_maple.lib_deps}
104
-  USBComposite for STM32F1@0.91
105
-
106
-#
107
-# Generic STM32F103RE environment
108
-#
109
-[env:STM32F103RE_maple]
110
-extends           = common_stm32f1
111
-board             = genericSTM32F103RE
112
-monitor_speed     = 115200
113
-
114
-#
115
-# Generic STM32F103RC environment
116
-#
117
-[env:STM32F103RC_maple]
118
-extends           = common_stm32f1
119
-board             = genericSTM32F103RC
120
-monitor_speed     = 115200
108
+extends     = env:STM32F103RC_btt_maple
109
+build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
110
+lib_deps    = ${env:STM32F103RC_btt_maple.lib_deps}
111
+              USBComposite for STM32F1@0.91
121 112
 
122 113
 #
123 114
 # Creality (STM32F103RET6)
124 115
 #
125 116
 [env:STM32F103RE_creality_maple]
126 117
 extends              = env:STM32F103RE_maple
127
-build_flags          = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
118
+build_flags          = ${STM32F1_maple.build_flags} -DTEMP_TIMER_CHAN=4
128 119
 board_build.address  = 0x08007000
129 120
 board_build.ldscript = creality.ld
130
-extra_scripts        = ${common_stm32f1.extra_scripts}
131
-  pre:buildroot/share/PlatformIO/scripts/random-bin.py
132
-  buildroot/share/PlatformIO/scripts/custom_board.py
121
+extra_scripts        = ${STM32F1_maple.extra_scripts}
122
+                       pre:buildroot/share/PlatformIO/scripts/random-bin.py
133 123
 debug_tool           = jlink
134 124
 upload_protocol      = jlink
135 125
 
@@ -138,12 +128,11 @@ upload_protocol      = jlink
138 128
 #
139 129
 [env:STM32F103RC_creality_maple]
140 130
 extends              = env:STM32F103RC_maple
141
-build_flags          = ${common_stm32f1.build_flags} -DTEMP_TIMER_CHAN=4
131
+build_flags          = ${STM32F1_maple.build_flags} -DTEMP_TIMER_CHAN=4
142 132
 board_build.address  = 0x08007000
143 133
 board_build.ldscript = creality.ld
144
-extra_scripts        = ${common_stm32f1.extra_scripts}
145
-  pre:buildroot/share/PlatformIO/scripts/random-bin.py
146
-  buildroot/share/PlatformIO/scripts/custom_board.py
134
+extra_scripts        = ${STM32F1_maple.extra_scripts}
135
+                       pre:buildroot/share/PlatformIO/scripts/random-bin.py
147 136
 debug_tool           = jlink
148 137
 upload_protocol      = jlink
149 138
 
@@ -162,204 +151,197 @@ board_build.ldscript = crealityPro.ld
162 151
 #   STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
163 152
 #
164 153
 [env:STM32F103RE_btt_maple]
165
-extends           = env:STM32F103RE_maple
154
+extends              = env:STM32F103RE_maple
166 155
 board_build.address  = 0x08007000
167 156
 board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
168
-extra_scripts     = ${common_stm32f1.extra_scripts}
169
-  buildroot/share/PlatformIO/scripts/custom_board.py
170
-build_flags       = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
171
-debug_tool        = stlink
172
-upload_protocol   = stlink
157
+build_flags          = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
158
+debug_tool           = stlink
159
+upload_protocol      = stlink
173 160
 
174 161
 [env:STM32F103RE_btt_USB_maple]
175
-extends           = env:STM32F103RE_btt_maple
176
-build_flags       = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
177
-lib_deps          = ${common_stm32f1.lib_deps}
178
-  USBComposite for STM32F1@0.91
162
+extends     = env:STM32F103RE_btt_maple
163
+build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
164
+lib_deps    = ${STM32F1_maple.lib_deps}
165
+              USBComposite for STM32F1@0.91
179 166
 
180 167
 #
181 168
 # Geeetech GTM32 (STM32F103VET6)
182 169
 #
183
-[env:STM32F103VE_GTM32]
184
-extends         = common_stm32f1
170
+[env:STM32F103VE_GTM32_maple]
171
+extends         = STM32F1_maple
185 172
 board           = genericSTM32F103VE
186
-build_flags     = ${common_stm32f1.build_flags}
187
-  -ffunction-sections -fdata-sections -nostdlib -MMD
188
-  -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
189
-  -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
190
-  -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
173
+build_flags     = ${STM32F1_maple.build_flags}
174
+                  -ffunction-sections -fdata-sections -nostdlib -MMD
175
+                  -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
176
+                  -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
177
+                  -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
191 178
 upload_protocol = serial
192 179
 
193 180
 #
194 181
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
195 182
 #
196 183
 [env:STM32F103VE_longer_maple]
197
-extends       = common_stm32f1
198
-board         = genericSTM32F103VE
184
+extends              = STM32F1_maple
185
+board                = genericSTM32F103VE
199 186
 board_build.address  = 0x08010000
200 187
 board_build.rename   = project.bin
201 188
 board_build.ldscript = STM32F103VE_longer.ld
202
-extra_scripts = ${common_stm32f1.extra_scripts}
203
-  buildroot/share/PlatformIO/scripts/custom_board.py
204
-build_flags   = ${common_stm32f1.build_flags}
205
-  -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
206
-build_unflags = ${common_stm32f1.build_unflags}
207
-  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
189
+build_flags          = ${STM32F1_maple.build_flags}
190
+                       -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
191
+build_unflags        = ${STM32F1_maple.build_unflags}
192
+                       -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
208 193
 
209 194
 #
210 195
 # MKS Robin Mini (STM32F103VET6)
211 196
 #
212 197
 [env:mks_robin_mini_maple]
213
-extends       = common_stm32f1
214
-board         = genericSTM32F103VE
215
-extra_scripts = ${common_stm32f1.extra_scripts}
216
-  buildroot/share/PlatformIO/scripts/mks_robin_mini.py
217
-build_flags   = ${common_stm32f1.build_flags}
218
-  -DMCU_STM32F103VE
198
+extends              = STM32F1_maple
199
+board                = genericSTM32F103VE
200
+board_build.address  = 0x08007000
201
+board_build.rename   = Robin_mini.bin
202
+board_build.ldscript = mks_robin_mini.ld
203
+build_flags          = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE
219 204
 
220 205
 #
221 206
 # MKS Robin Nano (STM32F103VET6)
222 207
 #
223 208
 [env:mks_robin_nano35_maple]
224
-extends         = common_stm32f1
225
-board           = genericSTM32F103VE
226
-extra_scripts   = ${common_stm32f1.extra_scripts}
227
-  buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
228
-build_flags     = ${common_stm32f1.build_flags}
229
-  -DMCU_STM32F103VE -DSS_TIMER=4
230
-debug_tool      = jlink
231
-upload_protocol = jlink
209
+extends              = STM32F1_maple
210
+board                = genericSTM32F103VE
211
+board_build.address  = 0x08007000
212
+board_build.rename   = Robin_nano35.bin
213
+board_build.ldscript = mks_robin_nano.ld
214
+build_flags          = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4
215
+debug_tool           = jlink
216
+upload_protocol      = jlink
232 217
 
233 218
 #
234 219
 # MKS Robin (STM32F103ZET6)
235 220
 #
236 221
 [env:mks_robin_maple]
237
-extends       = common_stm32f1
238
-board         = genericSTM32F103ZE
239
-extra_scripts = ${common_stm32f1.extra_scripts}
240
-  buildroot/share/PlatformIO/scripts/mks_robin.py
241
-build_flags   = ${common_stm32f1.build_flags}
242
-  -DSS_TIMER=4 -DSTM32_XL_DENSITY
222
+extends              = STM32F1_maple
223
+board                = genericSTM32F103ZE
224
+board_build.address  = 0x08007000
225
+board_build.rename   = Robin.bin
226
+board_build.ldscript = mks_robin.ld
227
+build_flags          = ${STM32F1_maple.build_flags} -DSS_TIMER=4 -DSTM32_XL_DENSITY
243 228
 
244 229
 #
245 230
 # MKS Robin Pro (STM32F103ZET6)
246 231
 #
247 232
 [env:mks_robin_pro_maple]
248
-extends       = env:mks_robin_maple
249
-extra_scripts = ${common_stm32f1.extra_scripts}
250
-  buildroot/share/PlatformIO/scripts/mks_robin_pro.py
233
+extends              = env:mks_robin_maple
234
+board_build.address  = 0x08007000
235
+board_build.rename   = Robin_pro.bin
236
+board_build.ldscript = mks_robin_pro.ld
251 237
 
252 238
 #
253 239
 # TRIGORILLA PRO (STM32F103ZET6)
254 240
 #
255 241
 [env:trigorilla_pro_maple]
256 242
 extends       = env:mks_robin_maple
257
-extra_scripts = ${common_stm32f1.extra_scripts}
243
+extra_scripts = ${STM32F1_maple.extra_scripts}
258 244
 
259 245
 #
260 246
 # MKS Robin E3D (STM32F103RCT6) and
261 247
 # MKS Robin E3 with TMC2209
262 248
 #
263 249
 [env:mks_robin_e3_maple]
264
-extends       = common_stm32f1
265
-board         = genericSTM32F103RC
266
-extra_scripts = ${common_stm32f1.extra_scripts}
267
-  buildroot/share/PlatformIO/scripts/mks_robin_e3.py
268
-build_flags   = ${common_stm32f1.build_flags}
269
-  -DDEBUG_LEVEL=0 -DSS_TIMER=4
250
+extends              = STM32F1_maple
251
+board                = genericSTM32F103RC
252
+board_build.address  = 0x08005000
253
+board_build.rename   = Robin_e3.bin
254
+board_build.ldscript = mks_robin_e3.ld
255
+build_flags          = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
270 256
 
271 257
 #
272 258
 # MKS Robin E3p (STM32F103VET6)
273 259
 #  - LVGL UI
274 260
 #
275 261
 [env:mks_robin_e3p_maple]
276
-extends         = common_stm32f1
277
-board           = genericSTM32F103VE
278
-extra_scripts   = ${common_stm32f1.extra_scripts}
279
-  buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
280
-build_flags     = ${common_stm32f1.build_flags}
281
-  -DMCU_STM32F103VE -DSS_TIMER=4
282
-debug_tool      = jlink
283
-upload_protocol = jlink
262
+extends              = STM32F1_maple
263
+board                = genericSTM32F103VE
264
+board_build.address  = 0x08007000
265
+board_build.rename   = Robin_e3p.bin
266
+board_build.ldscript = mks_robin_e3p.ld
267
+build_flags          = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4
268
+debug_tool           = jlink
269
+upload_protocol      = jlink
284 270
 
285 271
 #
286 272
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
287 273
 #
288 274
 [env:mks_robin_lite_maple]
289
-extends       = common_stm32f1
290
-board         = genericSTM32F103RC
291
-extra_scripts = ${common_stm32f1.extra_scripts}
292
-  buildroot/share/PlatformIO/scripts/mks_robin_lite.py
275
+extends              = STM32F1_maple
276
+board                = genericSTM32F103RC
277
+board_build.address  = 0x08005000
278
+board_build.rename   = mksLite.bin
279
+board_build.ldscript = mks_robin_lite.ld
293 280
 
294 281
 #
295 282
 # MKS ROBIN LITE3 (STM32F103RCT6)
296 283
 #
297 284
 [env:mks_robin_lite3_maple]
298
-extends       = common_stm32f1
299
-board         = genericSTM32F103RC
300
-extra_scripts = ${common_stm32f1.extra_scripts}
301
-  buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
285
+extends              = STM32F1_maple
286
+board                = genericSTM32F103RC
287
+board_build.address  = 0x08005000
288
+board_build.rename   = mksLite3.bin
289
+board_build.ldscript = mks_robin_lite.ld
302 290
 
303 291
 #
304 292
 # JGAurora A5S A1 (STM32F103ZET6)
305 293
 #
306 294
 [env:jgaurora_a5s_a1_maple]
307
-extends       = common_stm32f1
308
-board         = genericSTM32F103ZE
295
+extends              = STM32F1_maple
296
+board                = genericSTM32F103ZE
309 297
 board_build.address  = 0x0800A000
310 298
 board_build.ldscript = jgaurora_a5s_a1.ld
311
-extra_scripts = ${common_stm32f1.extra_scripts}
312
-  buildroot/share/PlatformIO/scripts/custom_board.py
313
-  buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
314
-build_flags   = ${common_stm32f1.build_flags}
315
-  -DSTM32F1xx -DSTM32_XL_DENSITY
299
+extra_scripts        = ${STM32F1_maple.extra_scripts}
300
+                       buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
301
+build_flags          = ${STM32F1_maple.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
316 302
 
317 303
 #
318 304
 # Malyan M200 (STM32F103CB)
319 305
 #
320 306
 [env:STM32F103CB_malyan_maple]
321
-extends       = common_stm32f1
322
-board         = marlin_malyanM200
323
-build_flags   = ${common_stm32f1.build_flags}
324
-  -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
325
-  -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
326
-lib_ignore    = ${common_stm32f1.lib_ignore}
327
-  SoftwareSerialM
307
+extends     = STM32F1_maple
308
+board       = marlin_malyanM200
309
+build_flags = ${STM32F1_maple.build_flags}
310
+              -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
311
+              -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
312
+lib_ignore  = ${STM32F1_maple.lib_ignore}
313
+              SoftwareSerialM
328 314
 
329 315
 #
330 316
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
331 317
 #
332 318
 [env:chitu_f103_maple]
333
-extends       = common_stm32f1
334
-board         = marlin_CHITU_F103
335
-extra_scripts = ${common_stm32f1.extra_scripts}
336
-  pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
337
-  buildroot/share/PlatformIO/scripts/chitu_crypt.py
338
-build_flags   = ${common_stm32f1.build_flags}
339
-  -DSTM32F1xx -DSTM32_XL_DENSITY
340
-build_unflags = ${common_stm32f1.build_unflags}
341
-  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
319
+extends       = STM32F1_maple
320
+board         = marlin_maple_CHITU_F103
321
+extra_scripts = ${STM32F1_maple.extra_scripts}
322
+                pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
323
+                    buildroot/share/PlatformIO/scripts/chitu_crypt.py
324
+build_flags   = ${STM32F1_maple.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
325
+build_unflags = ${STM32F1_maple.build_unflags}
326
+                -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
342 327
 
343 328
 #
344 329
 # Some Chitu V5 boards have a problem with GPIO init.
345 330
 # Use this target if G28 or G29 are always failing.
346 331
 #
347 332
 [env:chitu_v5_gpio_init_maple]
348
-extends       = env:chitu_f103_maple
349
-build_flags   = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
333
+extends     = env:chitu_f103_maple
334
+build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
350 335
 
351 336
 #
352 337
 # FLYmaker FLY Mini (STM32F103RCT6)
353 338
 #
354 339
 [env:FLY_MINI_maple]
355
-extends           = common_stm32f1
356
-board             = genericSTM32F103RC
340
+extends              = STM32F1_maple
341
+board                = genericSTM32F103RC
357 342
 board_build.address  = 0x08005000
358 343
 board_build.ldscript = fly_mini.ld
359
-extra_scripts     = ${common_stm32f1.extra_scripts}
360
-  buildroot/share/PlatformIO/scripts/custom_board.py
361
-build_flags       = ${common_stm32f1.build_flags}
362
- -DDEBUG_LEVEL=0 -DSS_TIMER=4
344
+build_flags          = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
363 345
 
364 346
 #
365 347
 # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
@@ -369,18 +351,15 @@ build_flags       = ${common_stm32f1.build_flags}
369 351
 #  STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
370 352
 #
371 353
 [ZONESTAR_ZM3E_maple]
372
-extends                   = common_stm32f1
354
+extends                   = STM32F1_maple
373 355
 platform_packages         = tool-stm32duino
374 356
 board_build.address       = 0x08005000
375 357
 board_build.offset        = 0x5000
376 358
 board_upload.maximum_size = 237568
377
-extra_scripts             = ${common.extra_scripts}
378
-  buildroot/share/PlatformIO/scripts/custom_board.py
379
-  buildroot/share/PlatformIO/scripts/offset_and_rename.py
380
-build_flags               = ${common_stm32f1.build_flags}
381
-  -D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
382
-lib_deps                  = ${common_stm32f1.lib_deps}
383
-  USBComposite for STM32F1@0.91
359
+build_flags               = ${STM32F1_maple.build_flags}
360
+                            -D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
361
+lib_deps                  = ${STM32F1_maple.lib_deps}
362
+                            USBComposite for STM32F1@0.91
384 363
 lib_ignore                = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
385 364
 
386 365
 [env:STM32F103RC_ZM3E2_USB_maple]
@@ -395,26 +374,24 @@ board_build.ldscript = ZONESTAR_ZM3E_256K.ld
395 374
 build_flags          = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
396 375
 
397 376
 [env:STM32F103VE_ZM3E4V2_USB_maple]
398
-extends              = ZONESTAR_ZM3E_maple
399
-board                = genericSTM32F103VE
400
-board_build.ldscript = ZONESTAR_ZM3E_512K.ld
401
-build_flags          = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
377
+extends                   = ZONESTAR_ZM3E_maple
378
+board                     = genericSTM32F103VE
379
+board_build.ldscript      = ZONESTAR_ZM3E_512K.ld
380
+build_flags               = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
402 381
 board_upload.maximum_size = 499712
403 382
 
404 383
 #
405 384
 # ERYONE ERY32 Mini (STM32F103VET6)
406 385
 #
407 386
 [env:ERYONE_ERY32_MINI_maple]
408
-extends              = common_stm32f1
387
+extends              = STM32F1_maple
409 388
 board                = genericSTM32F103VE
410
-build_flags          = ${common_stm32f1.build_flags}
411
-  -ffunction-sections -fdata-sections -nostdlib -MMD
412
-  -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
413
-  -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
414
-  -DSS_TIMER=4
389
+build_flags          = ${STM32F1_maple.build_flags}
390
+                       -ffunction-sections -fdata-sections -nostdlib -MMD
391
+                       -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
392
+                       -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
393
+                       -DSS_TIMER=4
415 394
 board_build.variant  = MARLIN_F103Vx
416 395
 board_build.ldscript = eryone_ery32_mini.ld
417 396
 board_build.address  = 0x08004000
418
-build_unflags        = ${common_stm32f1.build_unflags}
419
-extra_scripts        = ${common_stm32f1.extra_scripts}
420
-  buildroot/share/PlatformIO/scripts/custom_board.py
397
+build_unflags        = ${STM32F1_maple.build_unflags}

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