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 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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.3.zip
  31. Adafruit NeoPixel@1.1.3
  32. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  33. https://github.com/ameyer/Arduino-L6470/archive/3cd0993.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. #
  56. # ATmega1280
  57. #
  58. [env:megaatmega1280]
  59. platform = atmelavr
  60. framework = arduino
  61. board = megaatmega1280
  62. build_flags = ${common.build_flags}
  63. board_f_cpu = 16000000L
  64. lib_deps = ${common.lib_deps}
  65. src_filter = ${common.default_src_filter}
  66. #
  67. # Due (Atmel SAM3X8E ARM Cortex-M3)
  68. #
  69. # - RAMPS4DUE
  70. # - RADDS
  71. #
  72. [env:DUE]
  73. platform = atmelsam
  74. framework = arduino
  75. board = due
  76. build_flags = ${common.build_flags}
  77. lib_deps = ${common.lib_deps}
  78. lib_ignore = c1921b4
  79. src_filter = ${common.default_src_filter}
  80. [env:DUE_USB]
  81. platform = atmelsam
  82. framework = arduino
  83. board = dueUSB
  84. build_flags = ${common.build_flags}
  85. lib_deps = ${common.lib_deps}
  86. lib_ignore = c1921b4
  87. src_filter = ${common.default_src_filter}
  88. #
  89. # NXP LPC1768 ARM Cortex-M3
  90. #
  91. [env:LPC1768]
  92. platform = nxplpc
  93. board = lpc1768
  94. board_f_cpu = 100000000L
  95. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  96. ${common.build_flags}
  97. -DU8G_HAL_LINKS
  98. src_build_flags = -Wall
  99. build_unflags = -Wall
  100. lib_ldf_mode = off
  101. lib_extra_dirs = frameworks
  102. lib_deps = CMSIS-LPC1768
  103. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  104. TMC2130Stepper@>=2.1.1
  105. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  106. src_filter = ${common.default_src_filter}
  107. #
  108. # LPC1768 (for debugging and development)
  109. #
  110. [env:LPC1768_debug_and_upload]
  111. # Segger JLink
  112. platform = nxplpc
  113. #framework = mbed
  114. board = lpc1768
  115. board_f_cpu = 100000000L
  116. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  117. ${common.build_flags}
  118. -DU8G_HAL_LINKS
  119. lib_ldf_mode = off
  120. lib_extra_dirs = frameworks
  121. lib_deps = CMSIS-LPC1768
  122. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  123. src_filter = ${common.default_src_filter}
  124. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  125. debug_tool = custom
  126. debug_server =
  127. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  128. -select
  129. USB
  130. -port
  131. 2331
  132. -device
  133. LPC1768
  134. -if
  135. JTAG
  136. -speed
  137. auto
  138. -noir
  139. #
  140. # Melzi and clones (ATmega1284p)
  141. #
  142. [env:melzi]
  143. platform = atmelavr
  144. framework = arduino
  145. board = sanguino_atmega1284p
  146. build_flags = ${common.build_flags}
  147. upload_speed = 57600
  148. lib_deps = ${common.lib_deps}
  149. src_filter = ${common.default_src_filter}
  150. #
  151. # Melzi and clones (Optiboot bootloader)
  152. #
  153. [env:melzi_optiboot]
  154. platform = atmelavr
  155. framework = arduino
  156. board = sanguino_atmega1284p
  157. build_flags = ${common.build_flags}
  158. upload_speed = 115200
  159. lib_deps = ${common.lib_deps}
  160. src_filter = ${common.default_src_filter}
  161. #
  162. # RAMBo
  163. #
  164. [env:rambo]
  165. platform = atmelavr
  166. framework = arduino
  167. board = reprap_rambo
  168. build_flags = ${common.build_flags}
  169. board_f_cpu = 16000000L
  170. lib_deps = ${common.lib_deps}
  171. src_filter = ${common.default_src_filter}
  172. #
  173. # Sanguinololu (ATmega644p)
  174. #
  175. [env:sanguino_atmega644p]
  176. platform = atmelavr
  177. framework = arduino
  178. board = sanguino_atmega644p
  179. build_flags = ${common.build_flags}
  180. lib_deps = ${common.lib_deps}
  181. src_filter = ${common.default_src_filter}
  182. #
  183. # Sanguinololu (ATmega1284p)
  184. #
  185. [env:sanguino_atmega1284p]
  186. platform = atmelavr
  187. framework = arduino
  188. board = sanguino_atmega1284p
  189. build_flags = ${common.build_flags}
  190. lib_deps = ${common.lib_deps}
  191. src_filter = ${common.default_src_filter}
  192. [env:STM32F1]
  193. platform = ststm32
  194. framework = arduino
  195. board = genericSTM32F103RE
  196. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  197. ${common.build_flags}
  198. lib_deps = ${common.lib_deps}
  199. src_filter = ${common.default_src_filter}
  200. #
  201. # Teensy++ 2.0
  202. #
  203. # - PrintrBoard
  204. # - PrintrBoard Rev.F
  205. # - Brainwave Pro
  206. #
  207. [env:teensy20]
  208. platform = teensy
  209. framework = arduino
  210. board = teensy20pp
  211. build_flags = ${common.build_flags}
  212. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  213. lib_deps = ${common.lib_deps}
  214. lib_ldf_mode = deep+
  215. src_filter = ${common.default_src_filter}
  216. #
  217. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  218. #
  219. [env:teensy35]
  220. platform = teensy
  221. framework = arduino
  222. board = teensy35
  223. build_flags = ${common.build_flags}
  224. lib_deps = ${common.lib_deps}
  225. lib_ignore = Adafruit NeoPixel
  226. src_filter = ${common.default_src_filter}