cant upload sketch on EmonGLCD

Hi,i m try upload test sketch on my GLCD (without any emonTX station and sensors) and get error

 

 

Template_Example.ino: In function 'void loop()':
Template_Example:49: error: 'draw_power_page' was not declared in this scope
Template_Example:52: error: 'draw_temperature_time_footer' was not declared in this scope
Template_Example:59: error: 'draw_power_page' was not declared in this scope
Template_Example:62: error: 'draw_temperature_time_footer' was not declared in this scope
Template_Example:69: error: 'draw_solar_page' was not declared in this scope

 

Arduino libraries exist in lib folder. But i can upload one of the examples GLCM_SSM. Arduino IDE 1.0.5 also i tryed 1.5.4 no results.Thanks

TrystanLea's picture

Re: cant upload sketch on EmonGLCD

When opening say the HomeEnergyMonitor.ino example it should load the other sub files at the same time (icons.ino and templates.ino) The error's you see there are related to the sketch needing the functions that are in the templates.ino page.

Do you have icons.ino and templates.ino in the same folder as in the standard emonglcd examples folder?

zorge's picture

Re: cant upload sketch on EmonGLCD

Hi,Trystan. Yes, icons on it.Files exist. I try compile  HomeEnergyMonitor.ino -its OK, but after i click compile and upload button in IDE and get error 

avrdude: stk500_getsync(): not in sync: resp=0x00

Now i try reinstall IDE, drivers

No result!!! After reinstall IDE apper message about low memory 

 

<tag> Sketch uses 24 344 bytes (75%) of program storage space. Maximum is 32 256 bytes.
Global variables use 1 645 bytes (80%) of dynamic memory, leaving 403 bytes for local variables. Maximum is 2 048 bytes.
Low memory available, stability problems may occur
avrdude: stk500_getsync(): not in sync: resp=0x00

</tag>

Question: could i insert another ATMega chip with UNO bootloader and try again or it uncompatible ?

Thanks

 

calypso_rae's picture

Re: cant upload sketch on EmonGLCD

Can the emonGLCD run a standard example sketch such as blink.ino? 

If it can, that might be a useful stage to try - no libraries required.

zorge's picture

Re: cant upload sketch on EmonGLCD

Thaks for reply.Standart Blink.ino sketch dont uploading either with stk500 error message. I remove ATmega chip and repalace with another from emonTX PCB, try install IDE on another PC  and still get 500 error code.Please help, i use arduino USBtoSerial board to connect emons product with PC. 

zorge's picture

Re: cant upload sketch on EmonGLCD

After some experiments i saw that driver is OK cause i can upload blink etc on arduino UNO (another plate) and its work. Now i measure voltage between GRN and PWR and it become 5V , but it should be 3.3V isnt it? (it was 3.3 then i constructed it as describe in tutorial). Whats should i do? THX

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.