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.

mega2560-tests 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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" "$3"
  12. #
  13. # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
  14. #
  15. use_example_configs AnimationExample
  16. opt_set SHOW_CUSTOM_BOOTSCREEN
  17. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  18. opt_set LCD_LANGUAGE fr
  19. opt_set EXTRUDERS 5
  20. opt_set TEMP_SENSOR_1 1
  21. opt_set TEMP_SENSOR_2 5
  22. opt_set TEMP_SENSOR_3 20
  23. opt_set TEMP_SENSOR_4 1000
  24. opt_set TEMP_SENSOR_BED 1
  25. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
  26. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI STATUS_MESSAGE_SCROLLING BOOT_MARLIN_LOGO_SMALL \
  27. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT SCROLL_LONG_FILENAMES CANCEL_OBJECTS SOUND_MENU_ITEM \
  28. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_USER_MENUS \
  29. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE EXTRA_LIN_ADVANCE_K QUICK_HOME \
  30. LCD_SET_PROGRESS_MANUALLY PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME \
  31. BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL
  32. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL | LIN_ADVANCE ..." "$3"
  33. #
  34. # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
  35. #
  36. use_example_configs AnimationExample
  37. opt_set SHOW_CUSTOM_BOOTSCREEN
  38. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  39. opt_set LCD_LANGUAGE fr
  40. opt_set EXTRUDERS 5
  41. opt_set TEMP_SENSOR_1 1
  42. opt_set TEMP_SENSOR_2 5
  43. opt_set TEMP_SENSOR_3 20
  44. opt_set TEMP_SENSOR_4 1000
  45. opt_set TEMP_SENSOR_BED 1
  46. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
  47. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI STATUS_MESSAGE_SCROLLING BOOT_MARLIN_LOGO_SMALL \
  48. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT SCROLL_LONG_FILENAMES CANCEL_OBJECTS \
  49. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_USER_MENUS \
  50. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE QUICK_HOME \
  51. LCD_SET_PROGRESS_MANUALLY PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME \
  52. BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL \
  53. Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
  54. opt_set LCD_LANGUAGE jp_kana
  55. opt_disable SEGMENT_LEVELED_MOVES
  56. opt_enable BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET BABYSTEP_DISPLAY_TOTAL M114_DETAIL
  57. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL | LIN_ADVANCE | Sled Probe | Skew | JP-Kana | Babystep offsets ..." "$3"
  58. #
  59. # Test a Servo Probe
  60. # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
  61. #
  62. restore_configs
  63. opt_set LCD_LANGUAGE zh_CN
  64. opt_set MMU_MODEL PRUSA_MMU2S
  65. opt_set EXTRUDERS 5
  66. opt_set NUM_SERVOS 1
  67. opt_enable ZONESTAR_LCD Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE BOOT_MARLIN_LOGO_ANIMATED \
  68. AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL \
  69. NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET JOYSTICK \
  70. MMU2_MENUS DIRECT_STEPPING DETECT_BROKEN_ENDSTOP \
  71. FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE Z_SAFE_HOMING
  72. exec_test $1 $2 "RAMPS | ZONESTAR + Chinese | MMU2S | Servo | 3-Point + Debug | G38 ..." "$3"
  73. #
  74. # 5 runout sensors with distinct states
  75. #
  76. restore_configs
  77. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  78. opt_set EXTRUDERS 5
  79. opt_set NUM_SERVOS 1
  80. opt_set TEMP_SENSOR_1 1
  81. opt_set TEMP_SENSOR_2 1
  82. opt_set TEMP_SENSOR_3 1
  83. opt_set TEMP_SENSOR_4 1
  84. opt_enable ZONESTAR_LCD Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE BOOT_MARLIN_LOGO_ANIMATED \
  85. AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL \
  86. NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET JOYSTICK \
  87. DIRECT_STEPPING DETECT_BROKEN_ENDSTOP \
  88. FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE Z_SAFE_HOMING FIL_RUNOUT3_PULLUP
  89. opt_set NUM_RUNOUT_SENSORS 5
  90. opt_set FIL_RUNOUT2_PIN 44
  91. opt_set FIL_RUNOUT3_PIN 45
  92. opt_set FIL_RUNOUT3_STATE HIGH
  93. opt_set FIL_RUNOUT4_PIN 46
  94. opt_set FIL_RUNOUT5_PIN 47
  95. exec_test $1 $2 "Multiple runout sensors (x5) | Distinct runout states" "$3"
  96. #
  97. # Test MINIRAMBO with PWM_MOTOR_CURRENT and many features
  98. #
  99. restore_configs
  100. opt_set MOTHERBOARD BOARD_MEGACONTROLLER
  101. opt_set LCD_LANGUAGE de
  102. opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT \
  103. MINIPANEL SDSUPPORT PCA9632 LCD_INFO_MENU SOUND_MENU_ITEM GCODE_REPEAT_MARKERS \
  104. AUTO_BED_LEVELING_BILINEAR PROBE_MANUALLY LCD_BED_LEVELING G26_MESH_VALIDATION MESH_EDIT_MENU \
  105. LIN_ADVANCE EXTRA_LIN_ADVANCE_K \
  106. INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT EXPERIMENTAL_I2CBUS M100_FREE_MEMORY_WATCHER \
  107. NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE \
  108. ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES \
  109. PRINTCOUNTER SERVICE_NAME_1 SERVICE_INTERVAL_1 M114_DETAIL \
  110. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE
  111. opt_set CONTROLLERFAN_SPEED_IDLE 128
  112. opt_add M100_FREE_MEMORY_DUMPER
  113. opt_add M100_FREE_MEMORY_CORRUPTOR
  114. opt_set PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
  115. opt_set I2C_SLAVE_ADDRESS 63
  116. exec_test $1 $2 "MEGACONTROLLER | Minipanel | M100 | PWM_MOTOR_CURRENT | PRINTCOUNTER | Advanced Pause ..." "$3"
  117. #
  118. # Mixing Extruder with 5 steppers, Greek
  119. #
  120. restore_configs
  121. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
  122. opt_set LCD_LANGUAGE el_gr
  123. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY \
  124. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE CONTROLLER_FAN_IGNORE_Z
  125. opt_set MIXING_STEPPERS 5
  126. opt_set LCD_LANGUAGE ru
  127. exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Greek" "$3"
  128. #
  129. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  130. #
  131. #restore_configs
  132. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D
  133. #opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
  134. #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
  135. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  136. #
  137. # Enable COREXY
  138. #
  139. #restore_configs
  140. #opt_enable COREXY
  141. #exec_test $1 $2 "Stuff" "$3"
  142. #
  143. # Test many less common options
  144. #
  145. restore_configs
  146. opt_set MOTHERBOARD BOARD_MIGHTYBOARD_REVE
  147. opt_set TEMP_SENSOR_0 -2
  148. opt_set DIGIPOT_I2C_NUM_CHANNELS 5
  149. opt_set LCD_LANGUAGE it
  150. opt_set MIXING_STEPPERS 2
  151. opt_set SERVO_DELAY "{ 300, 300, 300 }"
  152. opt_enable COREYX USE_XMAX_PLUG MIXING_EXTRUDER GRADIENT_MIX \
  153. BABYSTEPPING BABYSTEP_DISPLAY_TOTAL FILAMENT_LCD_DISPLAY \
  154. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER MENU_ADDAUTOSTART SDSUPPORT SDCARD_SORT_ALPHA \
  155. ENDSTOP_NOISE_THRESHOLD FAN_SOFT_PWM \
  156. FIX_MOUNTED_PROBE AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE FILAMENT_WIDTH_SENSOR PROBE_OFFSET_WIZARD \
  157. Z_SAFE_HOMING SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \
  158. SD_ABORT_ON_ENDSTOP_HIT HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT ADVANCED_OK M114_DETAIL \
  159. VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS EXTRA_FAN_SPEED FWRETRACT \
  160. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE CONTROLLER_FAN_USE_Z_ONLY
  161. opt_set FAN_MIN_PWM 50
  162. opt_set FAN_KICKSTART_TIME 100
  163. opt_set XY_FREQUENCY_LIMIT 15
  164. opt_add FILWIDTH_PIN 5
  165. exec_test $1 $2 "Mightyboard Rev. E | CoreXY, Gradient Mix | Endstop Int. | Home Y > X | FW Retract ..." "$3"
  166. ######## Other Standard LCD/Panels ##############
  167. #
  168. # ULTRA_LCD
  169. #
  170. #restore_configs
  171. #opt_enable ULTRA_LCD
  172. #exec_test $1 $2 "Stuff" "$3"
  173. #
  174. # DOGLCD
  175. #
  176. #restore_configs
  177. #opt_enable DOGLCD
  178. #exec_test $1 $2 "Stuff" "$3"
  179. #
  180. # MAKRPANEL
  181. # Needs to use Melzi and Sanguino hardware
  182. #
  183. #restore_configs
  184. #opt_enable MAKRPANEL
  185. #exec_test $1 $2 "Stuff" "$3"
  186. #
  187. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  188. #
  189. #restore_configs
  190. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  191. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  192. #exec_test $1 $2 "Stuff" "$3"
  193. # #
  194. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  195. #
  196. #restore_configs
  197. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  198. #opt_set SDSORT_GCODE true
  199. #opt_set SDSORT_USES_RAM true
  200. #opt_set SDSORT_USES_STACK true
  201. #opt_set SDSORT_CACHE_NAMES true
  202. #exec_test $1 $2 "Stuff" "$3"
  203. #
  204. # REPRAPWORLD_KEYPAD
  205. #
  206. # Cant find configuration details to get it to compile
  207. #restore_configs
  208. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  209. #exec_test $1 $2 "Stuff" "$3"
  210. #
  211. # RA_CONTROL_PANEL
  212. #
  213. #restore_configs
  214. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  215. #exec_test $1 $2 "Stuff" "$3"
  216. ######## I2C LCD/PANELS ##############
  217. #
  218. # !!!ATTENTION!!!
  219. # Most I2C configurations are failing at the moment because they require
  220. # a different Liquid Crystal library "LiquidTWI2".
  221. #
  222. # LCD_SAINSMART_I2C_1602
  223. #
  224. #restore_configs
  225. #opt_enable LCD_SAINSMART_I2C_1602
  226. #exec_test $1 $2 "Stuff" "$3"
  227. #
  228. # LCD_I2C_PANELOLU2
  229. #
  230. #restore_configs
  231. #opt_enable LCD_I2C_PANELOLU2
  232. #exec_test $1 $2 "Stuff" "$3"
  233. #
  234. # LCD_I2C_VIKI
  235. #
  236. #restore_configs
  237. #opt_enable LCD_I2C_VIKI
  238. #exec_test $1 $2 "Stuff" "$3"
  239. #
  240. # LCM1602
  241. #
  242. #restore_configs
  243. #opt_enable LCM1602
  244. #exec_test $1 $2 "Stuff" "$3"
  245. #
  246. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  247. #
  248. #restore_configs
  249. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  250. #for lang in an bg ca cz da de el el_gr en es eu fi fr gl hr hu it jp_kana nl pl pt pt_br ro 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" "$3"; done
  251. #
  252. #restore_configs
  253. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  254. #for lang in an bg ca cz da de el el_gr en es eu fi fr gl hr hu it jp_kana nl pl pt pt_br ro 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" "$3"; done
  255. ######## Example Configurations ##############
  256. #
  257. # Test a basic DUAL_X_CARRIAGE configuration
  258. #
  259. use_example_configs Formbot/T_Rex_3
  260. exec_test $1 $2 "Formbot/T_Rex_3 example configuration." "$3"
  261. #
  262. # BQ Hephestos 2
  263. #restore_configs
  264. #use_example_configs Hephestos_2
  265. #exec_test $1 $2 "Stuff" "$3"
  266. #
  267. # Delta Config (generic) + UBL + ALLEN_KEY + EEPROM_SETTINGS + OLED_PANEL_TINYBOY2
  268. #
  269. use_example_configs delta/generic
  270. opt_enable RESTORE_LEVELING_AFTER_G28 EEPROM_SETTINGS EEPROM_CHITCHAT \
  271. Z_PROBE_ALLEN_KEY AUTO_BED_LEVELING_UBL \
  272. OLED_PANEL_TINYBOY2 MESH_EDIT_GFX_OVERLAY DELTA_CALIBRATION_MENU
  273. opt_set LCD_LANGUAGE ko_KR
  274. opt_set X_DRIVER_TYPE L6470
  275. opt_set Y_DRIVER_TYPE L6470
  276. opt_set Z_DRIVER_TYPE L6470
  277. opt_add L6470_CHAIN_SCK_PIN 53
  278. opt_add L6470_CHAIN_MISO_PIN 49
  279. opt_add L6470_CHAIN_MOSI_PIN 40
  280. opt_add L6470_CHAIN_SS_PIN 42
  281. opt_add "ENABLE_RESET_L64XX_CHIPS(V) NOOP"
  282. exec_test $1 $2 "DELTA, RAMPS, L6470, UBL, Allen Key, EEPROM, OLED_PANEL_TINYBOY2..." "$3"
  283. #
  284. # Delta Config (FLSUN AC because it's complex)
  285. #
  286. use_example_configs delta/FLSUN/auto_calibrate
  287. exec_test $1 $2 "RAMPS 1.3 | DELTA | FLSUN AC Config" "$3"
  288. #
  289. # Makibox Config need to check board type for Teensy++ 2.0
  290. #
  291. #use_example_configs makibox
  292. #exec_test $1 $2 "Stuff" "$3"
  293. #
  294. # Test mixed TMC config
  295. #
  296. restore_configs
  297. opt_set LCD_LANGUAGE vi
  298. opt_set X_DRIVER_TYPE TMC2160
  299. opt_set Y_DRIVER_TYPE TMC5160
  300. opt_set Z_DRIVER_TYPE TMC2208_STANDALONE
  301. opt_set E0_DRIVER_TYPE TMC2130
  302. opt_set X_MIN_ENDSTOP_INVERTING true
  303. opt_set Y_MIN_ENDSTOP_INVERTING true
  304. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER \
  305. MARLIN_BRICKOUT MARLIN_INVADERS MARLIN_SNAKE \
  306. MONITOR_DRIVER_STATUS STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD \
  307. USE_ZMIN_PLUG SENSORLESS_HOMING TMC_DEBUG M114_DETAIL
  308. exec_test $1 $2 "RAMPS | Mixed TMC | Sensorless | RRDFGSC | Games" "$3"
  309. #
  310. # SCARA with Mixed TMC
  311. #
  312. use_example_configs SCARA/Morgan
  313. opt_set LCD_LANGUAGE es
  314. opt_enable USE_ZMIN_PLUG FIX_MOUNTED_PROBE AUTO_BED_LEVELING_BILINEAR PAUSE_BEFORE_DEPLOY_STOW \
  315. MKS_12864OLED EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL Z_SAFE_HOMING \
  316. STEALTHCHOP_XY STEALTHCHOP_Z STEALTHCHOP_E HYBRID_THRESHOLD SENSORLESS_HOMING SQUARE_WAVE_STEPPING
  317. opt_set X_MAX_ENDSTOP_INVERTING false
  318. opt_set X_DRIVER_TYPE TMC2209
  319. opt_set Y_DRIVER_TYPE TMC2130
  320. opt_set Z_DRIVER_TYPE TMC2130_STANDALONE
  321. opt_set E0_DRIVER_TYPE TMC2660
  322. exec_test $1 $2 "RAMPS | SCARA | Mixed TMC | EEPROM" "$3"
  323. #
  324. # tvrrug Config need to check board type for sanguino atmega644p
  325. #
  326. #use_example_configs tvrrug/Round2
  327. #exec_test $1 $2 "Stuff" "$3"
  328. # clean up
  329. restore_configs