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
Error uploading unologger program
Error uploading unologger program
- Attachments
-
- Error
- codeblockserror.JPG (80.2 KiB) Viewed 13521 times
Re: Error uploading unologger program
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?
BTW, which display shield/module are you using?
Re: Error uploading unologger program
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.
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
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.
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
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
Ok
I reduced the code so now it works
Thx for the help
I reduced the code so now it works
Thx for the help