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

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