Преглед изворни кода

🔨 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
         #- STM32F103RC_btt_maple
59
         #- STM32F103RC_btt_maple
60
         - STM32F103RC_btt_USB_maple
60
         - STM32F103RC_btt_USB_maple
61
         - STM32F103RC_fysetc_maple
61
         - STM32F103RC_fysetc_maple
62
-        - STM32F103RC_meeb
62
+        - STM32F103RC_meeb_maple
63
         - jgaurora_a5s_a1_maple
63
         - jgaurora_a5s_a1_maple
64
         - STM32F103VE_longer_maple
64
         - STM32F103VE_longer_maple
65
         #- mks_robin_maple
65
         #- mks_robin_maple

+ 6
- 6
Marlin/src/pins/pins.h Прегледај датотеку

492
 #elif MB(STM3R_MINI)
492
 #elif MB(STM3R_MINI)
493
   #include "stm32f1/pins_STM3R_MINI.h"          // STM32F103VE?                           env:STM32F103VE env:STM32F103RE_maple
493
   #include "stm32f1/pins_STM3R_MINI.h"          // STM32F103VE?                           env:STM32F103VE env:STM32F103RE_maple
494
 #elif MB(GTM32_PRO_VB)
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
 #elif MB(GTM32_PRO_VD)
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
 #elif MB(GTM32_MINI)
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
 #elif MB(GTM32_MINI_A30)
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
 #elif MB(GTM32_REV_B)
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
 #elif MB(MORPHEUS)
504
 #elif MB(MORPHEUS)
505
   #include "stm32f1/pins_MORPHEUS.h"            // STM32F103RE                            env:STM32F103RE env:STM32F103RE_maple
505
   #include "stm32f1/pins_MORPHEUS.h"            // STM32F103RE                            env:STM32F103RE env:STM32F103RE_maple
506
 #elif MB(CHITU3D)
506
 #elif MB(CHITU3D)
556
 #elif MB(LONGER3D_LK)
556
 #elif MB(LONGER3D_LK)
557
   #include "stm32f1/pins_LONGER3D_LK.h"         // STM32F1                                env:STM32F103VE_longer env:STM32F103VE_longer_maple
557
   #include "stm32f1/pins_LONGER3D_LK.h"         // STM32F1                                env:STM32F103VE_longer env:STM32F103VE_longer_maple
558
 #elif MB(CCROBOT_MEEB_3DP)
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
 #elif MB(CHITU3D_V5)
560
 #elif MB(CHITU3D_V5)
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
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
 #elif MB(CHITU3D_V6)
562
 #elif MB(CHITU3D_V6)

buildroot/share/PlatformIO/boards/marlin_CHITU_F103.json → buildroot/share/PlatformIO/boards/marlin_maple_CHITU_F103.json Прегледај датотеку

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

buildroot/share/PlatformIO/boards/marlin_MEEB_3DP.json → buildroot/share/PlatformIO/boards/marlin_maple_MEEB_3DP.json Прегледај датотеку

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

+ 0
- 18
buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld Прегледај датотеку

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
 import pioutil
4
 import pioutil
5
 if pioutil.is_pio_build():
5
 if pioutil.is_pio_build():
6
 
6
 
7
-	try:
8
-		import configparser
9
-	except ImportError:
10
-		import ConfigParser as configparser
11
-
12
 	import os
7
 	import os
13
 	Import("env", "projenv")
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
 	flash_size = 0
10
 	flash_size = 0
31
 	vect_tab_addr = 0
11
 	vect_tab_addr = 0
32
 
12
 
38
 
18
 
39
 	print('Use the {0:s} address as the marlin app entry point.'.format(vect_tab_addr))
19
 	print('Use the {0:s} address as the marlin app entry point.'.format(vect_tab_addr))
40
 	print('Use the {0:d}KB flash version of stm32f103rct6 chip.'.format(flash_size))
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
-#
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
-#
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
-#
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
-#
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
-#
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
-#
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
-#
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
-#
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
-#
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
-#
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
 [env:STM32F103RC_btt_512K_USB_maple]
48
 [env:STM32F103RC_btt_512K_USB_maple]
49
 # Renamed to STM32F103RE_btt_USB_maple
49
 # Renamed to STM32F103RE_btt_USB_maple
50
 extends = renamed
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
 #
22
 #
23
 # HAL/STM32F1 Common Environment values
23
 # HAL/STM32F1 Common Environment values
24
 #
24
 #
25
-[common_stm32f1]
25
+[STM32F1_maple]
26
 platform          = ststm32@~12.1
26
 platform          = ststm32@~12.1
27
 board_build.core  = maple
27
 board_build.core  = maple
28
 build_flags       = !python Marlin/src/HAL/STM32F1/build_flags.py
28
 build_flags       = !python Marlin/src/HAL/STM32F1/build_flags.py
34
   SoftwareSerialM
34
   SoftwareSerialM
35
 platform_packages = tool-stm32duino
35
 platform_packages = tool-stm32duino
36
 extra_scripts     = ${common.extra_scripts}
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
 # MEEB_3DP (STM32F103RCT6 with 512K)
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
 custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
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
 # FYSETC STM32F103RC
83
 # FYSETC STM32F103RC
74
 #
84
 #
75
 [env:STM32F103RC_fysetc_maple]
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
 # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
95
 # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
88
 #   STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
98
 #   STM32F103RC_btt_USB_maple ......... RCT6 with 256K (USB mass storage)
89
 #
99
 #
90
 [env:STM32F103RC_btt_maple]
100
 [env:STM32F103RC_btt_maple]
91
-extends              = common_STM32F103RC_maple
101
+extends              = env:STM32F103RC_maple
92
 board_build.address  = 0x08007000
102
 board_build.address  = 0x08007000
93
 board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
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
 monitor_speed        = 115200
105
 monitor_speed        = 115200
99
 
106
 
100
 [env:STM32F103RC_btt_USB_maple]
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
 # Creality (STM32F103RET6)
114
 # Creality (STM32F103RET6)
124
 #
115
 #
125
 [env:STM32F103RE_creality_maple]
116
 [env:STM32F103RE_creality_maple]
126
 extends              = env:STM32F103RE_maple
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
 board_build.address  = 0x08007000
119
 board_build.address  = 0x08007000
129
 board_build.ldscript = creality.ld
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
 debug_tool           = jlink
123
 debug_tool           = jlink
134
 upload_protocol      = jlink
124
 upload_protocol      = jlink
135
 
125
 
138
 #
128
 #
139
 [env:STM32F103RC_creality_maple]
129
 [env:STM32F103RC_creality_maple]
140
 extends              = env:STM32F103RC_maple
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
 board_build.address  = 0x08007000
132
 board_build.address  = 0x08007000
143
 board_build.ldscript = creality.ld
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
 debug_tool           = jlink
136
 debug_tool           = jlink
148
 upload_protocol      = jlink
137
 upload_protocol      = jlink
149
 
138
 
162
 #   STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
151
 #   STM32F103RE_btt_USB_maple ......... RET6 (USB mass storage)
163
 #
152
 #
164
 [env:STM32F103RE_btt_maple]
153
 [env:STM32F103RE_btt_maple]
165
-extends           = env:STM32F103RE_maple
154
+extends              = env:STM32F103RE_maple
166
 board_build.address  = 0x08007000
155
 board_build.address  = 0x08007000
167
 board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
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
 [env:STM32F103RE_btt_USB_maple]
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
 # Geeetech GTM32 (STM32F103VET6)
168
 # Geeetech GTM32 (STM32F103VET6)
182
 #
169
 #
183
-[env:STM32F103VE_GTM32]
184
-extends         = common_stm32f1
170
+[env:STM32F103VE_GTM32_maple]
171
+extends         = STM32F1_maple
185
 board           = genericSTM32F103VE
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
 upload_protocol = serial
178
 upload_protocol = serial
192
 
179
 
193
 #
180
 #
194
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
181
 # Longer 3D board in Alfawise U20 (STM32F103VET6)
195
 #
182
 #
196
 [env:STM32F103VE_longer_maple]
183
 [env:STM32F103VE_longer_maple]
197
-extends       = common_stm32f1
198
-board         = genericSTM32F103VE
184
+extends              = STM32F1_maple
185
+board                = genericSTM32F103VE
199
 board_build.address  = 0x08010000
186
 board_build.address  = 0x08010000
200
 board_build.rename   = project.bin
187
 board_build.rename   = project.bin
201
 board_build.ldscript = STM32F103VE_longer.ld
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
 # MKS Robin Mini (STM32F103VET6)
195
 # MKS Robin Mini (STM32F103VET6)
211
 #
196
 #
212
 [env:mks_robin_mini_maple]
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
 # MKS Robin Nano (STM32F103VET6)
206
 # MKS Robin Nano (STM32F103VET6)
222
 #
207
 #
223
 [env:mks_robin_nano35_maple]
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
 # MKS Robin (STM32F103ZET6)
219
 # MKS Robin (STM32F103ZET6)
235
 #
220
 #
236
 [env:mks_robin_maple]
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
 # MKS Robin Pro (STM32F103ZET6)
230
 # MKS Robin Pro (STM32F103ZET6)
246
 #
231
 #
247
 [env:mks_robin_pro_maple]
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
 # TRIGORILLA PRO (STM32F103ZET6)
239
 # TRIGORILLA PRO (STM32F103ZET6)
254
 #
240
 #
255
 [env:trigorilla_pro_maple]
241
 [env:trigorilla_pro_maple]
256
 extends       = env:mks_robin_maple
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
 # MKS Robin E3D (STM32F103RCT6) and
246
 # MKS Robin E3D (STM32F103RCT6) and
261
 # MKS Robin E3 with TMC2209
247
 # MKS Robin E3 with TMC2209
262
 #
248
 #
263
 [env:mks_robin_e3_maple]
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
 # MKS Robin E3p (STM32F103VET6)
258
 # MKS Robin E3p (STM32F103VET6)
273
 #  - LVGL UI
259
 #  - LVGL UI
274
 #
260
 #
275
 [env:mks_robin_e3p_maple]
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
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
272
 # MKS Robin Lite/Lite2 (STM32F103RCT6)
287
 #
273
 #
288
 [env:mks_robin_lite_maple]
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
 # MKS ROBIN LITE3 (STM32F103RCT6)
282
 # MKS ROBIN LITE3 (STM32F103RCT6)
296
 #
283
 #
297
 [env:mks_robin_lite3_maple]
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
 # JGAurora A5S A1 (STM32F103ZET6)
292
 # JGAurora A5S A1 (STM32F103ZET6)
305
 #
293
 #
306
 [env:jgaurora_a5s_a1_maple]
294
 [env:jgaurora_a5s_a1_maple]
307
-extends       = common_stm32f1
308
-board         = genericSTM32F103ZE
295
+extends              = STM32F1_maple
296
+board                = genericSTM32F103ZE
309
 board_build.address  = 0x0800A000
297
 board_build.address  = 0x0800A000
310
 board_build.ldscript = jgaurora_a5s_a1.ld
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
 # Malyan M200 (STM32F103CB)
304
 # Malyan M200 (STM32F103CB)
319
 #
305
 #
320
 [env:STM32F103CB_malyan_maple]
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
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
316
 # Chitu boards like Tronxy X5s (STM32F103ZET6)
331
 #
317
 #
332
 [env:chitu_f103_maple]
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
 # Some Chitu V5 boards have a problem with GPIO init.
329
 # Some Chitu V5 boards have a problem with GPIO init.
345
 # Use this target if G28 or G29 are always failing.
330
 # Use this target if G28 or G29 are always failing.
346
 #
331
 #
347
 [env:chitu_v5_gpio_init_maple]
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
 # FLYmaker FLY Mini (STM32F103RCT6)
337
 # FLYmaker FLY Mini (STM32F103RCT6)
353
 #
338
 #
354
 [env:FLY_MINI_maple]
339
 [env:FLY_MINI_maple]
355
-extends           = common_stm32f1
356
-board             = genericSTM32F103RC
340
+extends              = STM32F1_maple
341
+board                = genericSTM32F103RC
357
 board_build.address  = 0x08005000
342
 board_build.address  = 0x08005000
358
 board_build.ldscript = fly_mini.ld
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
 # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
347
 # Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
369
 #  STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
351
 #  STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
370
 #
352
 #
371
 [ZONESTAR_ZM3E_maple]
353
 [ZONESTAR_ZM3E_maple]
372
-extends                   = common_stm32f1
354
+extends                   = STM32F1_maple
373
 platform_packages         = tool-stm32duino
355
 platform_packages         = tool-stm32duino
374
 board_build.address       = 0x08005000
356
 board_build.address       = 0x08005000
375
 board_build.offset        = 0x5000
357
 board_build.offset        = 0x5000
376
 board_upload.maximum_size = 237568
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
 lib_ignore                = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
363
 lib_ignore                = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
385
 
364
 
386
 [env:STM32F103RC_ZM3E2_USB_maple]
365
 [env:STM32F103RC_ZM3E2_USB_maple]
395
 build_flags          = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
374
 build_flags          = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
396
 
375
 
397
 [env:STM32F103VE_ZM3E4V2_USB_maple]
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
 board_upload.maximum_size = 499712
381
 board_upload.maximum_size = 499712
403
 
382
 
404
 #
383
 #
405
 # ERYONE ERY32 Mini (STM32F103VET6)
384
 # ERYONE ERY32 Mini (STM32F103VET6)
406
 #
385
 #
407
 [env:ERYONE_ERY32_MINI_maple]
386
 [env:ERYONE_ERY32_MINI_maple]
408
-extends              = common_stm32f1
387
+extends              = STM32F1_maple
409
 board                = genericSTM32F103VE
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
 board_build.variant  = MARLIN_F103Vx
394
 board_build.variant  = MARLIN_F103Vx
416
 board_build.ldscript = eryone_ery32_mini.ld
395
 board_build.ldscript = eryone_ery32_mini.ld
417
 board_build.address  = 0x08004000
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}

Loading…
Откажи
Сачувај