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 12KB

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