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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. # Anet 1.0 (Optiboot bootloader)
  77. #
  78. [env:anet10_optiboot]
  79. platform = atmelavr
  80. framework = arduino
  81. board = sanguino_atmega1284p
  82. build_flags = ${common.build_flags}
  83. upload_speed = 115200
  84. lib_deps = ${common.lib_deps}
  85. src_filter = ${common.default_src_filter}
  86. #
  87. # Due (Atmel SAM3X8E ARM Cortex-M3)
  88. #
  89. # - RAMPS4DUE
  90. # - RADDS
  91. #
  92. [env:DUE]
  93. platform = atmelsam
  94. framework = arduino
  95. board = due
  96. build_flags = ${common.build_flags}
  97. lib_deps = ${common.lib_deps}
  98. lib_ignore = TMC26XStepper
  99. src_filter = ${common.default_src_filter}
  100. #
  101. # NXP LPC1768 ARM Cortex-M3
  102. #
  103. [env:LPC1768]
  104. platform = nxplpc
  105. board_f_cpu = 100000000L
  106. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  107. ${common.build_flags}
  108. -DU8G_HAL_LINKS
  109. src_build_flags = -Wall
  110. build_unflags = -Wall
  111. lib_ldf_mode = off
  112. lib_extra_dirs = frameworks
  113. lib_deps = CMSIS-LPC1768
  114. U8glib-HAL
  115. TMC2130Stepper@>=2.1.1
  116. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  117. src_filter = ${common.default_src_filter}
  118. #
  119. # LPC1768 (for debugging and development)
  120. #
  121. [env:LPC1768_debug_and_upload]
  122. # Segger JLink
  123. platform = nxplpc
  124. #framework = mbed
  125. board = lpc1768
  126. board_f_cpu = 100000000L
  127. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  128. ${common.build_flags}
  129. -DU8G_HAL_LINKS
  130. lib_ldf_mode = off
  131. lib_extra_dirs = frameworks
  132. lib_deps = CMSIS-LPC1768
  133. U8glib-HAL
  134. src_filter = ${common.default_src_filter}
  135. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  136. debug_tool = custom
  137. debug_server =
  138. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  139. -select
  140. USB
  141. -port
  142. 2331
  143. -device
  144. LPC1768
  145. -if
  146. JTAG
  147. -speed
  148. auto
  149. -noir
  150. #
  151. # RAMBo
  152. #
  153. [env:rambo]
  154. platform = atmelavr
  155. framework = arduino
  156. board = reprap_rambo
  157. build_flags = ${common.build_flags}
  158. board_f_cpu = 16000000L
  159. lib_deps = ${common.lib_deps}
  160. src_filter = ${common.default_src_filter}
  161. #
  162. # Sanguinololu (ATmega644p)
  163. #
  164. [env:sanguino_atmega644p]
  165. platform = atmelavr
  166. framework = arduino
  167. board = sanguino_atmega644p
  168. build_flags = ${common.build_flags}
  169. lib_deps = ${common.lib_deps}
  170. src_filter = ${common.default_src_filter}
  171. [env:STM32F1]
  172. platform = ststm32
  173. framework = arduino
  174. board = genericSTM32F103RE
  175. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  176. ${common.build_flags}
  177. lib_deps = ${common.lib_deps}
  178. src_filter = ${common.default_src_filter}
  179. #
  180. # Teensy++ 2.0
  181. #
  182. # - PrintrBoard
  183. # - PrintrBoard Rev.F
  184. # - Brainwave Pro
  185. #
  186. [env:teensy20]
  187. platform = teensy
  188. framework = arduino
  189. board = teensy20pp
  190. build_flags = ${common.build_flags}
  191. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  192. lib_deps = ${common.lib_deps}
  193. lib_ldf_mode = deep+
  194. src_filter = ${common.default_src_filter}
  195. #
  196. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  197. #
  198. [env:teensy35]
  199. platform = teensy
  200. framework = arduino
  201. board = teensy35
  202. build_flags = ${common.build_flags}
  203. lib_deps = ${common.lib_deps}
  204. lib_ignore = Adafruit NeoPixel
  205. src_filter = ${common.default_src_filter}