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

platformio.ini 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # http://docs.platformio.org/en/latest/projectconf.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. # targets = upload
  11. #
  12. # By default platformio build will abort after 5 errors.
  13. # Remove '-fmax-errors=5' from build_flags below to see all.
  14. #
  15. [platformio]
  16. src_dir = Marlin
  17. build_dir = .pioenvs
  18. lib_dir = .piolib
  19. libdeps_dir = .piolibdeps
  20. boards_dir = buildroot/share/PlatformIO/boards
  21. env_default = megaatmega2560
  22. [common]
  23. default_src_filter = +<src/*> -<src/config>
  24. build_flags = -fmax-errors=5
  25. -g
  26. -ggdb
  27. lib_deps =
  28. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  29. LiquidCrystal@1.3.4
  30. TMC2130Stepper
  31. https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
  32. Adafruit NeoPixel@1.1.3
  33. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  34. https://github.com/ameyer/Arduino-L6470/archive/master.zip
  35. https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
  36. #################################
  37. # #
  38. # Unique Core Architectures #
  39. # #
  40. # Add a new "env" below if no #
  41. # entry has values suitable to #
  42. # build for a given board. #
  43. # #
  44. #################################
  45. #
  46. # ATmega2560
  47. #
  48. [env:megaatmega2560]
  49. platform = atmelavr
  50. framework = arduino
  51. board = megaatmega2560
  52. build_flags = ${common.build_flags}
  53. board_build.f_cpu = 16000000L
  54. lib_deps = ${common.lib_deps}
  55. src_filter = ${common.default_src_filter}
  56. monitor_speed = 250000
  57. #
  58. # ATmega1280
  59. #
  60. [env:megaatmega1280]
  61. platform = atmelavr
  62. framework = arduino
  63. board = megaatmega1280
  64. build_flags = ${common.build_flags}
  65. board_build.f_cpu = 16000000L
  66. lib_deps = ${common.lib_deps}
  67. src_filter = ${common.default_src_filter}
  68. monitor_speed = 250000
  69. #
  70. # AT90USB1286 boards using CDC bootloader
  71. # - BRAINWAVE
  72. # - BRAINWAVE_PRO
  73. # - SAV_MKI
  74. # - TEENSYLU
  75. #
  76. [env:at90USB1286_CDC]
  77. platform = teensy
  78. framework = arduino
  79. board = at90USB1286
  80. build_flags = ${common.build_flags}
  81. lib_deps = ${common.lib_deps}
  82. lib_ldf_mode = deep+
  83. src_filter = ${common.default_src_filter}
  84. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  85. monitor_speed = 250000
  86. #
  87. # AT90USB1286 boards using DFU bootloader
  88. # - PrintrBoard
  89. # - PrintrBoard Rev.F
  90. # - ? 5DPRINT ?
  91. #
  92. [env:at90USB1286_DFU]
  93. platform = teensy
  94. framework = arduino
  95. board = at90USB1286
  96. build_flags = ${common.build_flags}
  97. lib_deps = ${common.lib_deps}
  98. lib_ldf_mode = deep+
  99. src_filter = ${common.default_src_filter}
  100. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  101. monitor_speed = 250000
  102. #
  103. # Due (Atmel SAM3X8E ARM Cortex-M3)
  104. #
  105. # - RAMPS4DUE
  106. # - RADDS
  107. #
  108. [env:DUE]
  109. platform = atmelsam
  110. framework = arduino
  111. board = due
  112. build_flags = ${common.build_flags}
  113. lib_deps = ${common.lib_deps}
  114. lib_ignore = c1921b4
  115. src_filter = ${common.default_src_filter}
  116. monitor_speed = 250000
  117. [env:DUE_USB]
  118. platform = atmelsam
  119. framework = arduino
  120. board = dueUSB
  121. build_flags = ${common.build_flags}
  122. lib_deps = ${common.lib_deps}
  123. lib_ignore = c1921b4
  124. src_filter = ${common.default_src_filter}
  125. monitor_speed = 250000
  126. [env:DUE_debug]
  127. # Used when WATCHDOG_RESET_MANUAL is enabled
  128. platform = atmelsam
  129. framework = arduino
  130. board = due
  131. build_flags = ${common.build_flags}
  132. -funwind-tables
  133. -mpoke-function-name
  134. lib_deps = ${common.lib_deps}
  135. lib_ignore = c1921b4
  136. src_filter = ${common.default_src_filter}
  137. monitor_speed = 250000
  138. #
  139. # NXP LPC1768 ARM Cortex-M3
  140. #
  141. [env:LPC1768]
  142. platform = nxplpc
  143. board = lpc1768
  144. board_build.f_cpu = 100000000L
  145. # Override default maximum RAM. LPC1768/9 do have 64k, but in 3 blocks (32K, 16K, 16K).
  146. # The first 32k block is used by default, while the others must be specifically targeted.
  147. board_upload.maximum_ram_size = 32768
  148. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py ${common.build_flags}
  149. build_unflags = -Wall
  150. lib_ldf_mode = off
  151. lib_extra_dirs = frameworks
  152. lib_deps = CMSIS-LPC1768
  153. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  154. TMC2130Stepper@>=2.2.1
  155. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  156. src_filter = ${common.default_src_filter}
  157. monitor_speed = 250000
  158. debug_tool = custom
  159. debug_server =
  160. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  161. -select USB
  162. -port 2331
  163. -device LPC1768
  164. -if JTAG
  165. -speed auto
  166. -noir
  167. #
  168. # Melzi and clones (ATmega1284p)
  169. #
  170. [env:melzi]
  171. platform = atmelavr
  172. framework = arduino
  173. board = sanguino_atmega1284p
  174. build_flags = ${common.build_flags}
  175. upload_speed = 57600
  176. lib_deps = ${common.lib_deps}
  177. src_filter = ${common.default_src_filter}
  178. monitor_speed = 250000
  179. #
  180. # Melzi and clones (Optiboot bootloader)
  181. #
  182. [env:melzi_optiboot]
  183. platform = atmelavr
  184. framework = arduino
  185. board = sanguino_atmega1284p
  186. build_flags = ${common.build_flags}
  187. upload_speed = 115200
  188. lib_deps = ${common.lib_deps}
  189. src_filter = ${common.default_src_filter}
  190. monitor_speed = 250000
  191. #
  192. # RAMBo
  193. #
  194. [env:rambo]
  195. platform = atmelavr
  196. framework = arduino
  197. board = reprap_rambo
  198. build_flags = ${common.build_flags}
  199. board_build.f_cpu = 16000000L
  200. lib_deps = ${common.lib_deps}
  201. src_filter = ${common.default_src_filter}
  202. monitor_speed = 250000
  203. #
  204. # Sanguinololu (ATmega644p)
  205. #
  206. [env:sanguino_atmega644p]
  207. platform = atmelavr
  208. framework = arduino
  209. board = sanguino_atmega644p
  210. build_flags = ${common.build_flags}
  211. lib_deps = ${common.lib_deps}
  212. src_filter = ${common.default_src_filter}
  213. monitor_speed = 250000
  214. #
  215. # Sanguinololu (ATmega1284p)
  216. #
  217. [env:sanguino_atmega1284p]
  218. platform = atmelavr
  219. framework = arduino
  220. board = sanguino_atmega1284p
  221. build_flags = ${common.build_flags}
  222. lib_deps = ${common.lib_deps}
  223. src_filter = ${common.default_src_filter}
  224. monitor_speed = 250000
  225. #
  226. # STM32F103RE
  227. #
  228. [env:STM32F1]
  229. platform = ststm32
  230. framework = arduino
  231. board = genericSTM32F103RE
  232. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  233. ${common.build_flags}
  234. lib_deps = ${common.lib_deps}
  235. lib_ignore = U8glib-HAL
  236. c1921b4
  237. libf3c
  238. lib066
  239. Adafruit NeoPixel_ID28
  240. Adafruit NeoPixel
  241. libf3e
  242. TMC26XStepper
  243. lib_ldf_mode = 1
  244. src_filter = ${common.default_src_filter}
  245. monitor_speed = 250000
  246. #
  247. # STM32F4
  248. #
  249. [env:STM32F4]
  250. platform = ststm32
  251. framework = arduino
  252. board = disco_f407vg
  253. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  254. lib_deps = ${common.lib_deps}
  255. lib_ignore = Adafruit NeoPixel, c1921b4, TMC2130Stepper
  256. src_filter = ${common.default_src_filter}
  257. monitor_speed = 250000
  258. #
  259. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  260. #
  261. [env:teensy35]
  262. platform = teensy
  263. framework = arduino
  264. board = teensy35
  265. build_flags = ${common.build_flags}
  266. lib_deps = ${common.lib_deps}
  267. lib_ignore = Adafruit NeoPixel
  268. src_filter = ${common.default_src_filter}
  269. monitor_speed = 250000
  270. [env:malyanm200]
  271. platform = ststm32
  272. framework = arduino
  273. board = malyanM200
  274. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
  275. src_filter = ${common.default_src_filter}
  276. #-<frameworks>
  277. lib_ignore =
  278. U8glib
  279. LiquidCrystal_I2C
  280. LiquidCrystal
  281. NewliquidCrystal
  282. LiquidTWI2
  283. Adafruit NeoPixel
  284. TMC2130Stepper
  285. Servo(STM32F1)
  286. TMC26XStepper
  287. U8glib-HAL
  288. TMC2208Stepper
  289. c1921b4
  290. #
  291. # Espressif ESP32
  292. #
  293. [env:esp32]
  294. platform = https://github.com/platformio/platform-espressif32.git#feature/stage
  295. board = esp32dev
  296. framework = arduino
  297. upload_port = COM3
  298. lib_ignore =
  299. LiquidCrystal_I2C
  300. LiquidCrystal
  301. NewliquidCrystal
  302. LiquidTWI2
  303. TMC26XStepper
  304. c1921b4