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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. [platformio]
  12. src_dir = Marlin
  13. envs_dir = .pioenvs
  14. lib_dir = .piolib
  15. libdeps_dir = .piolibdeps
  16. env_default = megaatmega2560
  17. [common]
  18. lib_deps =
  19. LiquidCrystal_I2C@1.1.2
  20. https://github.com/lincomatic/LiquidTWI2.git
  21. https://github.com/teemuatlut/TMC2130Stepper.git
  22. https://github.com/trinamic/TMC26XStepper.git
  23. https://github.com/adafruit/Adafruit_NeoPixel.git
  24. https://github.com/ameyer/Arduino-L6470.git
  25. default_src_filter = +<src/*> -<src/config>
  26. #################################
  27. # #
  28. # Unique Core Architectures #
  29. # #
  30. # Add a new "env" below if no #
  31. # entry has values suitable to #
  32. # build for a given board. #
  33. # #
  34. #################################
  35. #
  36. # ATmega2560
  37. #
  38. [env:megaatmega2560]
  39. platform = atmelavr
  40. framework = arduino
  41. board = megaatmega2560
  42. build_flags = -I $BUILDSRC_DIR
  43. board_f_cpu = 16000000L
  44. lib_deps = ${common.lib_deps}
  45. U8glib-HAL
  46. src_filter = ${common.default_src_filter}
  47. #
  48. # ATmega1280
  49. #
  50. [env:megaatmega1280]
  51. platform = atmelavr
  52. framework = arduino
  53. board = megaatmega1280
  54. build_flags = -I $BUILDSRC_DIR
  55. board_f_cpu = 16000000L
  56. lib_deps = ${common.lib_deps}
  57. U8glib-HAL
  58. src_filter = ${common.default_src_filter}
  59. #
  60. # Anet 1.0 - Melzi clone (ATmega1284p)
  61. #
  62. [env:anet10]
  63. platform = atmelavr
  64. framework = arduino
  65. board = sanguino_atmega1284p
  66. upload_speed = 57600
  67. lib_deps = ${common.lib_deps}
  68. U8glib-HAL
  69. src_filter = ${common.default_src_filter}
  70. #
  71. # Due (Atmel SAM3X8E ARM Cortex-M3)
  72. #
  73. # - RAMPS4DUE
  74. # - RADDS
  75. #
  76. [env:DUE]
  77. platform = atmelsam
  78. framework = arduino
  79. board = due
  80. build_flags = -I $BUILDSRC_DIR
  81. lib_deps = ${common.lib_deps}
  82. U8glib-HAL
  83. src_filter = ${common.default_src_filter}
  84. #
  85. # NXP LPC1768 ARM Cortex-M3
  86. #
  87. [env:LPC1768]
  88. platform = nxplpc
  89. board_f_cpu = 100000000L
  90. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  91. -DU8G_HAL_LINKS
  92. src_build_flags = -Wall
  93. build_unflags = -Wall
  94. lib_ldf_mode = off
  95. lib_extra_dirs = frameworks
  96. #lib_deps = U8glib-ARM, CMSIS-LPC1768
  97. lib_deps = CMSIS-LPC1768
  98. U8glib-HAL
  99. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  100. src_filter = ${common.default_src_filter}
  101. #
  102. # LPC1768 (for debugging and development)
  103. #
  104. [env:LPC1768_debug_and_upload]
  105. # Segger JLink
  106. platform = nxplpc
  107. #framework = mbed
  108. board = lpc1768
  109. board_f_cpu = 100000000L
  110. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  111. -DU8G_HAL_LINKS
  112. lib_ldf_mode = off
  113. lib_extra_dirs = frameworks
  114. lib_deps = CMSIS-LPC1768
  115. U8glib-HAL
  116. src_filter = ${common.default_src_filter}
  117. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  118. debug_tool = custom
  119. debug_server =
  120. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  121. -select
  122. USB
  123. -port
  124. 2331
  125. -device
  126. LPC1768
  127. -if
  128. JTAG
  129. -speed
  130. auto
  131. -noir
  132. #
  133. # RAMBo
  134. #
  135. [env:rambo]
  136. platform = atmelavr
  137. framework = arduino
  138. board = reprap_rambo
  139. build_flags = -I $BUILDSRC_DIR
  140. board_f_cpu = 16000000L
  141. lib_deps = ${common.lib_deps}
  142. U8glib-HAL
  143. src_filter = ${common.default_src_filter}
  144. #
  145. # Sanguinololu (ATmega644p)
  146. #
  147. [env:sanguino_atmega644p]
  148. platform = atmelavr
  149. framework = arduino
  150. board = sanguino_atmega644p
  151. lib_deps = ${common.lib_deps}
  152. U8glib-HAL
  153. src_filter = ${common.default_src_filter}
  154. [env:STM32F1]
  155. platform = ststm32
  156. framework = arduino
  157. board = genericSTM32F103RE
  158. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  159. lib_deps = ${common.lib_deps}
  160. U8glib-HAL
  161. src_filter = ${common.default_src_filter}
  162. #
  163. # Teensy++ 2.0
  164. #
  165. # - PrintrBoard
  166. # - PrintrBoard Rev.F
  167. # - Brainwave Pro
  168. #
  169. [env:teensy20]
  170. platform = teensy
  171. framework = arduino
  172. board = teensy20pp
  173. build_flags = -I $BUILDSRC_DIR
  174. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  175. lib_deps = ${common.lib_deps}
  176. U8glib-HAL
  177. src_filter = ${common.default_src_filter}
  178. #
  179. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  180. #
  181. [env:teensy35]
  182. platform = teensy
  183. framework = arduino
  184. board = teensy35
  185. build_flags = -I $BUILDSRC_DIR
  186. lib_deps = ${common.lib_deps}
  187. U8glib-HAL
  188. lib_ignore = Adafruit NeoPixel
  189. src_filter = ${common.default_src_filter}