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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. lib_deps =
  23. U8glib-HAL
  24. LiquidCrystal_I2C@1.1.2
  25. TMC2130Stepper
  26. https://github.com/teemuatlut/TMC2208Stepper.git
  27. Adafruit NeoPixel@1.1.3
  28. https://github.com/lincomatic/LiquidTWI2.git
  29. https://github.com/trinamic/TMC26XStepper.git
  30. https://github.com/ameyer/Arduino-L6470.git
  31. default_src_filter = +<src/*> -<src/config>
  32. build_flags = -fmax-errors=5
  33. #################################
  34. # #
  35. # Unique Core Architectures #
  36. # #
  37. # Add a new "env" below if no #
  38. # entry has values suitable to #
  39. # build for a given board. #
  40. # #
  41. #################################
  42. #
  43. # ATmega2560
  44. #
  45. [env:megaatmega2560]
  46. platform = atmelavr
  47. framework = arduino
  48. board = megaatmega2560
  49. build_flags = ${common.build_flags}
  50. board_f_cpu = 16000000L
  51. lib_deps = ${common.lib_deps}
  52. src_filter = ${common.default_src_filter}
  53. #
  54. # ATmega1280
  55. #
  56. [env:megaatmega1280]
  57. platform = atmelavr
  58. framework = arduino
  59. board = megaatmega1280
  60. build_flags = ${common.build_flags}
  61. board_f_cpu = 16000000L
  62. lib_deps = ${common.lib_deps}
  63. src_filter = ${common.default_src_filter}
  64. #
  65. # Anet 1.0 - Melzi clone (ATmega1284p)
  66. #
  67. [env:anet10]
  68. platform = atmelavr
  69. framework = arduino
  70. board = sanguino_atmega1284p
  71. build_flags = ${common.build_flags}
  72. upload_speed = 57600
  73. lib_deps = ${common.lib_deps}
  74. src_filter = ${common.default_src_filter}
  75. #
  76. # Due (Atmel SAM3X8E ARM Cortex-M3)
  77. #
  78. # - RAMPS4DUE
  79. # - RADDS
  80. #
  81. [env:DUE]
  82. platform = atmelsam
  83. framework = arduino
  84. board = due
  85. build_flags = ${common.build_flags}
  86. lib_deps = ${common.lib_deps}
  87. lib_ignore = TMC26XStepper
  88. src_filter = ${common.default_src_filter}
  89. #
  90. # NXP LPC1768 ARM Cortex-M3
  91. #
  92. [env:LPC1768]
  93. platform = nxplpc
  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. U8glib-HAL
  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. U8glib-HAL
  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. # RAMBo
  141. #
  142. [env:rambo]
  143. platform = atmelavr
  144. framework = arduino
  145. board = reprap_rambo
  146. build_flags = ${common.build_flags}
  147. board_f_cpu = 16000000L
  148. lib_deps = ${common.lib_deps}
  149. src_filter = ${common.default_src_filter}
  150. #
  151. # Sanguinololu (ATmega644p)
  152. #
  153. [env:sanguino_atmega644p]
  154. platform = atmelavr
  155. framework = arduino
  156. board = sanguino_atmega644p
  157. build_flags = ${common.build_flags}
  158. lib_deps = ${common.lib_deps}
  159. src_filter = ${common.default_src_filter}
  160. [env:STM32F1]
  161. platform = ststm32
  162. framework = arduino
  163. board = genericSTM32F103RE
  164. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  165. ${common.build_flags}
  166. lib_deps = ${common.lib_deps}
  167. src_filter = ${common.default_src_filter}
  168. #
  169. # Teensy++ 2.0
  170. #
  171. # - PrintrBoard
  172. # - PrintrBoard Rev.F
  173. # - Brainwave Pro
  174. #
  175. [env:teensy20]
  176. platform = teensy
  177. framework = arduino
  178. board = teensy20pp
  179. build_flags = ${common.build_flags}
  180. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  181. lib_deps = ${common.lib_deps}
  182. lib_ldf_mode = deep+
  183. src_filter = ${common.default_src_filter}
  184. #
  185. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  186. #
  187. [env:teensy35]
  188. platform = teensy
  189. framework = arduino
  190. board = teensy35
  191. build_flags = ${common.build_flags}
  192. lib_deps = ${common.lib_deps}
  193. lib_ignore = Adafruit NeoPixel
  194. src_filter = ${common.default_src_filter}