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.

megaatmega2560-tests 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for AVR
  4. #
  5. # exit on first failure
  6. set -e
  7. #
  8. # Build with the default configurations
  9. #
  10. restore_configs
  11. exec_test $1 $2 "Default Configuration"
  12. #
  13. # Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
  14. # Test a "Fix Mounted" Probe with Safe Homing, some arc options,
  15. # linear bed leveling, M48, leveling debug, and firmware retraction.
  16. #
  17. opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
  18. opt_set EXTRUDERS 2
  19. opt_set TEMP_SENSOR_0 -2
  20. opt_set TEMP_SENSOR_1 1
  21. opt_set TEMP_SENSOR_BED 2
  22. opt_set GRID_MAX_POINTS_X 16
  23. opt_set FANMUX0_PIN 53
  24. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST \
  25. PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING CODEPENDENT_XY_HOMING \
  26. EEPROM_SETTINGS SDSUPPORT SD_REPRINT_LAST_SELECTED_FILE BINARY_FILE_TRANSFER \
  27. BLINKM PCA9632 RGB_LED RGB_LED_R_PIN RGB_LED_G_PIN RGB_LED_B_PIN LED_CONTROL_MENU \
  28. NEOPIXEL_LED CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CASE_LIGHT_MENU \
  29. NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE FILAMENT_RUNOUT_DISTANCE_MM FILAMENT_RUNOUT_SENSOR \
  30. AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
  31. SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
  32. BACKLASH_COMPENSATION BACKLASH_GCODE BAUD_RATE_GCODE \
  33. FWRETRACT ARC_P_CIRCLES CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
  34. PSU_CONTROL AUTO_POWER_CONTROL POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \
  35. SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER \
  36. PINS_DEBUGGING MAX7219_DEBUG
  37. opt_set TEMP_SENSOR_CHAMBER 3
  38. opt_set HEATER_CHAMBER_PIN 45
  39. exec_test $1 $2 "RAMPS with 2 extruders, RepRap LCD, 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 1000
  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. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI STATUS_MESSAGE_SCROLLING \
  54. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT SCROLL_LONG_FILENAMES \
  55. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_USER_MENUS \
  56. MULTI_NOZZLE_DUPLICATION JUNCTION_DEVIATION LIN_ADVANCE QUICK_HOME \
  57. BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS
  58. exec_test $1 $2 "Azteeg X3 Pro with 5 extruders, RRDFGSC, probeless UBL, Linear Advance, and more"
  59. #
  60. # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
  61. #
  62. opt_enable Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
  63. opt_set LCD_LANGUAGE jp-kana
  64. opt_disable SEGMENT_LEVELED_MOVES
  65. opt_enable BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET BABYSTEP_DISPLAY_TOTAL
  66. exec_test $1 $2 "... Sled Z Probe, Skew, UBL Cartesian moves, Japanese, and Z probe BABYSTEPPING"
  67. #
  68. # Test a Servo Probe
  69. # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
  70. #
  71. restore_configs
  72. opt_enable ZONESTAR_LCD Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
  73. AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
  74. opt_set NUM_SERVOS 1
  75. opt_enable NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
  76. exec_test $1 $2 "RAMPS with ZONESTAR_LCD, Servo Probe, 3-Point ABL, DEBUG_LEVELING_FEATURE, EEPROM, G38, and more"
  77. #
  78. # Test MESH_BED_LEVELING feature, with LCD
  79. #
  80. restore_configs
  81. opt_enable SPINDLE_FEATURE MESH_BED_LEVELING G26_MESH_EDITING MESH_G28_REST_ORIGIN LCD_BED_LEVELING MESH_EDIT_MENU ULTIMAKERCONTROLLER
  82. exec_test $1 $2 "Spindle, MESH_BED_LEVELING, and LCD"
  83. #
  84. # Test MINIRAMBO with PWM_MOTOR_CURRENT and many features
  85. #
  86. restore_configs
  87. opt_set MOTHERBOARD BOARD_MINIRAMBO
  88. opt_enable PROBE_MANUALLY AUTO_BED_LEVELING_BILINEAR G26_MESH_EDITING LCD_BED_LEVELING MESH_EDIT_MENU \
  89. EEPROM_SETTINGS EEPROM_CHITCHAT \
  90. M100_FREE_MEMORY_WATCHER M100_FREE_MEMORY_DUMPER M100_FREE_MEMORY_CORRUPTOR \
  91. INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT \
  92. ULTIMAKERCONTROLLER SDSUPPORT \
  93. PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632 \
  94. BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS \
  95. ADVANCED_PAUSE_FEATURE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES PARK_HEAD_ON_PAUSE \
  96. LCD_INFO_MENU M114_DETAIL
  97. opt_set PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
  98. opt_set I2C_SLAVE_ADDRESS 63
  99. exec_test $1 $2 "MINIRAMBO for PWM_MOTOR_CURRENT etc"
  100. #
  101. # Mixing Extruder with 5 steppers, Cyrillic
  102. #
  103. restore_configs
  104. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  105. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY
  106. opt_set MIXING_STEPPERS 5
  107. opt_set LCD_LANGUAGE ru
  108. exec_test $1 $2 "Mixing Extruder with 5 steppers, Cyrillic"
  109. #
  110. # Test DUAL_X_CARRIAGE
  111. #
  112. restore_configs
  113. opt_set MOTHERBOARD BOARD_RUMBA
  114. opt_set EXTRUDERS 2
  115. opt_set TEMP_SENSOR_1 1
  116. opt_enable USE_XMAX_PLUG DUAL_X_CARRIAGE
  117. exec_test $1 $2 "DUAL_X_CARRIAGE"
  118. #
  119. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  120. #
  121. #restore_configs
  122. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D
  123. #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
  124. #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
  125. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  126. #
  127. # Enable COREXY
  128. #
  129. #restore_configs
  130. #opt_enable COREXY
  131. #exec_test $1 $2 "Stuff"
  132. #
  133. # Test many less common options
  134. #
  135. restore_configs
  136. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  137. opt_set EXTRUDERS 2
  138. opt_set TEMP_SENSOR_1 -4
  139. opt_set SERVO_DELAY "{ 300, 300, 300 }"
  140. opt_enable COREYX USE_XMAX_PLUG \
  141. REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING BABYSTEP_DISPLAY_TOTAL DAC_MOTOR_CURRENT_DEFAULT \
  142. FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR \
  143. ENDSTOP_INTERRUPTS_FEATURE ENDSTOP_NOISE_THRESHOLD FAN_SOFT_PWM SDSUPPORT \
  144. SWITCHING_TOOLHEAD NUM_SERVOS DEBUG_LEVELING_FEATURE \
  145. SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \
  146. SD_ABORT_ON_ENDSTOP_HIT ADVANCED_OK \
  147. VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \
  148. EXTRA_FAN_SPEED FWRETRACT MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
  149. opt_set FAN_MIN_PWM 50
  150. opt_set FAN_KICKSTART_TIME 100
  151. opt_set XY_FREQUENCY_LIMIT 15
  152. exec_test $1 $2 "Many less common options"
  153. ######## Other Standard LCD/Panels ##############
  154. #
  155. # ULTRA_LCD
  156. #
  157. #restore_configs
  158. #opt_enable ULTRA_LCD
  159. #exec_test $1 $2 "Stuff"
  160. #
  161. # DOGLCD
  162. #
  163. #restore_configs
  164. #opt_enable DOGLCD
  165. #exec_test $1 $2 "Stuff"
  166. #
  167. # MAKRPANEL
  168. # Needs to use Melzi and Sanguino hardware
  169. #
  170. #restore_configs
  171. #opt_enable MAKRPANEL
  172. #exec_test $1 $2 "Stuff"
  173. #
  174. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  175. #
  176. #restore_configs
  177. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  178. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  179. #exec_test $1 $2 "Stuff"
  180. # #
  181. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  182. #
  183. #restore_configs
  184. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  185. #opt_set SDSORT_GCODE true
  186. #opt_set SDSORT_USES_RAM true
  187. #opt_set SDSORT_USES_STACK true
  188. #opt_set SDSORT_CACHE_NAMES true
  189. #exec_test $1 $2 "Stuff"
  190. #
  191. # REPRAPWORLD_KEYPAD
  192. #
  193. # Cant find configuration details to get it to compile
  194. #restore_configs
  195. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  196. #exec_test $1 $2 "Stuff"
  197. #
  198. # RA_CONTROL_PANEL
  199. #
  200. #restore_configs
  201. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  202. #exec_test $1 $2 "Stuff"
  203. ######## I2C LCD/PANELS ##############
  204. #
  205. # !!!ATTENTION!!!
  206. # Most I2C configurations are failing at the moment because they require
  207. # a different Liquid Crystal library "LiquidTWI2".
  208. #
  209. # LCD_SAINSMART_I2C_1602
  210. #
  211. #restore_configs
  212. #opt_enable LCD_SAINSMART_I2C_1602
  213. #exec_test $1 $2 "Stuff"
  214. #
  215. # LCD_I2C_PANELOLU2
  216. #
  217. #restore_configs
  218. #opt_enable LCD_I2C_PANELOLU2
  219. #exec_test $1 $2 "Stuff"
  220. #
  221. # LCD_I2C_VIKI
  222. #
  223. #restore_configs
  224. #opt_enable LCD_I2C_VIKI
  225. #exec_test $1 $2 "Stuff"
  226. #
  227. # LCM1602
  228. #
  229. #restore_configs
  230. #opt_enable LCM1602
  231. #exec_test $1 $2 "Stuff"
  232. #
  233. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  234. #
  235. #restore_configs
  236. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  237. #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
  238. #
  239. #restore_configs
  240. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  241. #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
  242. ######## Example Configurations ##############
  243. #
  244. # Test a full-featured CR-10S config
  245. #
  246. use_example_configs Creality/CR-10S
  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 + BLTOUCH
  255. use_example_configs delta/generic
  256. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR BLTOUCH BLTOUCH_FORCE_5V_MODE
  257. exec_test $1 $2 "Delta Config (generic) + ABL bilinear + BLTOUCH"
  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 SQUARE_WAVE_STEPPING
  282. opt_set X_MAX_ENDSTOP_INVERTING false
  283. opt_set X_DRIVER_TYPE TMC2209
  284. opt_set Y_DRIVER_TYPE TMC2130
  285. opt_set Z_DRIVER_TYPE TMC2130
  286. opt_set E0_DRIVER_TYPE TMC2660
  287. exec_test $1 $2 "SCARA with TMC2130, TMC2209, and TMC2660"
  288. #
  289. # Test mixed TMC config
  290. #
  291. restore_configs
  292. opt_set X_DRIVER_TYPE TMC2160
  293. opt_set Y_DRIVER_TYPE TMC5160
  294. opt_set Z_DRIVER_TYPE TMC2208
  295. opt_set E0_DRIVER_TYPE TMC2130
  296. opt_set X_MIN_ENDSTOP_INVERTING true
  297. opt_set Y_MIN_ENDSTOP_INVERTING true
  298. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER \
  299. MARLIN_BRICKOUT MARLIN_INVADERS MARLIN_SNAKE \
  300. MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD \
  301. USE_ZMIN_PLUG SENSORLESS_HOMING TMC_DEBUG
  302. exec_test $1 $2 "Mixed TMC configuration, with games!"
  303. #
  304. # tvrrug Config need to check board type for sanguino atmega644p
  305. #
  306. #use_example_configs tvrrug/Round2
  307. #exec_test $1 $2 "Stuff"
  308. # clean up
  309. restore_configs