I have two arduino duemilanove board one with Atmega328 another with Atmega8..
I have written a code which is only 5442 bytes..
When I upload it to the Atmega 328 board it uploads and runs fine,
But if I try to upload it to the board with Atmega 8 I get errors, I guess its not the size problem as the maximum size of the Atmega8 is 7168 bytes.
the errors I am writing below..
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:172: error: 'TCCR2A' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:172: error: 'COM2B1' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:180: error: 'TCCR2A' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:180: error: 'COM2B1' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:198: error: 'TIMSK2' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:207: error: 'TCCR2A' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:208: error: 'TCCR2B' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:208: error: 'WGM22' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:211: error: 'OCR2A' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:212: error: 'OCR2B' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:224: error: 'TCCR2A' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:229: error: 'TCCR2B' was not declared in this scope
C:\Documents and Settings\Joy\Desktop\Quad\arduino-0022\libraries\IRremote\IRremote.cpp:234: error: 'TIMSK2' was not declared in this scope
In case if someone needs to look onto the IRremote library, you can get it here
http://arcfn.com/files/IRremote.zip
And my code is attached below
remote.zip (874 Bytes)