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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. envs_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
  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} -I $BUILDSRC_DIR
  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} -I $BUILDSRC_DIR
  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} -I $BUILDSRC_DIR
  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. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  105. src_filter = ${common.default_src_filter}
  106. #
  107. # LPC1768 (for debugging and development)
  108. #
  109. [env:LPC1768_debug_and_upload]
  110. # Segger JLink
  111. platform = nxplpc
  112. #framework = mbed
  113. board = lpc1768
  114. board_f_cpu = 100000000L
  115. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  116. ${common.build_flags}
  117. -DU8G_HAL_LINKS
  118. lib_ldf_mode = off
  119. lib_extra_dirs = frameworks
  120. lib_deps = CMSIS-LPC1768
  121. U8glib-HAL
  122. src_filter = ${common.default_src_filter}
  123. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  124. debug_tool = custom
  125. debug_server =
  126. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  127. -select
  128. USB
  129. -port
  130. 2331
  131. -device
  132. LPC1768
  133. -if
  134. JTAG
  135. -speed
  136. auto
  137. -noir
  138. #
  139. # RAMBo
  140. #
  141. [env:rambo]
  142. platform = atmelavr
  143. framework = arduino
  144. board = reprap_rambo
  145. build_flags = ${common.build_flags} -I $BUILDSRC_DIR
  146. board_f_cpu = 16000000L
  147. lib_deps = ${common.lib_deps}
  148. src_filter = ${common.default_src_filter}
  149. #
  150. # Sanguinololu (ATmega644p)
  151. #
  152. [env:sanguino_atmega644p]
  153. platform = atmelavr
  154. framework = arduino
  155. board = sanguino_atmega644p
  156. build_flags = ${common.build_flags}
  157. lib_deps = ${common.lib_deps}
  158. src_filter = ${common.default_src_filter}
  159. [env:STM32F1]
  160. platform = ststm32
  161. framework = arduino
  162. board = genericSTM32F103RE
  163. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  164. ${common.build_flags}
  165. lib_deps = ${common.lib_deps}
  166. src_filter = ${common.default_src_filter}
  167. #
  168. # Teensy++ 2.0
  169. #
  170. # - PrintrBoard
  171. # - PrintrBoard Rev.F
  172. # - Brainwave Pro
  173. #
  174. [env:teensy20]
  175. platform = teensy
  176. framework = arduino
  177. board = teensy20pp
  178. build_flags = ${common.build_flags} -I $BUILDSRC_DIR
  179. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  180. lib_deps = ${common.lib_deps}
  181. src_filter = ${common.default_src_filter}
  182. #
  183. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  184. #
  185. [env:teensy35]
  186. platform = teensy
  187. framework = arduino
  188. board = teensy35
  189. build_flags = ${common.build_flags} -I $BUILDSRC_DIR
  190. lib_deps = ${common.lib_deps}
  191. lib_ignore = Adafruit NeoPixel
  192. src_filter = ${common.default_src_filter}