Welcome! Log In Create A New Profile

Advanced

SAV MkI firmware upload compile error

Posted by Anna & Karl 
SAV MkI firmware upload compile error
July 23, 2016 11:48AM
When trying to upload new Marlin firmware onto our SAV MkI board, I get the following compile error in the Arduino IDE:

Arduino: 1.6.9 (Windows 10), TD: 1.29, Board: "[BootloaderCDC]SAV-MkI_RevD"

Warning: Board teensy:avr:cdcsavD doesn't define a 'build.board' preference. Auto-set to: AVR_CDCSAVD
Warning: Board teensy:avr:usbtsav doesn't define a 'build.board' preference. Auto-set to: AVR_USBTSAV
Warning: Board teensy:avr:cdcsav doesn't define a 'build.board' preference. Auto-set to: AVR_CDCSAV
exec: "C:\\Users\\Sarah\\Downloads\\arduino-1.6.9-windows\\arduino-1.6.9\\hardware\\teensy/../tools/": file does not exist
Fehler beim Kompilieren für das Board [BootloaderCDC]SAV-MkI_RevD.

I have found a post on Github about this error, but I don't really understand enough about the matter to have any idea what to do.

Do I need a different bootloader for the board or has something gone wrong with my Teensy installation? I tried to compile for Teensy ++ 2.0 , but got an even larger amount of errors...

Thank you for your time!
Kind regards,
Anna
Re: SAV MkI firmware upload compile error
July 23, 2016 12:31PM
Now I tried the same with Arduino IDE 1.0.6, before I had 1.6.9.

I am now getting a new list of errors:

This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 + Td: 1.29 (Windows NT (unknown)), Board: "[BootloaderCDC]SAV-MkI_RevD"
In file included from /dogm_lcd_implementation.h:50,
                 from ultralcd.cpp:34:
dogm_font_data_Marlin_symbols.h:13: error: 'u8g_fntpgm_uint8_t' does not name a type
In file included from /dogm_lcd_implementation.h:55,
                 from ultralcd.cpp:34:
dogm_font_data_ISO10646_1.h:13: error: 'u8g_fntpgm_uint8_t' does not name a type
In file included from ultralcd.cpp:34:
dogm_lcd_implementation.h:130: error: 'U8GLIB_SSD1306_128X64_2X' does not name a type
In file included from /dogm_lcd_implementation.h:149,
                 from ultralcd.cpp:34:
/utf_mapper.h: In function 'char charset_mapper(char)':
utf_mapper.h:127: error: 'u8g' was not declared in this scope
In file included from ultralcd.cpp:34:
/dogm_lcd_implementation.h: In function 'void lcd_setFont(char)':
dogm_lcd_implementation.h:157: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:157: error: 'ISO10646_1_5x7' was not declared in this scope
dogm_lcd_implementation.h:158: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:158: error: 'ISO10646_1_5x7' was not declared in this scope
dogm_lcd_implementation.h:159: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:159: error: 'Marlin_symbols' was not declared in this scope
dogm_lcd_implementation.h:160: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:160: error: 'ISO10646_1_5x7' was not declared in this scope
/dogm_lcd_implementation.h: In function 'char lcd_print(char)':
dogm_lcd_implementation.h:167: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:167: error: 'Marlin_symbols' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void lcd_implementation_init()':
dogm_lcd_implementation.h:213: error: 'u8g' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void _draw_heater_status(int, int)':
dogm_lcd_implementation.h:267: error: 'u8g' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void lcd_implementation_status_screen()':
dogm_lcd_implementation.h:285: error: 'u8g' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void lcd_implementation_mark_as_selected(uint8_t, bool)':
dogm_lcd_implementation.h:414: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:419: error: 'u8g' was not declared in this scope
dogm_lcd_implementation.h:421: error: 'u8g' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void lcd_implementation_drawmenu_generic(bool, uint8_t, const char*, char, char)':
dogm_lcd_implementation.h:435: error: 'u8g' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void _drawmenu_setting_edit_generic(bool, uint8_t, const char*, const char*, bool)':
dogm_lcd_implementation.h:453: error: 'u8g' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void lcd_implementation_drawedit(const char*, char*)':
dogm_lcd_implementation.h:501: error: 'u8g' was not declared in this scope
ultralcd.cpp: In function 'void lcd_update()':
ultralcd.cpp:1694: error: 'u8g' was not declared in this scope
Multiple libraries were found for "Wire.h"

 Used: C:\Users\Sarah\Documents\Arduino\libraries\Wire

 Not Used: C:\Users\Sarah\Downloads\arduino-1.0.6-windows\arduino-1.0.6\libraries\Wire

 Not Used: C:\Users\Sarah\Documents\Arduino\libraries\Robot_Control

Multiple libraries were found for "SPI.h"

 Used: C:\Users\Sarah\Documents\Arduino\libraries\SPI

 Not Used: C:\Users\Sarah\Downloads\arduino-1.0.6-windows\arduino-1.0.6\libraries\SPI

 Not Used: C:\Users\Sarah\Documents\Arduino\libraries\Robot_Control

It still won't compile. sad smiley
Re: SAV MkI firmware upload compile error
July 23, 2016 01:17PM
.... aaaand finally, down to one. I had different Arduino installations and libraries that I needed to delete, and the u8g library was missing and had to be installed. I fixed all that and have now only one error:

This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 + Td: 1.29 (Windows NT (unknown)), Board: "[BootloaderCDC]SAV-MkI_RevD"
In file included from ultralcd.cpp:34:
dogm_lcd_implementation.h:130: error: 'U8G_I2C_OPT_FAST' was not declared in this scope


I don't find any information anywhere about the 'U8G_I2C_OPT_FAST' error. It has something to do with the LCD screen. Any ideas where I could look?

Kind regards,
Anna

Edited 1 time(s). Last edit at 07/24/2016 10:54AM by Anna & Karl.
Re: SAV MkI firmware upload compile error
July 23, 2016 01:32PM
Adding insult to injury? After removing the final error by installing a newer version of u8g:


This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 + Td: 1.29 (Windows NT (unknown)), Board: "[BootloaderCDC]SAV-MkI_RevD"
Binary sketch size: 126.218 bytes (of a 122.048 byte maximum)

processing.app.debug.RunnerException: Sketch too big; see [www.arduino.cc] for tips on reducing it.

	at processing.app.Sketch.size(Sketch.java:1730)

	at processing.app.Sketch.build(Sketch.java:1595)

	at processing.app.Sketch.build(Sketch.java:1570)

	at processing.app.Editor$DefaultRunHandler.run(Editor.java:2013)

Edited 1 time(s). Last edit at 07/23/2016 01:32PM by Anna & Karl.
Re: SAV MkI firmware upload compile error [solved]
July 24, 2016 10:53AM
The missing size on my board was more or less the space used by the bootloader. I still had a USBasp programmer cable somewhere, so I used that to upload the firmware (and overwrite the bootloader). Uploading the software like this is very easy, and although I was afraid to brick my board, nothing bad happened. Just plug the cable in the computer, upload a driver for USBasp (explained here), link cable to board and choose Tools > Boards > [usbtinyisp]Sav Mkl in the Arduino IDE. Choose your programmer type under Tools as well. Click upload. The process needs a few minutes to complete. There is no need to remove the jumper on the board for this.

I am very happy that I managed to sort this out - it took quite a while, but now I have a working inductive sensor installed. I haven't tried to autolevel with it yet, that will be another adventure.

...to be continued...
Sorry, only registered users may post in this forum.

Click here to login