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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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.0.4.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. #
  93. # NXP LPC1768 ARM Cortex-M3
  94. #
  95. [env:LPC1768]
  96. platform = nxplpc
  97. board = lpc1768
  98. board_f_cpu = 100000000L
  99. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  100. ${common.build_flags}
  101. -DU8G_HAL_LINKS
  102. src_build_flags = -Wall
  103. build_unflags = -Wall
  104. lib_ldf_mode = off
  105. lib_extra_dirs = frameworks
  106. lib_deps = CMSIS-LPC1768
  107. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  108. TMC2130Stepper@>=2.2.0
  109. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  110. src_filter = ${common.default_src_filter}
  111. monitor_baud = 250000
  112. #
  113. # LPC1768 (for debugging and development)
  114. #
  115. [env:LPC1768_debug_and_upload]
  116. # Segger JLink
  117. platform = nxplpc
  118. #framework = mbed
  119. board = lpc1768
  120. board_f_cpu = 100000000L
  121. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  122. ${common.build_flags}
  123. -DU8G_HAL_LINKS
  124. lib_ldf_mode = off
  125. lib_extra_dirs = frameworks
  126. lib_deps = CMSIS-LPC1768
  127. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  128. src_filter = ${common.default_src_filter}
  129. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  130. monitor_baud = 250000
  131. debug_tool = custom
  132. debug_server =
  133. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  134. -select
  135. USB
  136. -port
  137. 2331
  138. -device
  139. LPC1768
  140. -if
  141. JTAG
  142. -speed
  143. auto
  144. -noir
  145. #
  146. # Melzi and clones (ATmega1284p)
  147. #
  148. [env:melzi]
  149. platform = atmelavr
  150. framework = arduino
  151. board = sanguino_atmega1284p
  152. build_flags = ${common.build_flags}
  153. upload_speed = 57600
  154. lib_deps = ${common.lib_deps}
  155. src_filter = ${common.default_src_filter}
  156. monitor_baud = 250000
  157. #
  158. # Melzi and clones (Optiboot bootloader)
  159. #
  160. [env:melzi_optiboot]
  161. platform = atmelavr
  162. framework = arduino
  163. board = sanguino_atmega1284p
  164. build_flags = ${common.build_flags}
  165. upload_speed = 115200
  166. lib_deps = ${common.lib_deps}
  167. src_filter = ${common.default_src_filter}
  168. monitor_baud = 250000
  169. #
  170. # RAMBo
  171. #
  172. [env:rambo]
  173. platform = atmelavr
  174. framework = arduino
  175. board = reprap_rambo
  176. build_flags = ${common.build_flags}
  177. board_f_cpu = 16000000L
  178. lib_deps = ${common.lib_deps}
  179. src_filter = ${common.default_src_filter}
  180. monitor_baud = 250000
  181. #
  182. # Sanguinololu (ATmega644p)
  183. #
  184. [env:sanguino_atmega644p]
  185. platform = atmelavr
  186. framework = arduino
  187. board = sanguino_atmega644p
  188. build_flags = ${common.build_flags}
  189. lib_deps = ${common.lib_deps}
  190. src_filter = ${common.default_src_filter}
  191. monitor_baud = 250000
  192. #
  193. # Sanguinololu (ATmega1284p)
  194. #
  195. [env:sanguino_atmega1284p]
  196. platform = atmelavr
  197. framework = arduino
  198. board = sanguino_atmega1284p
  199. build_flags = ${common.build_flags}
  200. lib_deps = ${common.lib_deps}
  201. src_filter = ${common.default_src_filter}
  202. monitor_baud = 250000
  203. [env:STM32F1]
  204. platform = ststm32
  205. framework = arduino
  206. board = genericSTM32F103RE
  207. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  208. ${common.build_flags}
  209. lib_deps = ${common.lib_deps}
  210. src_filter = ${common.default_src_filter}
  211. monitor_baud = 250000
  212. #
  213. # Teensy++ 2.0
  214. #
  215. # - PrintrBoard
  216. # - PrintrBoard Rev.F
  217. # - Brainwave Pro
  218. #
  219. [env:teensy20]
  220. platform = teensy
  221. framework = arduino
  222. board = teensy20pp
  223. build_flags = ${common.build_flags}
  224. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  225. lib_deps = ${common.lib_deps}
  226. lib_ldf_mode = deep+
  227. src_filter = ${common.default_src_filter}
  228. monitor_baud = 250000
  229. #
  230. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  231. #
  232. [env:teensy35]
  233. platform = teensy
  234. framework = arduino
  235. board = teensy35
  236. build_flags = ${common.build_flags}
  237. lib_deps = ${common.lib_deps}
  238. lib_ignore = Adafruit NeoPixel
  239. src_filter = ${common.default_src_filter}
  240. monitor_baud = 250000