My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

platformio.ini 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. env_default = megaatmega2560
  21. [common]
  22. default_src_filter = +<src/*> -<src/config>
  23. build_flags = -fmax-errors=5
  24. -g
  25. -ggdb
  26. lib_deps =
  27. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  28. LiquidCrystal_I2C@1.1.2
  29. TMC2130Stepper
  30. https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
  31. Adafruit NeoPixel@1.1.3
  32. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  33. https://github.com/ameyer/Arduino-L6470/archive/0c5e5de.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_f_cpu = 16000000L
  53. lib_deps = ${common.lib_deps}
  54. src_filter = ${common.default_src_filter}
  55. monitor_baud = 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_f_cpu = 16000000L
  65. lib_deps = ${common.lib_deps}
  66. src_filter = ${common.default_src_filter}
  67. monitor_baud = 250000
  68. #
  69. # Due (Atmel SAM3X8E ARM Cortex-M3)
  70. #
  71. # - RAMPS4DUE
  72. # - RADDS
  73. #
  74. [env:DUE]
  75. platform = atmelsam
  76. framework = arduino
  77. board = due
  78. build_flags = ${common.build_flags}
  79. lib_deps = ${common.lib_deps}
  80. lib_ignore = c1921b4
  81. src_filter = ${common.default_src_filter}
  82. monitor_baud = 250000
  83. [env:DUE_USB]
  84. platform = atmelsam
  85. framework = arduino
  86. board = dueUSB
  87. build_flags = ${common.build_flags}
  88. lib_deps = ${common.lib_deps}
  89. lib_ignore = c1921b4
  90. src_filter = ${common.default_src_filter}
  91. monitor_baud = 250000
  92. [env:DUE_debug]
  93. # Used when WATCHDOG_RESET_MANUAL is enabled
  94. platform = atmelsam
  95. framework = arduino
  96. board = due
  97. build_flags = ${common.build_flags}
  98. -funwind-tables
  99. -mpoke-function-name
  100. lib_deps = ${common.lib_deps}
  101. lib_ignore = c1921b4
  102. src_filter = ${common.default_src_filter}
  103. monitor_baud = 250000
  104. #
  105. # NXP LPC1768 ARM Cortex-M3
  106. #
  107. [env:LPC1768]
  108. platform = nxplpc
  109. board = lpc1768
  110. board_f_cpu = 100000000L
  111. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  112. ${common.build_flags}
  113. -DU8G_HAL_LINKS
  114. src_build_flags = -Wall
  115. build_unflags = -Wall
  116. lib_ldf_mode = off
  117. lib_extra_dirs = frameworks
  118. lib_deps = CMSIS-LPC1768
  119. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  120. TMC2130Stepper@>=2.2.1
  121. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  122. src_filter = ${common.default_src_filter}
  123. monitor_baud = 250000
  124. #
  125. # LPC1768 (for debugging and development)
  126. #
  127. [env:LPC1768_debug_and_upload]
  128. # Segger JLink
  129. platform = nxplpc
  130. #framework = mbed
  131. board = lpc1768
  132. board_f_cpu = 100000000L
  133. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  134. ${common.build_flags}
  135. -DU8G_HAL_LINKS
  136. lib_ldf_mode = off
  137. lib_extra_dirs = frameworks
  138. lib_deps = CMSIS-LPC1768
  139. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  140. src_filter = ${common.default_src_filter}
  141. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  142. monitor_baud = 250000
  143. debug_tool = custom
  144. debug_server =
  145. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  146. -select
  147. USB
  148. -port
  149. 2331
  150. -device
  151. LPC1768
  152. -if
  153. JTAG
  154. -speed
  155. auto
  156. -noir
  157. #
  158. # Melzi and clones (ATmega1284p)
  159. #
  160. [env:melzi]
  161. platform = atmelavr
  162. framework = arduino
  163. board = sanguino_atmega1284p
  164. build_flags = ${common.build_flags}
  165. upload_speed = 57600
  166. lib_deps = ${common.lib_deps}
  167. src_filter = ${common.default_src_filter}
  168. monitor_baud = 250000
  169. #
  170. # Melzi and clones (Optiboot bootloader)
  171. #
  172. [env:melzi_optiboot]
  173. platform = atmelavr
  174. framework = arduino
  175. board = sanguino_atmega1284p
  176. build_flags = ${common.build_flags}
  177. upload_speed = 115200
  178. lib_deps = ${common.lib_deps}
  179. src_filter = ${common.default_src_filter}
  180. monitor_baud = 250000
  181. #
  182. # RAMBo
  183. #
  184. [env:rambo]
  185. platform = atmelavr
  186. framework = arduino
  187. board = reprap_rambo
  188. build_flags = ${common.build_flags}
  189. board_f_cpu = 16000000L
  190. lib_deps = ${common.lib_deps}
  191. src_filter = ${common.default_src_filter}
  192. monitor_baud = 250000
  193. #
  194. # Sanguinololu (ATmega644p)
  195. #
  196. [env:sanguino_atmega644p]
  197. platform = atmelavr
  198. framework = arduino
  199. board = sanguino_atmega644p
  200. build_flags = ${common.build_flags}
  201. lib_deps = ${common.lib_deps}
  202. src_filter = ${common.default_src_filter}
  203. monitor_baud = 250000
  204. #
  205. # Sanguinololu (ATmega1284p)
  206. #
  207. [env:sanguino_atmega1284p]
  208. platform = atmelavr
  209. framework = arduino
  210. board = sanguino_atmega1284p
  211. build_flags = ${common.build_flags}
  212. lib_deps = ${common.lib_deps}
  213. src_filter = ${common.default_src_filter}
  214. monitor_baud = 250000
  215. [env:STM32F1]
  216. platform = ststm32
  217. framework = arduino
  218. board = genericSTM32F103RE
  219. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  220. ${common.build_flags}
  221. lib_deps = ${common.lib_deps}
  222. src_filter = ${common.default_src_filter}
  223. monitor_baud = 250000
  224. #
  225. # Teensy++ 2.0
  226. #
  227. # - PrintrBoard
  228. # - PrintrBoard Rev.F
  229. # - Brainwave Pro
  230. #
  231. [env:teensy20]
  232. platform = teensy
  233. framework = arduino
  234. board = teensy20pp
  235. build_flags = ${common.build_flags}
  236. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  237. lib_deps = ${common.lib_deps}
  238. lib_ldf_mode = deep+
  239. src_filter = ${common.default_src_filter}
  240. monitor_baud = 250000
  241. #
  242. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  243. #
  244. [env:teensy35]
  245. platform = teensy
  246. framework = arduino
  247. board = teensy35
  248. build_flags = ${common.build_flags}
  249. lib_deps = ${common.lib_deps}
  250. lib_ignore = Adafruit NeoPixel
  251. src_filter = ${common.default_src_filter}
  252. monitor_baud = 250000