My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

megaatmega2560-tests 11KB

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