My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

stm32f1.ini 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. board_build.ldscript = ldscript.ld
  42. extra_scripts = ${common_stm32.extra_scripts}
  43. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  44. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  45. #
  46. # STM32F103RE
  47. #
  48. [env:STM32F103RE]
  49. platform = ${common_stm32.platform}
  50. extends = common_stm32
  51. board = genericSTM32F103RE
  52. monitor_speed = 115200
  53. #
  54. # STM32F103VE
  55. #
  56. [env:STM32F103VE]
  57. platform = ${common_stm32.platform}
  58. extends = common_stm32
  59. board = genericSTM32F103VE
  60. monitor_speed = 115200
  61. #
  62. # STM32F103ZE
  63. #
  64. [env:STM32F103ZE]
  65. platform = ${common_stm32.platform}
  66. extends = common_stm32
  67. board = genericSTM32F103ZE
  68. monitor_speed = 115200
  69. #
  70. # BigTree SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
  71. #
  72. # STM32F103RC_btt ............. RCT6 with 256K
  73. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  74. #
  75. [env:STM32F103RC_btt]
  76. platform = ${common_stm32.platform}
  77. extends = common_STM32F103RC
  78. build_flags = ${common_stm32.build_flags} -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
  79. board_build.offset = 0x7000
  80. board_upload.offset_address = 0x08007000
  81. [env:STM32F103RC_btt_USB]
  82. extends = env:STM32F103RC_btt
  83. platform = ${common_stm32.platform}
  84. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip
  85. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  86. build_flags = ${env:STM32F103RC_btt.build_flags} ${env:stm32_flash_drive.build_flags}
  87. -DUSBCON
  88. -DUSE_USBHOST_HS
  89. -DUSBD_IRQ_PRIO=5
  90. -DUSBD_IRQ_SUBPRIO=6
  91. -DUSE_USB_HS_IN_FS
  92. -DUSBD_USE_CDC_MSC
  93. #
  94. # MKS Robin (STM32F103ZET6)
  95. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  96. #
  97. [env:mks_robin]
  98. platform = ${common_stm32.platform}
  99. extends = common_stm32
  100. board = genericSTM32F103ZE
  101. board_build.core = stm32
  102. board_build.variant = MARLIN_F103Zx
  103. board_build.ldscript = ldscript.ld
  104. board_build.offset = 0x7000
  105. board_build.encrypt = Robin.bin
  106. build_flags = ${common_stm32.build_flags}
  107. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  108. build_unflags = ${common_stm32.build_unflags}
  109. -DUSBCON -DUSBD_USE_CDC
  110. extra_scripts = ${common_stm32.extra_scripts}
  111. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  112. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  113. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  114. lib_deps =
  115. #
  116. # MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
  117. #
  118. [env:mks_robin_e3]
  119. platform = ${common_stm32.platform}
  120. extends = common_STM32F103RC
  121. build_flags = ${common_stm32.build_flags}
  122. -DDEBUG_LEVEL=0 -DTIMER_SERVO=TIM5
  123. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  124. monitor_speed = 115200
  125. board_build.offset = 0x5000
  126. board_build.encrypt = Robin_e3.bin
  127. board_upload.offset_address = 0x08005000
  128. debug_tool = stlink
  129. extra_scripts = ${env:STM32F103RC.extra_scripts}
  130. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  131. #
  132. # Creality (STM32F103RET6)
  133. #
  134. [env:STM32F103RET6_creality]
  135. platform = ${common_stm32.platform}
  136. extends = common_stm32
  137. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  138. board = genericSTM32F103RE
  139. monitor_speed = 115200
  140. board_build.core = stm32
  141. board_build.variant = MARLIN_F103Rx
  142. board_build.offset = 0x7000
  143. board_build.ldscript = ldscript.ld
  144. board_upload.offset_address = 0x08007000
  145. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  146. extra_scripts = ${common.extra_scripts}
  147. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  148. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  149. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  150. debug_tool = jlink
  151. upload_protocol = jlink
  152. #
  153. # BigTree SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
  154. #
  155. # STM32F103RE_btt ............. RET6
  156. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  157. #
  158. [env:STM32F103RE_btt]
  159. platform = ${common_stm32.platform}
  160. extends = common_stm32
  161. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  162. board = genericSTM32F103RE
  163. monitor_speed = 115200
  164. board_build.core = stm32
  165. board_build.variant = MARLIN_F103Rx
  166. board_build.offset = 0x7000
  167. board_build.ldscript = ldscript.ld
  168. board_upload.offset_address = 0x08007000
  169. build_unflags = ${common_stm32.build_unflags}
  170. extra_scripts = ${common.extra_scripts}
  171. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  172. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  173. debug_tool = jlink
  174. upload_protocol = jlink
  175. [env:STM32F103RE_btt_USB]
  176. extends = env:STM32F103RE_btt
  177. platform = ${common_stm32.platform}
  178. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip
  179. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  180. build_flags = ${env:STM32F103RE_btt.build_flags} ${env:stm32_flash_drive.build_flags}
  181. -DUSBCON
  182. -DUSE_USBHOST_HS
  183. -DUSBD_IRQ_PRIO=5
  184. -DUSBD_IRQ_SUBPRIO=6
  185. -DUSE_USB_HS_IN_FS
  186. -DUSBD_USE_CDC_MSC
  187. #
  188. # FLSUN QQS Pro (STM32F103VET6)
  189. # board Hispeedv1
  190. #
  191. [env:flsun_hispeedv1]
  192. platform = ${common_stm32.platform}
  193. extends = common_stm32
  194. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  195. board = genericSTM32F103VE
  196. board_build.core = stm32
  197. board_build.variant = MARLIN_F103Vx
  198. board_build.ldscript = ldscript.ld
  199. board_build.offset = 0x7000
  200. board_build.encrypt = Robin_mini.bin
  201. board_upload.offset_address = 0x08007000
  202. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  203. extra_scripts = ${common_stm32.extra_scripts}
  204. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  205. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  206. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  207. #
  208. # MKS Robin Nano V1.2 and V2
  209. #
  210. [env:mks_robin_nano35]
  211. platform = ${common_stm32.platform}
  212. extends = common_stm32
  213. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  214. board = genericSTM32F103VE
  215. board_build.core = stm32
  216. board_build.variant = MARLIN_F103Vx
  217. board_build.ldscript = ldscript.ld
  218. board_build.offset = 0x7000
  219. board_build.encrypt = Robin_nano35.bin
  220. board_upload.offset_address = 0x08007000
  221. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  222. debug_tool = jlink
  223. upload_protocol = jlink
  224. extra_scripts = ${common_stm32.extra_scripts}
  225. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  226. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  227. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  228. #
  229. # Mingda MPX_ARM_MINI
  230. #
  231. [env:mingda_mpx_arm_mini]
  232. platform = ${common_stm32.platform}
  233. extends = common_stm32
  234. board = genericSTM32F103ZE
  235. board_build.core = stm32
  236. board_build.variant = MARLIN_F103Zx
  237. board_build.ldscript = ldscript.ld
  238. board_build.offset = 0x10000
  239. build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  240. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  241. extra_scripts = ${common_stm32.extra_scripts}
  242. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  243. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  244. #
  245. # Malyan M200 (STM32F103CB)
  246. #
  247. [env:STM32F103CB_malyan]
  248. platform = ${common_stm32.platform}
  249. extends = common_stm32
  250. board = malyanm200_f103cb
  251. build_flags = ${common_stm32.build_flags}
  252. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  253. src_filter = ${common.default_src_filter} +<src/HAL/STM32>