Page 1 of 1

Error uploading unologger program

Posted: Thu Aug 21, 2014 1:38 am
by Henke
Hi

I get and error when I try to upload the "unologger" project to an Arduino UNO using the build in Arduino Builder in Codeblocks.
(downloaded from http://sourceforge.net/projects/obdcon/files/logger/, downloaded 17-08-2014)

Everything compiles fine in Codeblocks but the upload always stops at 94% and an error message appears.
The message says "avrdude.exe stk500_page_write(): (a) protocol error, expected=0x14, resp=0x64"

No problem to upload other programs via Codeblocks to Arduino UNO so the configuration of Codeblocks seems to be right...


I´m using the following setup:
Arduino UNO R2 (connected at COM2)
Codeblocks 13.12 (downloaded from http://arduinodev.com/codeblocks/)
Windows 7, 64-bit

No shield attached to Arduino during upload.
Power from USB only.

Anyone has has an idea what can be wrong :?:

Re: Error uploading unologger program

Posted: Thu Aug 21, 2014 4:48 pm
by stanley
The reason is that compiled HEX is too big to fit on the target. Arduino UNO has 32KB flash memory but normally only 28KB (on some boards) or 30KB can be used.
BTW, which display shield/module are you using?

Re: Error uploading unologger program

Posted: Fri Aug 22, 2014 4:35 am
by Henke
Ok

But isn´t your unologger program supposed to used on a standard UNO?

I´m not using any display shield. Only the I2C OBD interface and a GPS/SD shield.

I will take away the display part to reduce the program size.

Re: Error uploading unologger program

Posted: Sat Aug 23, 2014 12:39 am
by Henke
Ok, but isn´t your unologger program supposed to run on a UNO? Or do I need to modify it to be able to run int on a UNO?

I´m not using any display-shield. Just a OBD I2C interface and a GPS/SD-shield.

I will remove the display part of the code and give it a try.

Re: Error uploading unologger program

Posted: Sat Aug 23, 2014 12:40 pm
by stanley
The sketch is provide AS-IS. If your UNO board uses 512byte boot loader instead of generic 2KB one, you will be able load it. Otherwise, you need to fine tune the sketch to reduce the code size by yourself.

Re: Error uploading unologger program

Posted: Sun Aug 24, 2014 8:05 am
by Henke
Ok

I reduced the code so now it works

Thx for the help