My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

platformio.ini 8.5KB

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