Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when compiling default download #3

Open
TimNe0 opened this issue Jun 12, 2017 · 10 comments
Open

error when compiling default download #3

TimNe0 opened this issue Jun 12, 2017 · 10 comments

Comments

@TimNe0
Copy link

TimNe0 commented Jun 12, 2017

this help?

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\admin\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10802 -build-path C:\Users\admin\AppData\Local\Temp\arduino_build_813787 -warnings=none -build-cache C:\Users\admin\AppData\Local\Temp\arduino_cache_649576 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\admin\Desktop\MarlinKimbra-K40-master\MK\MK.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\admin\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10802 -build-path C:\Users\admin\AppData\Local\Temp\arduino_build_813787 -warnings=none -build-cache C:\Users\admin\AppData\Local\Temp\arduino_cache_649576 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\admin\Desktop\MarlinKimbra-K40-master\MK\MK.ino
Using board 'mega' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\MK.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\admin\Documents\Arduino\libraries\U8glib\src" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\MK.ino.cpp" -o "nul"
Using cached library dependencies for file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\Configuration_Store.cpp
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\U8glib.cpp
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\chessengine.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_bitmap.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_circle.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_clip.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_api.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_api_16gr.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_attiny85_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_common.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_fast_parallel.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_hw_usart_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_no_en_parallel.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_parallel.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_port_d_wr.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_ssd_i2c.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_st7920_custom.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_st7920_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_st7920_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_std_sw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_sw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_t6963.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_arduino_uc_i2c.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atmega_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atmega_parallel.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atmega_st7920_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atmega_st7920_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atmega_sw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atxmega_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_atxmega_st7920_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_i2c.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_io.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_linux_ssd_i2c.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_msp430_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_null.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_psoc5_ssd_hw_parallel.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_raspberrypi_hw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_raspberrypi_ssd_i2c.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_com_std_sw_spi.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_cursor.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_delay.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_a2_micro_printer.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_flipdisc_2x7.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_gprof.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ht1632.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ili9325d_320x240.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ks0108_128x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_lc7981_160x80.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_lc7981_240x128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_lc7981_240x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_lc7981_320x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ld7032_60x32.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_null.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_pcd8544_84x48.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_pcf8812_96x65.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_sbn1661_122x32.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1306_128x32.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1306_128x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1306_64x48.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1309_128x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1322_nhd31oled_bw.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1322_nhd31oled_gr.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1325_nhd27oled_bw.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1325_nhd27oled_bw_new.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1325_nhd27oled_gr.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1325_nhd27oled_gr_new.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1327_96x96_gr.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1351_128x128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_ssd1353_160x128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_64128n.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_dogm128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_dogm132.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_lm6059.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_lm6063.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_nhd_c12832.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7565_nhd_c12864.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7687_c144mvgd.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7920_128x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7920_192x32.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_st7920_202x32.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_t6963_128x128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_t6963_128x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_t6963_240x128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_t6963_240x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_tls8204_84x48.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1601_c128032.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1608_240x128.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1608_240x64.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1610_dogxl160.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1611_dogm240.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1611_dogxl240.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1701_dogs102.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_dev_uc1701_mini12864.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_ellipse.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_font.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_font_data.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_line.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_ll_api.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_page.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb14v1.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb16h1.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb16h2.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb16v1.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb16v2.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb32h1.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb8h1.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb8h1f.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb8h2.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb8h8.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb8v1.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pb8v2.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pbxh16.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_pbxh24.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_polygon.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_rect.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_rot.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_scale.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_state.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_u16toa.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_u8toa.c
Using cached library dependencies for file: C:\Users\admin\Documents\Arduino\libraries\U8glib\src\clib\u8g_virtual_screen.c
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\admin\Documents\Arduino\libraries\U8glib\src" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\MK.ino.cpp" -o "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\Configuration_Store.cpp.o
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Users\admin\Documents\Arduino\libraries\U8glib\src" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\MK.ino.cpp" -o "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\MK.ino.cpp.o"
Compiling libraries...
Compiling library "U8glib"
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\U8glib.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\chessengine.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_bitmap.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_circle.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_clip.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_api.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_api_16gr.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_attiny85_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_common.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_fast_parallel.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_hw_usart_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_no_en_parallel.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_parallel.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_port_d_wr.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_ssd_i2c.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_st7920_custom.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_st7920_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_st7920_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_std_sw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_sw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_t6963.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_uc_i2c.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_parallel.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_st7920_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_st7920_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_sw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atxmega_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atxmega_st7920_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_i2c.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_io.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_linux_ssd_i2c.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_msp430_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_null.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_psoc5_ssd_hw_parallel.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_raspberrypi_hw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_raspberrypi_ssd_i2c.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_std_sw_spi.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_cursor.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_delay.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_a2_micro_printer.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_flipdisc_2x7.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_gprof.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ht1632.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ili9325d_320x240.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ks0108_128x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_160x80.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_240x128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_240x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_320x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ld7032_60x32.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_null.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_pcd8544_84x48.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_pcf8812_96x65.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_sbn1661_122x32.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1306_128x32.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1306_128x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1306_64x48.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1309_128x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1322_nhd31oled_bw.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1322_nhd31oled_gr.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_bw.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_bw_new.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_gr.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_gr_new.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1327_96x96_gr.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1351_128x128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1353_160x128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_64128n.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_dogm128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_dogm132.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_lm6059.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_lm6063.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_nhd_c12832.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_nhd_c12864.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7687_c144mvgd.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7920_128x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7920_192x32.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7920_202x32.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_128x128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_128x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_240x128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_240x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_tls8204_84x48.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1601_c128032.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1608_240x128.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1608_240x64.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1610_dogxl160.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1611_dogm240.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1611_dogxl240.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1701_dogs102.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1701_mini12864.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_ellipse.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_font.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_font_data.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_line.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_ll_api.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_page.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb14v1.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16h1.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16h2.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16v1.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16v2.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb32h1.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h1.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h1f.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h2.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h8.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8v1.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8v2.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pbxh16.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pbxh24.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_polygon.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_rect.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_rot.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_scale.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_state.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_u16toa.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_u8toa.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_virtual_screen.c.o
Compiling core...
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\wiring_pulse.S.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\WInterrupts.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\hooks.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\wiring.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\wiring_analog.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\wiring_digital.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\wiring_pulse.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\wiring_shift.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\CDC.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\HardwareSerial0.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\PluggableUSB.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\Print.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\Stream.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\Tone.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\USBCore.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\WMath.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\WString.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\abi.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\main.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\new.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_813787\core\core.a
Archiving built core (caching) in: C:\Users\admin\AppData\Local\Temp\arduino_cache_649576\core\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\Users\admin\AppData\Local\Temp\arduino_build_813787/MK.ino.elf" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\Configuration_Store.cpp.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\sketch\MK.ino.cpp.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\U8glib.cpp.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\chessengine.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_bitmap.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_circle.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_clip.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_api.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_api_16gr.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_attiny85_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_common.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_fast_parallel.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_hw_usart_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_no_en_parallel.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_parallel.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_port_d_wr.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_ssd_i2c.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_st7920_custom.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_st7920_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_st7920_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_std_sw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_sw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_t6963.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_arduino_uc_i2c.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_parallel.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_st7920_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_st7920_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atmega_sw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atxmega_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_atxmega_st7920_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_i2c.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_io.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_linux_ssd_i2c.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_msp430_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_null.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_psoc5_ssd_hw_parallel.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_raspberrypi_hw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_raspberrypi_ssd_i2c.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_com_std_sw_spi.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_cursor.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_delay.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_a2_micro_printer.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_flipdisc_2x7.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_gprof.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ht1632.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ili9325d_320x240.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ks0108_128x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_160x80.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_240x128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_240x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_lc7981_320x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ld7032_60x32.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_null.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_pcd8544_84x48.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_pcf8812_96x65.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_sbn1661_122x32.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1306_128x32.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1306_128x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1306_64x48.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1309_128x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1322_nhd31oled_bw.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1322_nhd31oled_gr.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_bw.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_bw_new.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_gr.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1325_nhd27oled_gr_new.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1327_96x96_gr.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1351_128x128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_ssd1353_160x128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_64128n.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_dogm128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_dogm132.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_lm6059.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_lm6063.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_nhd_c12832.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7565_nhd_c12864.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7687_c144mvgd.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7920_128x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7920_192x32.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_st7920_202x32.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_128x128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_128x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_240x128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_t6963_240x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_tls8204_84x48.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1601_c128032.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1608_240x128.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1608_240x64.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1610_dogxl160.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1611_dogm240.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1611_dogxl240.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1701_dogs102.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_dev_uc1701_mini12864.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_ellipse.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_font.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_font_data.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_line.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_ll_api.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_page.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb14v1.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16h1.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16h2.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16v1.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb16v2.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb32h1.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h1.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h1f.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h2.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8h8.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8v1.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pb8v2.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pbxh16.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_pbxh24.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_polygon.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_rect.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_rot.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_scale.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_state.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_u16toa.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_u8toa.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787\libraries\U8glib\clib\u8g_virtual_screen.c.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_813787/core\core.a" "-LC:\Users\admin\AppData\Local\Temp\arduino_build_813787" -lm
C:\Users\admin\AppData\Local\Temp\ccVi7uH2.ltrans0.ltrans.o: In function `main':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

Using library U8glib at version 1.19.1 in folder: C:\Users\admin\Documents\Arduino\libraries\U8glib
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

@TimNe0
Copy link
Author

TimNe0 commented Jun 12, 2017

use arduino IDE 1.6.8

@prusanoff
Copy link

I get this error in every version of Arduino even the latest

@prusanoff
Copy link

`Arduino: 1.8.1 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

/var/folders/n1/h4k4t7kn10l6qj_jbpmm26c00000gp/T//ccnfdGcH.ltrans0.ltrans.o: In function main': /Users/Documents/Laser/ZIP/MarlinKimbra-K40-master/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:43: undefined reference to setup'
/Users/Documents/Laser/ZIP/MarlinKimbra-K40-master/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:46: undefined reference to `loop'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
`

I get this on arduino 1.8.1

@dewhisna
Copy link

dewhisna commented Dec 26, 2017

I encountered the same thing with Arduino 1.8.5. The problem is the horrible Arduino IDE and its heuristics for automagically finding source files -- something they do so that developers using the Arduino IDE don't have to actually learn how to do real project configuration management. The proper way to do it would be to ditch the Arduino IDE and write a CMakeLists.txt file and use CMake (or whatever build system you prefer). I do that for my own projects that I write from scratch, but I'm too busy/lazy (at least right now) to rework this one...

Here's how I made it work on Linux -- this should also work on Mac (though the exact syntax for the command may be slightly different in its BSD world). Windows only recently started having real links, so there should be something similar in powershell, otherwise you could use junction to make a directory junction.

First, exit the Arduino IDE, since it isn't smart enough to see file and directory changes if you modify things behind its back. Then at a shell prompt, cd to the MK subfolder in your repository clone/checkout folder. Create a symbolic link for src to point to the module subfolder with:

ln -s module src

Open the Arduino IDE and load the MK.ino sketch file and now it should compile.

Originally, I think the Arduino IDE automatically compiled every source file in all the subfolders for a project. But I think this was causing problems when people also included code examples and such that weren't actually part of the project. So, they changed their heuristics to start restricting the folders searched to a subset, of which src is included but module is not. Therefore, the symbolic link helps it to find the files. And since it's a link, you can edit the files from either location and have a single coherent group of files.

This is sort of a kludge around the crappy Arduino IDE. But this will work until someone can write a proper CMakeLists.txt file or even a Makefile to use with something like Arduino.mk at https://github.com/sudar/Arduino-Makefile...

Another solution, that's a bit more work, would be to rename the module subfolder to just be src. But then you also have to edit all of the source files, like base.h, that have module in include paths and change them to all be src. A lot more invasive than the simple symbolic link addition, but would be the correct long-term solution if this project wants to remain locked to the Arduino IDE.

EDIT: Looks like just renaming module to src isn't as bad as I thought, as base.h is the only file actually containing path names with module in it (I was afraid many files were involved), and renaming the folder and editing that one source file is a better solution than using the symbolic link due to compiler file dependency mapping.

@prusanoff
Copy link

SWEET it worked

I am still getting these errors is this normal

sketch/src/lcd/ultralcd.cpp: In function 'void action_laser_test_800_50ms()': sketch/src/lcd/ultralcd.cpp:1613:25: warning: large integer implicitly truncated to unsigned type [-Woverflow] laser_test_fire(800, 50); ^ sketch/src/lcd/ultralcd.cpp: In function 'void action_laser_test_800_100ms()': sketch/src/lcd/ultralcd.cpp:1617:26: warning: large integer implicitly truncated to unsigned type [-Woverflow] laser_test_fire(800, 100); ^ sketch/src/lcd/ultralcd.cpp: In function 'void action_laser_test_1000_50ms()': sketch/src/lcd/ultralcd.cpp:1621:26: warning: large integer implicitly truncated to unsigned type [-Woverflow] laser_test_fire(1000, 50); ^ sketch/src/lcd/ultralcd.cpp: In function 'void action_laser_test_1000_100ms()': sketch/src/lcd/ultralcd.cpp:1625:27: warning: large integer implicitly truncated to unsigned type [-Woverflow] laser_test_fire(1000, 100); ^ sketch/src/lcd/ultralcd.cpp: In function 'void action_laser_test_1500_50ms()': sketch/src/lcd/ultralcd.cpp:1629:26: warning: large integer implicitly truncated to unsigned type [-Woverflow] laser_test_fire(1500, 50); ^ sketch/src/lcd/ultralcd.cpp: In function 'void action_laser_test_1500_100ms()': sketch/src/lcd/ultralcd.cpp:1633:27: warning: large integer implicitly truncated to unsigned type [-Woverflow] laser_test_fire(1500, 100); ^ sketch/src/nextion/NexHardware.cpp: In function 'bool recvRetNumber(uint32_t*, uint32_t)': sketch/src/nextion/NexHardware.cpp:68:31: warning: left shift count >= width of type *number = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]); ^ sketch/src/nextion/NexHardware.cpp:68:49: warning: left shift count >= width of type *number = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]); ^ Sketch uses 112052 bytes (44%) of program storage space. Maximum is 253952 bytes. Global variables use 8122 bytes (99%) of dynamic memory, leaving 70 bytes for local variables. Maximum is 8192 bytes. Low memory available, stability problems may occur.

@dewhisna
Copy link

dewhisna commented Dec 28, 2017

Well, for this particular code, the warnings are "normal", as this code still has lots of bugs. The warnings about the "large integer implicitly truncated to unsigned type" comes from the fact that numbers like 800 and 1500 in the call to laser_test_fire don't fit in an 8-bit data type. The function signature is static void laser_test_fire(uint8_t power, int dwell).

That warning means that 800 will be converted down to 32. The 1000 will be 232. And the 1500 will be 220. So it will hardly do what it was intended to do. If you are wondering how I derived those values, you just take the number 'mod 256'. In other words, divide by 256 and keep the remainder only. This is because the processor will only be treating it as a byte value and using the last 8-bits of it. So those warnings mean the code is buggy and isn't going to work as intended -- nothing to do with your compiler setup and configuration, but the code itself is bad.

However, the last warning is the bigger concern. Having global variables use 8122 of the 8192 bytes of RAM means you only have 70 bytes free for stack variables in functions -- and every function they call and every function those other functions call, etc. And for any interrupts going on at the same time.

To put it bluntly -- it won't have enough memory to actually run and that alone will cause strange random problems and crashes. It's interesting, though, that you only have 70 bytes free. When I compiled this code base, I had closer to 470 free. You must have chosen different configuration options than I did? Though the 470 on mine still wasn't enough! The only way I could get it to not have weird random issues and functionality problems from a lack of memory was to disable the SD Card support, which more than doubled what I had free.

But then, depending on your setup, you'll run into additional issues, much as I did, as this code as a whole is very very old. I gave up on this one and moved back to the original sources for it. It came from the MKFirmware guys. And specifically from their now deprecated code base at: https://github.com/MKFirmware/MarlinKimbra.

I don't know why @Downunder35m started a whole new independent git repository for it. He should have at least forked the original and then started a new branch with his code changes -- that would have kept all of the version history and allowed for easy merging and rebasing to pull in updates from the original. Or, if he really wanted it to be an independent repository, he should have started a new empty repo, set it as an upstream remote for his current checkout of the original code, and pushed the original repo's code to his new repository. Either one would have kept the history and connection with the source repository and allowed a way to do easy merging and updating. But, this is a completely orphaned copy with no viable ways of doing updates without a lot of work.

You could pull the original repository and write a script to diff every commit against this repository's initial commit to find the commit from where this snapshot was taken, and then branch there, rebase these changes into it, and then merge back to the trunk. But that's a lot of work for little gain. Fortunately, there's only 4 new commits after the initial commit that pushed the original code. So you can diff each one and see if there is anything worth keeping.

For my case, I found that it really wasn't. Instead, I've moved to the newest MarlinKimbra code: https://github.com/MKFirmware/MK4duo. It's a dual code base that supports BOTH the AVR and the Atmel ARM SAM micros -- in other words, it works on both the ATmega2560 Arduino Mega boards and the SAM3X8E Arduino Due boards too -- all from the same code base.

It looks like they've implemented a lot of the changes that @Downunder35m was working on for raster support. And more importantly, I was able to compile and run it on my ATmega2560 board with full SDCard support, etc, enabled, and it had around 1200 bytes free memory, as they've done a decent job in optimizing the code's memory usage. So it wasn't crashing and tripping getting out of the starting gate.

Now, it isn't perfect. I'm still trying to hunt down some timing issues they've introduced somewhere in the HAL delay loop that's affecting UI based timing functions and causing LCD initialization and communications problems for some users. And the default fonts and such are clipped off the screen on the RepRap full-graphic screen, but if you switch to the smaller font, it works. And there's other minor bugs, but it's still being actively worked on by the original group.

I have forked it here: https://github.com/dewhisna/MK4duo and will be creating a K40LaserCustom branch with my K40 laser customizations -- for example, getting the correct steps per unit on the motors, etc.

I've also found that, at least for my laser configuration, that the settings used in the code here by @Downunder35m don't work quite right. The steps per unit on the motors is off by a factor of 2 on X and Y and had no Z defined. And the motor acceleration settings was causing excessive chattering and jerking on the carriage -- to the point it would affect cutability. The values in the, now ancient, TurnkeyTyranny Repository were much closer to what I needed for my setup. So you'll want to compare both on your setup and find what works best for yours.

Also, I have yet to get the Inkscape plugin in this repository to work correctly. Every time I try to run it, it ends up crashing my Inkscape completely. For vector work, I have used the "ShineyLaser" Inkscape plugin successfully, but I'm still digging for a raster solution. I'm sure there's other variations out there.

So... I highly suggest you switch to the https://github.com/MKFirmware/MK4duo code base and use it instead of this one. You can compare its default configuration settings and the original TurnkeyTyranny K40 settings and find what works well for your setup.

To actually answer your original question: yes, that's normal for this particular code repository, but those warnings mean it isn't going to work for you.

@dewhisna
Copy link

Oh, and by the way, the current https://github.com/MKFirmware/MK4duo code (and even the deprecated https://github.com/MKFirmware/MarlinKimbra code) renamed the module folder to src to fix the compile problem with the latest Arduino IDE. So it will just compile as-is. :-)

@prusanoff
Copy link

prusanoff commented Dec 29, 2017

@dewhisna Thank you soooo much for your wisdom here Especially this time of the year. Definitely will do ln -s module src from now on with every repo on Arduino !!!!!!

I am running my K40 on a new MKS Gen Ramps 1.4 Board

Also I am working on a mac book pro 2013 and Inkscape drives me crazy however
I really like J Teck Photonic Laser tool Plugin (no raster ;(.. )

I have got the new version of marlin running on it great.
It takes tight turns and curves nice and fast
Although no G0 move and G1 cut

I was thinking of forking Plain old Marlin and adding G0 and G1 functionality, After several attempts at getting it to work, I gave up. I am a JS programmer with little to none experience in Basic/Arduino

For Raster I switch to Marlin Kimbra Duo and the code works kinda sloppy.
I have not been able to set the correct laser power and get a full image because of unpredictability of it working on MKDuo and Jerkiness
It jerks around the head and you can forget about cutting tight curves (< 10 mm)
It seems to me that it takes way to long for it to read the g-code before it moves to the next position
you can read my original post to that group here

Do you have any idea what is causing this ???

I am using LaserWeb4. It is a nice interface and simple enough to use with some advanced features

Lastly, I am not sure if you read the Read.me in the repo but it states that we need to edit the Arduino file an add
mega256.build.extra_flags=-DSERIAL_RX_BUFFER_SIZE=256 -DSERIAL_TX_BUFFER_SIZE=256

It helped a little when I flashed it with MKDuo

@dewhisna
Copy link

No, don't do a ln -s module src in all Arduino repos! That was a kludgy workaround that I offered as a "quick-fix" to get this old repository to compile. Most Arduino projects won't have a folder called 'module' in the first place -- that was very specific to MarlinKimbra. And those that do, if they are using the Arduino IDE, will have already renamed it to 'src' or such to make it compile on the newer IDE anyway. So you do NOT want to do the link in general. So don't train yourself with that bad habit.

Also, to set the record straight, this code isn't 'Basic' and 'Arduino' isn't a programming language. The code is C++ code. It's actually more just C code than C++. They are making use of the class hierarchy of C++ for code modularization, but little else from C++ (no templates or STL etc), mainly because the AVR micros don't really have enough resources for things like dynamically allocated heap memory. But it's C/C++ code.

Arduino is just the general architecture of circuit board designs and an IDE environment with some standard libraries for supporting them. Their IDE handles the code-build logic that you'd normally do in things like a Makefile or CMake project, etc. In other words, it coordinates how to locate the various files and when to compile which files and handles source file interdependency.

Another way to put it is that the Arduino IDE is "reinventing the wheel", so to speak, to make it easier for the average Arduino code developer. In the process, though, they are instilling some bad coding habits into its developers. For example, they are suppressing certain warnings in the compilation, such as the preprocessor macro redefinitions, and it causes developers using it to think their code is OK, but in reality it may not be. By suppressing those warnings, you miss seeing things that are potential bugs in the code and really just make it much harder to debug and fix your code.

But all of that aside and back to the matter at hand...

Have you gone through all of the Configuration files and set everything to your machine configuration?? It sounds like you have not. For starters on the G0/G1 question, you will need to edit the Configuration_Laser.h file and change the following:

// The following defines select which G codes tell the laser to fire. It's OK to uncomment more than one.
#define LASER_FIRE_SPINDLE    // fire the laser on M3, extinguish on M5
//#define LASER_FIRE_G1       // fire the laser on a G1 move, extinguish when the move ends
//#define LASER_FIRE_E        // fire the laser when the E axis moves

Notice the last two are commented out by default. The one you need to enable is the LASER_FIRE_G1 line. I've uncommented all three lines on my configuration.

For your raster work, what are you using in your software for intensity settings?? Are you using 0-100 as a percentage? Or are you using 0-255, i.e. a complete byte? If you are using a byte to get more range and precision, you'll want to uncomment the following line, also in Configuration_Laser.h:

// Normally the intensity is a value between 0 and 100 percent.
// If you want a value in bytes (0 to 255), activate the following function.
//#define INTENSITY_IN_BYTE

While in that Configuration_Laser.h file, make sure to set the LASER_CONTROL define to your system. For the K40, you'll probably want it set to 2 if you have the same K40 setup as most people do:

// The following define selects how to control the laser.
// Please choose the one that matches your setup.
// 1 = Single pin control - LASER_PWR_PIN LOW when off, HIGH when on, PWM to adjust intensity
// 2 = Two pin control    - LASER_PWR_PIN for which LOW = off, HIGH = on, and a seperate LASER_PWM_PIN which carries a constant PWM signal and adjusts duty cycle to control intensity
#define LASER_CONTROL 2

And check how you have the 'fire' pin wired on your power supply. If you are going straight out of your board into the power supply, you'll want to leave HIGH_TO_FIRE commented out, as you need a low signal to fire the laser. But, some lasers, such as mine, since I designed a custom interface board of my own to go between my RAMPS board and the laser power supply, needs a high signal to fire the laser, so I had to uncomment the HIGH_TO_FIRE setting. If you get this backwards, your laser will be firing when it shouldn't and not when it should.

The jerking and moving issues are probably because you don't have the acceleration and feedrate settings correct in the Configuration_Cartesian.h file. For my K40 laser with the original motors, belts, pulleys, etc, on the X and Y axis, I found that following settings to work fairly well. This is a list of all of the changes I have made to my Configuration_Cartesian.h file. I've cut it down to just the changed lines, so you'll need to hunt through your file and find the equivalent lines to change:

#define CUSTOM_MACHINE_NAME "K40 Laser"

#define X_MAX_POS 337
#define X_MIN_POS 0
#define Y_MAX_POS 230
#define Y_MIN_POS 0
#define Z_MAX_POS 75
#define Z_MIN_POS 0
#define E_MIN_POS 0

// Default steps per unit               X,  Y,    Z,  E0...(per extruder)
#define DEFAULT_AXIS_STEPS_PER_UNIT   {157.4802, 157.4802, 6047.2440, 625, 625, 625, 625}

//                                       X,   Y, Z,  E0...(per extruder). (mm/sec)
#define DEFAULT_MAX_FEEDRATE          {7600, 7600, 10, 25, 100, 100, 100}
// Feedrates for manual moves along        X,     Y,     Z,  E from panel
#define MANUAL_FEEDRATE               {60*60, 60*60, 4*60, 10*60}

//  Maximum start speed for accelerated moves.    X,    Y,  Z,   E0...(per extruder)
#define DEFAULT_MAX_ACCELERATION              {2600, 2600, 2.5, 2.5, 1000, 1000, 1000}
//  Maximum acceleration in mm/s^2 for retracts   E0... (per extruder)
#define DEFAULT_RETRACT_ACCELERATION          {30000, 10000, 10000, 10000}
//  X, Y, Z and E* maximum acceleration in mm/s^2 for printing moves
#define DEFAULT_ACCELERATION          2000
//  X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
#define DEFAULT_TRAVEL_ACCELERATION   2000

#define DEFAULT_XJERK 20.0
#define DEFAULT_YJERK 20.0
#define DEFAULT_ZJERK  0.4
// E0... (mm/sec) per extruder
#define DEFAULT_EJERK                   {3000.0, 5.0, 5.0, 5.0}

// Homing speeds (mm/m)
#define HOMING_FEEDRATE_X (60*60)
#define HOMING_FEEDRATE_Y (60*60)
#define HOMING_FEEDRATE_Z (4*60)

// Homing hits each endstop, retracts by these distances, then does a slower bump.
#define X_HOME_BUMP_MM 15
#define Y_HOME_BUMP_MM 15
#define Z_HOME_BUMP_MM 2

// Re-Bump Speed Divisor (Divides the Homing Feedrate)
#define HOMING_BUMP_DIVISOR {2, 2, 2}

I'm still in the process of gutting and "RAMPifying" my K40 laser, so these settings are still somewhat preliminary on my setup. I very likely will be making some additional changes as I settle on specific hardware modifications. So you need to experiment and tweak your settings to what works best for you.

And of course, make certain that in your Configuration_Feature.h file, you have enabled the Laser:

/**************************************************************************
 ********************************* Laser **********************************
 **************************************************************************
 *                                                                        *
 * Support for laser beam                                                 *
 * Check also Configuration_Laser.h                                       *
 *                                                                        *
 **************************************************************************/
#define LASER

If you don't enable it, you'll have the code to move the carriage around, but nothing to fire the laser, as the laser code won't get compiled into the firmware image.

Also, in that Features file you'll want to enable other settings for your system, like what LCD you have, if any, what font to use for it, how to work the LCD input encoder, and whether or not you have an SDCard, etc.

Be sure to only enable one LCD configuration, or you'll probably get compilation errors, as they have a sanity_check code that tries to verify the configuration. I don't know that it can catch 100% of configuration errors, so take care with your configuration settings.

And also note that many of these settings can be changed and/or overridden in the EEPROM settings. So if you change things in the code and you are using EEPROM to hold your settings, make sure you nuke the EEPROM with the new settings or else you may not see the results of the things you change. This is especially true for the acceleration and jerk settings!

To do this, you can manually issue the M500 through M503 gcode commands. M500 stores the current configuration to EEPROM. M501 loads the configuration from EEPROM. M502 resets the configuration to your default settings in your source code. And M503 displays the current settings.

So... after updating and reflashing your controller, you'll want to use a M503 to display the current configuration and make sure that it matches what you just set in the code. If not, issue a M502 to set things to their defaults from the code. And a M500 to write the new settings to EEPROM. You can do this from most programs that can send/receive gcode over the serial interface and that dump the results on the screen for you. I'm not familiar with LaserWeb that you mention to know if it can or not -- I know Pronterface Printrun will and is a good debugging tool, even if you aren't using it to actually run your laser in general.

As for the serial Rx and Tx buffer size, I don't know if you need that or not. I have not needed any additional buffer space. Be careful, though, if you increase those you will consume additional RAM memory, which is a precious commodity on the ATmega2560. I can possibly see needing additional Rx space for the raster mode, but you shouldn't need any additional Tx buffer. It also depends on your sending system, your general USB configuration, and whether or not you are using flow control.

You can certainly experiment with those numbers, but keep an eye on your memory usage. Compare the RAM usage against the available 8192 bytes. For example, on my setup, I'm currently using 6955 of 8192 (or 84.9%). Anything much over 80-85% usage and you risk running out of RAM for functions. As every local variable in every function on the call stack has to fit in the space that is left over!

And if it runs out of RAM, it's not like the processor will actually know it and warn you. It will smash other variables and randomly overwrite things and all sorts of random chaos will reign -- a very difficult problem to debug.

There are some provisions in this codebase for monitoring memory usage, by recording and reporting memory pointers when entering/exiting functions. But using that will require you to setup a debug environment for your hardware and a way to look at those recorded pointers.

So my suggestion for you instead is to just make sure you don't run the processor out of RAM to begin with. Disable things you aren't using and keep an eye on the reported RAM usage after you compile the code.

Also on the Rx and Tx buffer sizes, I remember reading in the code that they must always be an even power of two, like 32, 64, 128, 256, etc. They require that to optimize the math needed in the code for implementing the circular buffer logic. So if you change those, be sure to use a power of two value.

@dewhisna
Copy link

dewhisna commented Jan 1, 2018

You know, I totally missed seeing all of the details on your other post in the other repository. My browser had scrolled to the end of it, so I missed seeing the settings that you had been trying. Sorry about that!

I still think it's related to acceleration and jerk settings. Do you have the EEPROM enabled in Configuration_Feature.h? If so, definitely try the M503 to display the current settings in memory and make sure they are what you expect them to be. Otherwise, you could change the settings in the code all day long and have no effect on it.

Looking at the code, at least the current MK4duo code, it appears that you can enable the M503 command in Configuration_Feature.h even when not actually using the EEPROM for saving settings, and use the M503 to display the current values in memory. That may be very useful to make sure that there isn't a bug in the code and how it's interpreting your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants