Error uploading unologger program

Inquiry and support for Freematics products
Post Reply
Henke
Posts: 7
Joined: Thu Aug 21, 2014 1:13 am
Location: Sweden

Error uploading unologger program

Post 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 :?:
Attachments
Error
Error
codeblockserror.JPG (80.2 KiB) Viewed 13521 times
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Error uploading unologger program

Post 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?
Henke
Posts: 7
Joined: Thu Aug 21, 2014 1:13 am
Location: Sweden

Re: Error uploading unologger program

Post 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.
Henke
Posts: 7
Joined: Thu Aug 21, 2014 1:13 am
Location: Sweden

Re: Error uploading unologger program

Post 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.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Error uploading unologger program

Post 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.
Henke
Posts: 7
Joined: Thu Aug 21, 2014 1:13 am
Location: Sweden

Re: Error uploading unologger program

Post by Henke »

Ok

I reduced the code so now it works

Thx for the help
Post Reply