My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

stm32f1.ini 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. #
  7. # STM32F1 Architecture with unified STM32 HAL
  8. #
  9. # Naming Example: STM32F103RCT6
  10. #
  11. # F : Foundation (sometimes High Performance F2/F4)
  12. # 1 : Cortex M1 core
  13. # 03 : Line/Features
  14. # R : 64 or 66 pins (V:100, Z:144, I:176)
  15. # C : 256KB Flash-memory (D:384KB, E:512KB, G:1024KB)
  16. # T : LQFP package
  17. # 6 : -40...85°C (7: ...105°C)
  18. #
  19. #################################
  20. #
  21. # HAL/STM32 Base Environment values
  22. #
  23. [common_stm32]
  24. platform = ststm32@~12.1
  25. build_flags = ${common.build_flags}
  26. -std=gnu++14
  27. -DUSBCON -DUSBD_USE_CDC
  28. -DTIM_IRQ_PRIO=13
  29. -DADC_RESOLUTION=12
  30. build_unflags = -std=gnu++11
  31. src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
  32. extra_scripts = ${common.extra_scripts}
  33. pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
  34. [common_STM32F103RC]
  35. platform = ${common_stm32.platform}
  36. extends = common_stm32
  37. board = genericSTM32F103RC
  38. monitor_speed = 115200
  39. board_build.core = stm32
  40. board_build.variant = MARLIN_F103Rx
  41. extra_scripts = ${common_stm32.extra_scripts}
  42. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  43. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  44. #
  45. # STM32F103RE
  46. #
  47. [env:STM32F103RE]
  48. platform = ${common_stm32.platform}
  49. extends = common_stm32
  50. board = genericSTM32F103RE
  51. monitor_speed = 115200
  52. #
  53. # STM32F103VE
  54. #
  55. [env:STM32F103VE]
  56. platform = ${common_stm32.platform}
  57. extends = common_stm32
  58. board = genericSTM32F103VE
  59. monitor_speed = 115200
  60. #
  61. # STM32F103ZE
  62. #
  63. [env:STM32F103ZE]
  64. platform = ${common_stm32.platform}
  65. extends = common_stm32
  66. board = genericSTM32F103ZE
  67. monitor_speed = 115200
  68. #
  69. # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
  70. #
  71. # STM32F103RC_btt ............. RCT6 with 256K
  72. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  73. #
  74. [env:STM32F103RC_btt]
  75. platform = ${common_stm32.platform}
  76. extends = common_STM32F103RC
  77. build_flags = ${common_stm32.build_flags} -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
  78. board_build.offset = 0x7000
  79. board_upload.offset_address = 0x08007000
  80. [env:STM32F103RC_btt_USB]
  81. extends = env:STM32F103RC_btt
  82. platform = ${common_stm32.platform}
  83. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
  84. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  85. build_flags = ${env:STM32F103RC_btt.build_flags} ${env:stm32_flash_drive.build_flags}
  86. -DUSBCON
  87. -DUSE_USB_FS
  88. -DUSBD_IRQ_PRIO=5
  89. -DUSBD_IRQ_SUBPRIO=6
  90. -DUSBD_USE_CDC_MSC
  91. #
  92. # MKS Robin (STM32F103ZET6)
  93. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  94. #
  95. [env:mks_robin]
  96. platform = ${common_stm32.platform}
  97. extends = common_stm32
  98. board = genericSTM32F103ZE
  99. board_build.core = stm32
  100. board_build.variant = MARLIN_F103Zx
  101. board_build.offset = 0x7000
  102. board_build.encrypt = Robin.bin
  103. build_flags = ${common_stm32.build_flags}
  104. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  105. build_unflags = ${common_stm32.build_unflags}
  106. -DUSBCON -DUSBD_USE_CDC
  107. extra_scripts = ${common_stm32.extra_scripts}
  108. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  109. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  110. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  111. lib_deps =
  112. #
  113. # MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
  114. #
  115. [env:mks_robin_e3]
  116. platform = ${common_stm32.platform}
  117. extends = common_STM32F103RC
  118. build_flags = ${common_stm32.build_flags}
  119. -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
  120. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  121. monitor_speed = 115200
  122. board_build.offset = 0x5000
  123. board_build.encrypt = Robin_e3.bin
  124. board_upload.offset_address = 0x08005000
  125. debug_tool = stlink
  126. extra_scripts = ${common_STM32F103RC.extra_scripts}
  127. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  128. #
  129. # Creality (STM32F103RET6)
  130. #
  131. [env:STM32F103RET6_creality]
  132. platform = ${common_stm32.platform}
  133. extends = common_stm32
  134. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  135. board = genericSTM32F103RE
  136. monitor_speed = 115200
  137. board_build.core = stm32
  138. board_build.variant = MARLIN_F103Rx
  139. board_build.offset = 0x7000
  140. board_upload.offset_address = 0x08007000
  141. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  142. extra_scripts = ${common_stm32.extra_scripts}
  143. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  144. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  145. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  146. debug_tool = jlink
  147. upload_protocol = jlink
  148. #
  149. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  150. #
  151. # STM32F103RE_btt ............. RET6
  152. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  153. #
  154. [env:STM32F103RE_btt]
  155. platform = ${common_stm32.platform}
  156. extends = common_stm32
  157. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  158. board = genericSTM32F103RE
  159. monitor_speed = 115200
  160. board_build.core = stm32
  161. board_build.variant = MARLIN_F103Rx
  162. board_build.offset = 0x7000
  163. board_upload.offset_address = 0x08007000
  164. build_unflags = ${common_stm32.build_unflags}
  165. extra_scripts = ${common_stm32.extra_scripts}
  166. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  167. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  168. debug_tool = jlink
  169. upload_protocol = jlink
  170. [env:STM32F103RE_btt_USB]
  171. extends = env:STM32F103RE_btt
  172. platform = ${common_stm32.platform}
  173. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
  174. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  175. build_flags = ${env:STM32F103RE_btt.build_flags} ${env:stm32_flash_drive.build_flags}
  176. -DUSBCON
  177. -DUSE_USB_FS
  178. -DUSBD_IRQ_PRIO=5
  179. -DUSBD_IRQ_SUBPRIO=6
  180. -DUSBD_USE_CDC_MSC
  181. #
  182. # FLSUN QQS Pro (STM32F103VET6)
  183. # board Hispeedv1
  184. #
  185. [env:flsun_hispeedv1]
  186. platform = ${common_stm32.platform}
  187. extends = common_stm32
  188. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  189. board = genericSTM32F103VE
  190. board_build.core = stm32
  191. board_build.variant = MARLIN_F103Vx
  192. board_build.offset = 0x7000
  193. board_build.encrypt = Robin_mini.bin
  194. board_upload.offset_address = 0x08007000
  195. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  196. extra_scripts = ${common_stm32.extra_scripts}
  197. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  198. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  199. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  200. #
  201. # MKS Robin Nano V1.2 and V2
  202. #
  203. [env:mks_robin_nano35]
  204. platform = ${common_stm32.platform}
  205. extends = common_stm32
  206. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  207. board = genericSTM32F103VE
  208. board_build.core = stm32
  209. board_build.variant = MARLIN_F103Vx
  210. board_build.offset = 0x7000
  211. board_build.encrypt = Robin_nano35.bin
  212. board_upload.offset_address = 0x08007000
  213. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  214. debug_tool = jlink
  215. upload_protocol = jlink
  216. extra_scripts = ${common_stm32.extra_scripts}
  217. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  218. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  219. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  220. #
  221. # Mingda MPX_ARM_MINI
  222. #
  223. [env:mingda_mpx_arm_mini]
  224. platform = ${common_stm32.platform}
  225. extends = common_stm32
  226. board = genericSTM32F103ZE
  227. board_build.core = stm32
  228. board_build.variant = MARLIN_F103Zx
  229. board_build.offset = 0x10000
  230. build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  231. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  232. extra_scripts = ${common_stm32.extra_scripts}
  233. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  234. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  235. #
  236. # Malyan M200 (STM32F103CB)
  237. #
  238. [env:STM32F103CB_malyan]
  239. platform = ${common_stm32.platform}
  240. extends = common_stm32
  241. board = malyanm200_f103cb
  242. build_flags = ${common_stm32.build_flags}
  243. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  244. src_filter = ${common.default_src_filter} +<src/HAL/STM32>