mega2560 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. # Build with no source filers
  14. #
  15. restore_configs
  16. ci_src_filter -n
  17. exec_test $1 $2 "Default Configuration | no source filtering" "$3"
  18. ci_src_filter -y
  19. #
  20. # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
  21. #
  22. use_example_configs AnimationExample
  23. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO LCD_LANGUAGE fr SAVED_POSITIONS 4 DEFAULT_EJERK 10 \
  24. EXTRUDERS 5 TEMP_SENSOR_1 1 TEMP_SENSOR_2 5 TEMP_SENSOR_3 20 TEMP_SENSOR_4 1000 TEMP_SENSOR_BED 1
  25. opt_enable AUTO_BED_LEVELING_UBL AVOID_OBSTACLES 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 SHOW_CUSTOM_BOOTSCREEN BOOT_MARLIN_LOGO_SMALL \
  27. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT AUTO_REPORT_SD_STATUS SCROLL_LONG_FILENAMES MEDIA_MENU_AT_TOP \
  28. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_MENU_MAIN FREEZE_FEATURE CANCEL_OBJECTS SOUND_MENU_ITEM \
  29. EMERGENCY_PARSER MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE ADVANCE_K_EXTRA QUICK_HOME \
  30. SET_PROGRESS_MANUALLY SET_PROGRESS_PERCENT PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME \
  31. ENCODER_NOISE_FILTER BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL
  32. opt_disable ENCODER_RATE_MULTIPLIER
  33. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL | LIN_ADVANCE ..." "$3"
  34. #
  35. # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
  36. #
  37. use_example_configs AnimationExample
  38. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO LCD_LANGUAGE jp_kana DEFAULT_EJERK 10 \
  39. EXTRUDERS 5 TEMP_SENSOR_1 1 TEMP_SENSOR_2 5 TEMP_SENSOR_3 20 TEMP_SENSOR_4 1000 TEMP_SENSOR_BED 1
  40. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI SHOW_CUSTOM_BOOTSCREEN BOOT_MARLIN_LOGO_SMALL \
  41. SET_PROGRESS_MANUALLY SET_PROGRESS_PERCENT PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES \
  42. SDSUPPORT LONG_FILENAME_WRITE_SUPPORT SDCARD_SORT_ALPHA NO_SD_AUTOSTART USB_FLASH_DRIVE_SUPPORT CANCEL_OBJECTS \
  43. Z_PROBE_SLED AUTO_BED_LEVELING_UBL UBL_HILBERT_CURVE UBL_TILT_ON_MESH_POINTS UBL_TILT_ON_MESH_POINTS_3POINT \
  44. RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT \
  45. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_MENU_MAIN \
  46. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE QUICK_HOME \
  47. NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL \
  48. SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
  49. BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET BABYSTEP_DISPLAY_TOTAL
  50. opt_disable SEGMENT_LEVELED_MOVES
  51. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL | LIN_ADVANCE | Sled Probe | Skew | JP-Kana | Babystep offsets ..." "$3"
  52. #
  53. # 5 runout sensors with distinct states
  54. #
  55. restore_configs
  56. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO NUM_SERVOS 1 \
  57. EXTRUDERS 4 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 TEMP_SENSOR_3 1 TEMP_SENSOR_4 1 FAN_KICKSTART_TIME 500 \
  58. NUM_RUNOUT_SENSORS 4 FIL_RUNOUT2_PIN 44 FIL_RUNOUT3_PIN 45 FIL_RUNOUT4_PIN 46 FIL_RUNOUT5_PIN 47 \
  59. FIL_RUNOUT3_STATE HIGH FILAMENT_RUNOUT_SCRIPT '"M600 T%c"'
  60. opt_enable VIKI2 BOOT_MARLIN_LOGO_ANIMATED SDSUPPORT AUTO_REPORT_SD_STATUS \
  61. Z_PROBE_SERVO_NR Z_SERVO_ANGLES Z_SERVO_MEASURE_ANGLE DEACTIVATE_SERVOS_AFTER_MOVE Z_SERVO_DEACTIVATE_AFTER_STOW \
  62. AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE PROBE_PT_1 PROBE_PT_2 PROBE_PT_3 \
  63. EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL AUTO_REPORT_POSITION \
  64. NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET JOYSTICK \
  65. DIRECT_STEPPING DETECT_BROKEN_ENDSTOP \
  66. FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE Z_SAFE_HOMING FIL_RUNOUT3_PULLUP
  67. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 4 | VIKI2 | Servo Probe | Multiple runout sensors (x4)" "$3"
  68. #
  69. # Extruder Only. No XYZ axes at all.
  70. #
  71. restore_configs
  72. opt_set DEFAULT_AXIS_STEPS_PER_UNIT '{ 4000 }' \
  73. DEFAULT_MAX_FEEDRATE '{ 5 }' \
  74. DEFAULT_MAX_ACCELERATION '{ 100 }' \
  75. MANUAL_FEEDRATE '{ 4*60 }' \
  76. AXIS_RELATIVE_MODES '{ false }' \
  77. HOMING_BUMP_MM '{}' HOMING_BUMP_DIVISOR '{}' HOMING_FEEDRATE_MM_M '{}'
  78. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  79. opt_disable X_DRIVER_TYPE Y_DRIVER_TYPE Z_DRIVER_TYPE
  80. exec_test $1 $2 "E Axis Only | DOGM MarlinUI" "$3"
  81. #
  82. # Mixing Extruder with 5 steppers, Russian
  83. #
  84. restore_configs
  85. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO MIXING_STEPPERS 5 LCD_LANGUAGE ru \
  86. NUM_RUNOUT_SENSORS E_STEPPERS TEMP_SENSOR_BED 0 REDUNDANT_PART_COOLING_FAN 1 \
  87. FIL_RUNOUT2_PIN 16 FIL_RUNOUT3_PIN 17 FIL_RUNOUT4_PIN 4 FIL_RUNOUT5_PIN 5
  88. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY \
  89. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE CONTROLLER_FAN_IGNORE_Z \
  90. XY_AFTER_HOMING EVENT_GCODE_AFTER_HOMING \
  91. FILAMENT_RUNOUT_SENSOR ADVANCED_PAUSE_FEATURE NOZZLE_PARK_FEATURE INPUT_SHAPING_X INPUT_SHAPING_Y INPUT_SHAPING_Z
  92. opt_disable DISABLE_OTHER_EXTRUDERS
  93. exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Input Shaping | Russian" "$3"
  94. #
  95. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  96. #
  97. #restore_configs
  98. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D \
  99. # LCD_FEEDBACK_FREQUENCY_DURATION_MS 10 LCD_FEEDBACK_FREQUENCY_HZ 100
  100. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  101. #
  102. # Enable COREXY
  103. #
  104. #restore_configs
  105. #opt_enable COREXY
  106. #exec_test $1 $2 "Stuff" "$3"
  107. ######## Other Standard LCD/Panels ##############
  108. #
  109. # ULTRA_LCD
  110. #
  111. #restore_configs
  112. #opt_enable ULTRA_LCD
  113. #exec_test $1 $2 "Stuff" "$3"
  114. #
  115. # DOGLCD
  116. #
  117. #restore_configs
  118. #opt_enable DOGLCD
  119. #exec_test $1 $2 "Stuff" "$3"
  120. #
  121. # MAKRPANEL
  122. # Needs to use Melzi and Sanguino hardware
  123. #
  124. #restore_configs
  125. #opt_enable MAKRPANEL
  126. #exec_test $1 $2 "Stuff" "$3"
  127. #
  128. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  129. #
  130. #restore_configs
  131. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  132. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  133. #exec_test $1 $2 "Stuff" "$3"
  134. #
  135. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  136. #
  137. #restore_configs
  138. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  139. #opt_set SDSORT_GCODE true SDSORT_USES_RAM true SDSORT_USES_STACK true SDSORT_CACHE_NAMES true
  140. #exec_test $1 $2 "Stuff" "$3"
  141. #
  142. # REPRAPWORLD_KEYPAD
  143. #
  144. # Can't find configuration details to get it to compile
  145. #restore_configs
  146. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  147. #exec_test $1 $2 "Stuff" "$3"
  148. #
  149. # RA_CONTROL_PANEL
  150. #
  151. #restore_configs
  152. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  153. #exec_test $1 $2 "Stuff" "$3"
  154. ######## I2C LCD/PANELS ##############
  155. #
  156. # !!!ATTENTION!!!
  157. # Most I2C configurations are failing at the moment because they require
  158. # a different Liquid Crystal library "LiquidTWI2".
  159. #
  160. # LCD_SAINSMART_I2C_1602
  161. #
  162. #restore_configs
  163. #opt_enable LCD_SAINSMART_I2C_1602
  164. #exec_test $1 $2 "Stuff" "$3"
  165. #
  166. # LCD_I2C_PANELOLU2
  167. #
  168. #restore_configs
  169. #opt_enable LCD_I2C_PANELOLU2
  170. #exec_test $1 $2 "Stuff" "$3"
  171. #
  172. # LCD_I2C_VIKI
  173. #
  174. #restore_configs
  175. #opt_enable LCD_I2C_VIKI
  176. #exec_test $1 $2 "Stuff" "$3"
  177. #
  178. # LCM1602
  179. #
  180. #restore_configs
  181. #opt_enable LCM1602
  182. #exec_test $1 $2 "Stuff" "$3"
  183. #
  184. # Test Laser features with 12864 LCD
  185. #
  186. # restore_configs
  187. # opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 0 LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 TEMP_SENSOR_1 0 SERIAL_PORT_2 2 \
  188. # DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 400 }' \
  189. # DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  190. # DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  191. # MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  192. # AXIS_RELATIVE_MODES '{ false, false, false }'
  193. # opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT MEATPACK_ON_SERIAL_PORT_1 \
  194. # LASER_FEATURE LASER_SAFETY_TIMEOUT_MS LASER_COOLANT_FLOW_METER AIR_EVACUATION AIR_EVACUATION_PIN AIR_ASSIST AIR_ASSIST_PIN LASER_SYNCHRONOUS_M106_M107
  195. # exec_test $1 $2 "MEGA2560 RAMPS | Laser Options | 12864 | Meatpack | Fan Sync | SERIAL_PORT_2 " "$3"
  196. #
  197. # Test Laser features with 44780 LCD
  198. #
  199. # restore_configs
  200. # opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 0 LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 TEMP_SENSOR_1 0 \
  201. # DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 400 }' \
  202. # DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  203. # DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  204. # MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  205. # AXIS_RELATIVE_MODES '{ false, false, false }'
  206. # opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT PRINTCOUNTER I2C_AMMETER \
  207. # LASER_FEATURE LASER_SAFETY_TIMEOUT_MS LASER_COOLANT_FLOW_METER AIR_EVACUATION AIR_EVACUATION_PIN AIR_ASSIST AIR_ASSIST_PIN
  208. # exec_test $1 $2 "MEGA2560 RAMPS | Laser Feature | Air Evacuation | Air Assist | Cooler | Laser Safety Timeout | Flowmeter | 44780 LCD " "$3"
  209. #
  210. # Test redundant temperature sensors + MAX TC + Backlight Timeout
  211. #
  212. # restore_configs
  213. # opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 1 \
  214. # TEMP_SENSOR_0 -2 TEMP_SENSOR_REDUNDANT -2 \
  215. # TEMP_SENSOR_REDUNDANT_SOURCE E1 TEMP_SENSOR_REDUNDANT_TARGET E0 \
  216. # TEMP_0_CS_PIN 11 TEMP_1_CS_PIN 12 \
  217. # LCD_BACKLIGHT_TIMEOUT_MINS 2
  218. # opt_enable MPCTEMP MINIPANEL
  219. # opt_disable PIDTEMP
  220. # exec_test $1 $2 "MEGA2560 RAMPS | Redundant temperature sensor | 2x MAX6675 | BL Timeout" "$3"
  221. #
  222. # Polargraph Config
  223. #
  224. # use_example_configs Polargraph
  225. # exec_test $1 $2 "RUMBA | POLARGRAPH | RRD LCD" "$3"
  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_CY en es eu fi fr gl hr hu it jp_kana nl pl pt pt_br ro ru sk sv 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
  232. #
  233. #restore_configs
  234. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  235. #for lang in an bg ca cz da de el el_CY en es eu fi fr gl hr hu it jp_kana nl pl pt pt_br ro ru sk sv 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
  236. ######## Example Configurations ##############
  237. #
  238. # Test a basic DUAL_X_CARRIAGE configuration
  239. #
  240. # use_example_configs Formbot/T_Rex_3
  241. # exec_test $1 $2 "Formbot/T_Rex_3 example configuration." "$3"
  242. #
  243. # BQ Hephestos 2
  244. #restore_configs
  245. #use_example_configs BQ/Hephestos_2
  246. #exec_test $1 $2 "Stuff" "$3"
  247. #
  248. # Makibox Config need to check board type for Teensy++ 2.0
  249. #
  250. #use_example_configs makibox
  251. #exec_test $1 $2 "Stuff" "$3"
  252. #
  253. # tvrrug Config need to check board type for sanguino atmega644p
  254. #
  255. #use_example_configs tvrrug/Round2
  256. #exec_test $1 $2 "Stuff" "$3"
  257. #
  258. # Test progress display rotation
  259. #
  260. restore_configs
  261. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB
  262. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER \
  263. SET_PROGRESS_MANUALLY SET_PROGRESS_PERCENT SET_REMAINING_TIME SET_INTERACTION_TIME M73_REPORT \
  264. SHOW_PROGRESS_PERCENT SHOW_ELAPSED_TIME SHOW_REMAINING_TIME SHOW_INTERACTION_TIME PRINT_PROGRESS_SHOW_DECIMALS
  265. exec_test $1 $2 "MEGA2560 RAMPS | 128x64 | progress rotation" "$3"
  266. opt_enable LIGHTWEIGHT_UI
  267. exec_test $1 $2 "MEGA2560 RAMPS | 128x64 LIGHTWEIGHT_UI | progress rotation" "$3"
  268. opt_disable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  269. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER
  270. exec_test $1 $2 "MEGA2560 RAMPS | HD44780 | progress rotation" "$3"