Hello experts,
I've been playing for a while with the Arduino IDE which seems to have a nice amount of well made libraries and a quite simplified way to deal with programming.
I want to use this software to flash my programs on an ATMEGA 32 chip.
Up to now, I can upload simple programs, such as LED flashing.
I had to modify the IDE to have it work with my chip.
This is how I made it: http://www.instructables.com/id/Using-Atmega32-with-Arduino-IDE/
So I've imported the Mega32 file in my Variant folder(made the recommended modifications) and I've added this text to my Board.txt file:
mega32-8.name=ATmega32-8mhz
mega32-8.build.mcu=atmega32
mega32-8.build.f_cpu=8000000L
mega32-8.build.core=arduino:arduino
mega32-8.build.variant=mega32
mega32-8.upload.maximum_size=32000
mega32-8.upload.tool=avrdude
mega32-8.upload.speed=115200
mega32-8.bootloader.low_fuses=0xE4
mega32-8.bootloader.high_fuses=0xD9
mega32-8.bootloader.extended_fuses=0xFD
Like said, it works for simple stuff, but when I try using the wire.h library to work with the Adafruit biColor8x8 Matrix, it fails.
This is the project I wanted to run as a standalone(read:without an Arduino board):
The sketch compiles perfectly, but when I upload, using an ISP Programmer, I get this error:
avrdude: verification error, first mismatch at byte 0x1100
** 0xff != 0x59**
avrdude: verification error; content mismatch
This is my last try before actually buying the smallest Arduino Board and leaving it in my projects(which in my opinion would be a waste).
Thanks in advance!
BTW: I'm a mechanical engineer, so I've got pretty limited knowledge of deep and advanced C programming.