My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

megaatmega2560_tests 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for AVR
  4. #
  5. # exit on first failure
  6. set -e
  7. #
  8. # Backup pins_RAMPS.h
  9. #
  10. cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
  11. #
  12. # Build with the default configurations
  13. #
  14. restore_configs
  15. exec_test $1 $2 "Default Configuration"
  16. #
  17. # Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
  18. # Test a "Fix Mounted" Probe with Safe Homing, some arc options,
  19. # linear bed leveling, M48, leveling debug, and firmware retraction.
  20. #
  21. opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
  22. opt_set EXTRUDERS 2
  23. opt_set TEMP_SENSOR_0 -2
  24. opt_set TEMP_SENSOR_1 1
  25. opt_set TEMP_SENSOR_BED 1
  26. opt_set POWER_SUPPLY 1
  27. opt_set GRID_MAX_POINTS_X 16
  28. opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING \
  29. SDSUPPORT EEPROM_SETTINGS REPRAP_DISCOUNT_SMART_CONTROLLER \
  30. BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL \
  31. NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR FILAMENT_RUNOUT_DISTANCE_MM \
  32. AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
  33. SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
  34. FWRETRACT ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
  35. POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE FAST_FILE_TRANSFER \
  36. LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST PINS_DEBUGGING \
  37. MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING BACKLASH_COMPENSATION BACKLASH_GCODE
  38. opt_set FANMUX0_PIN 53
  39. exec_test $1 $2 "RAMPS with 2 extruders, RRDFGSC, Linear ABL, LEDs, and many options"
  40. #
  41. # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
  42. #
  43. use_example_configs AnimationExample
  44. opt_set SHOW_CUSTOM_BOOTSCREEN
  45. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  46. opt_set EXTRUDERS 5
  47. opt_set TEMP_SENSOR_1 1
  48. opt_set TEMP_SENSOR_2 5
  49. opt_set TEMP_SENSOR_3 20
  50. opt_set TEMP_SENSOR_4 999
  51. opt_set TEMP_SENSOR_BED 1
  52. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_EDITING ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
  53. EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT \
  54. USB_FLASH_DRIVE_SUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI \
  55. CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME JUNCTION_DEVIATION
  56. exec_test $1 $2 "Azteeg X3 with 5 extruders, RRDFGSC, probeless UBL, Linear Advance, and more"
  57. #
  58. # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
  59. #
  60. opt_enable Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
  61. opt_set LCD_LANGUAGE jp-kana
  62. opt_disable SEGMENT_LEVELED_MOVES
  63. opt_enable BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET
  64. exec_test $1 $2 "... Sled Z Probe, Skew, UBL Cartesian moves, Japanese, and Z probe BABYSTEPPING"
  65. #
  66. # Test a Servo Probe
  67. # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
  68. #
  69. restore_configs
  70. opt_enable ZONESTAR_LCD Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
  71. AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
  72. opt_set NUM_SERVOS 1
  73. opt_enable NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
  74. exec_test $1 $2 "RAMPS with ZONESTAR_LCD, Servo Probe, 3-Point ABL, DEBUG_LEVELING_FEATURE, EEPROM, G38, and more"
  75. #
  76. # Test MESH_BED_LEVELING feature, with LCD
  77. #
  78. restore_configs
  79. opt_enable MESH_BED_LEVELING G26_MESH_EDITING MESH_G28_REST_ORIGIN LCD_BED_LEVELING MESH_EDIT_MENU ULTIMAKERCONTROLLER
  80. exec_test $1 $2 "MESH_BED_LEVELING feature, with LCD"
  81. #
  82. # Test MINIRAMBO with PWM_MOTOR_CURRENT and many features
  83. #
  84. restore_configs
  85. opt_set MOTHERBOARD BOARD_MINIRAMBO
  86. opt_enable PROBE_MANUALLY AUTO_BED_LEVELING_BILINEAR G26_MESH_EDITING LCD_BED_LEVELING MESH_EDIT_MENU \
  87. EEPROM_SETTINGS EEPROM_CHITCHAT \
  88. M100_FREE_MEMORY_WATCHER M100_FREE_MEMORY_DUMPER M100_FREE_MEMORY_CORRUPTOR \
  89. INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
  90. ULTIMAKERCONTROLLER SDSUPPORT \
  91. PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632 \
  92. BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS \
  93. ADVANCED_PAUSE_FEATURE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES PARK_HEAD_ON_PAUSE \
  94. LCD_INFO_MENU M114_DETAIL
  95. opt_set PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
  96. opt_set I2C_SLAVE_ADDRESS 63
  97. exec_test $1 $2 "MINIRAMBO for PWM_MOTOR_CURRENT etc"
  98. #
  99. # Mixing Extruder with 5 steppers, Cyrillic
  100. #
  101. restore_configs
  102. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  103. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY
  104. opt_set MIXING_STEPPERS 5
  105. opt_set LCD_LANGUAGE ru
  106. exec_test $1 $2 "Mixing Extruder with 5 steppers, Cyrillic"
  107. #
  108. # Test DUAL_X_CARRIAGE
  109. #
  110. restore_configs
  111. opt_set MOTHERBOARD BOARD_RUMBA
  112. opt_set EXTRUDERS 2
  113. opt_set TEMP_SENSOR_1 1
  114. opt_enable USE_XMAX_PLUG DUAL_X_CARRIAGE
  115. exec_test $1 $2 "DUAL_X_CARRIAGE"
  116. #
  117. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  118. #
  119. #restore_configs
  120. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D
  121. #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
  122. #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
  123. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  124. #
  125. # Enable COREXY
  126. #
  127. #restore_configs
  128. #opt_enable COREXY
  129. #exec_test $1 $2 "Stuff"
  130. #
  131. # Test many less common options
  132. #
  133. restore_configs
  134. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  135. opt_set EXTRUDERS 2
  136. opt_set TEMP_SENSOR_1 -4
  137. opt_set SERVO_DELAY "{ 300, 300, 300 }"
  138. opt_enable COREYX USE_XMAX_PLUG \
  139. REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT \
  140. FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR \
  141. ENDSTOP_INTERRUPTS_FEATURE ENDSTOP_NOISE_THRESHOLD FAN_SOFT_PWM SDSUPPORT \
  142. SWITCHING_TOOLHEAD NUM_SERVOS DEBUG_LEVELING_FEATURE \
  143. SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \
  144. ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \
  145. VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
  146. EXTRA_FAN_SPEED FWRETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \
  147. MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
  148. opt_set FAN_MIN_PWM 50
  149. opt_set FAN_KICKSTART_TIME 100
  150. opt_set XY_FREQUENCY_LIMIT 15
  151. exec_test $1 $2 "Many less common options"
  152. ######## Other Standard LCD/Panels ##############
  153. #
  154. # ULTRA_LCD
  155. #
  156. #restore_configs
  157. #opt_enable ULTRA_LCD
  158. #exec_test $1 $2 "Stuff"
  159. #
  160. # DOGLCD
  161. #
  162. #restore_configs
  163. #opt_enable DOGLCD
  164. #exec_test $1 $2 "Stuff"
  165. #
  166. # MAKRPANEL
  167. # Needs to use Melzi and Sanguino hardware
  168. #
  169. #restore_configs
  170. #opt_enable MAKRPANEL
  171. #exec_test $1 $2 "Stuff"
  172. #
  173. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  174. #
  175. #restore_configs
  176. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  177. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  178. #exec_test $1 $2 "Stuff"
  179. # #
  180. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  181. #
  182. #restore_configs
  183. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  184. #opt_set SDSORT_GCODE true
  185. #opt_set SDSORT_USES_RAM true
  186. #opt_set SDSORT_USES_STACK true
  187. #opt_set SDSORT_CACHE_NAMES true
  188. #exec_test $1 $2 "Stuff"
  189. #
  190. # REPRAPWORLD_KEYPAD
  191. #
  192. # Cant find configuration details to get it to compile
  193. #restore_configs
  194. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  195. #exec_test $1 $2 "Stuff"
  196. #
  197. # RA_CONTROL_PANEL
  198. #
  199. #restore_configs
  200. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  201. #exec_test $1 $2 "Stuff"
  202. ######## I2C LCD/PANELS ##############
  203. #
  204. # !!!ATTENTION!!!
  205. # Most I2C configurations are failing at the moment because they require
  206. # a different Liquid Crystal library "LiquidTWI2".
  207. #
  208. # LCD_SAINSMART_I2C_1602
  209. #
  210. #restore_configs
  211. #opt_enable LCD_SAINSMART_I2C_1602
  212. #exec_test $1 $2 "Stuff"
  213. #
  214. # LCD_I2C_PANELOLU2
  215. #
  216. #restore_configs
  217. #opt_enable LCD_I2C_PANELOLU2
  218. #exec_test $1 $2 "Stuff"
  219. #
  220. # LCD_I2C_VIKI
  221. #
  222. #restore_configs
  223. #opt_enable LCD_I2C_VIKI
  224. #exec_test $1 $2 "Stuff"
  225. #
  226. # LCM1602
  227. #
  228. #restore_configs
  229. #opt_enable LCM1602
  230. #exec_test $1 $2 "Stuff"
  231. #
  232. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  233. #
  234. #restore_configs
  235. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  236. #for lang in an bg ca zh_CN zh_TW cz da de el el-gr en es eu fi fr gl hr it jp-kana nl pl pt pt-br ru sk tr uk test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff"; done
  237. #
  238. #restore_configs
  239. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  240. #for lang in an bg ca zh_CN zh_TW cz da de el el-gr en es eu fi fr gl hr it jp-kana nl pl pt pt-br ru sk tr uk test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff"; done
  241. ######## Example Configurations ##############
  242. #
  243. # Test a full-featured CR-10S config
  244. #
  245. use_example_configs Creality/CR-10S
  246. opt_enable SHOW_CUSTOM_BOOTSCREEN
  247. exec_test $1 $2 "Full-featured CR-10S config"
  248. #
  249. # BQ Hephestos 2
  250. #restore_configs
  251. #use_example_configs Hephestos_2
  252. #exec_test $1 $2 "Stuff"
  253. #
  254. # Delta Config (generic) + ABL bilinear + PROBE_MANUALLY
  255. use_example_configs delta/generic
  256. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR PROBE_MANUALLY
  257. exec_test $1 $2 "Delta Config (generic) + ABL bilinear + PROBE_MANUALLY"
  258. #
  259. # Delta Config (generic) + UBL + ALLEN_KEY + OLED_PANEL_TINYBOY2 + EEPROM_SETTINGS
  260. #
  261. use_example_configs delta/generic
  262. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 Z_PROBE_ALLEN_KEY EEPROM_SETTINGS EEPROM_CHITCHAT \
  263. OLED_PANEL_TINYBOY2 MESH_EDIT_GFX_OVERLAY
  264. exec_test $1 $2 "Delta Config (generic) + UBL + ALLEN_KEY + OLED_PANEL_TINYBOY2 + EEPROM_SETTINGS"
  265. #
  266. # Delta Config (FLSUN AC because it's complex)
  267. #
  268. use_example_configs delta/FLSUN/auto_calibrate
  269. exec_test $1 $2 "Delta Config (FLSUN AC because it's complex)"
  270. #
  271. # Makibox Config need to check board type for Teensy++ 2.0
  272. #
  273. #use_example_configs makibox
  274. #exec_test $1 $2 "Stuff"
  275. #
  276. # SCARA with TMC2130
  277. #
  278. use_example_configs SCARA
  279. opt_enable USE_ZMIN_PLUG FIX_MOUNTED_PROBE AUTO_BED_LEVELING_BILINEAR PAUSE_BEFORE_DEPLOY_STOW \
  280. EEPROM_SETTINGS EEPROM_CHITCHAT ULTIMAKERCONTROLLER \
  281. MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD SENSORLESS_HOMING
  282. opt_set X_DRIVER_TYPE TMC2130
  283. opt_set Y_DRIVER_TYPE TMC2130
  284. opt_set Z_DRIVER_TYPE TMC2130
  285. opt_set E0_DRIVER_TYPE TMC2130
  286. exec_test $1 $2 "SCARA with TMC2130"
  287. #
  288. # Test mixed TMC config
  289. #
  290. restore_configs
  291. opt_set X_DRIVER_TYPE TMC2160
  292. opt_set Y_DRIVER_TYPE TMC5160
  293. opt_set Z_DRIVER_TYPE TMC2208
  294. opt_set E0_DRIVER_TYPE TMC2130
  295. opt_set X_MIN_ENDSTOP_INVERTING true
  296. opt_set Y_MIN_ENDSTOP_INVERTING true
  297. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD USE_ZMIN_PLUG SENSORLESS_HOMING TMC_DEBUG
  298. exec_test $1 $2 "Mixed TMC configuration"
  299. #
  300. # tvrrug Config need to check board type for sanguino atmega644p
  301. #
  302. #use_example_configs tvrrug/Round2
  303. #exec_test $1 $2 "Stuff"
  304. #
  305. #
  306. # clean up
  307. restore_configs