My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

platformio.ini 5.5KB

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