I am using standard bootloader circuit having 16Mhz oscillator with two 22pf capacitors connected and one 10k resistor with reset (I'll attach my circuit diagram if needed). I am using USB ASP AVR Programmer. I can successfully bootload atmega328p au chip with my current circuit but not atmega168p au. With Atmega328p au I am setting
board > "Arduino pro or pro mini" and processor > "Atmega328P (16MHz and 5V)"
in arduino ide. When using it with 168 I am configuring above setting as
board > "Arduino pro or pro mini" and processor > "Atmega168P (16MHz and 5V)"
but in this case its not working. It gives error
avrdude: Expected signature for ATmega168 is 1E 94 06
Double check chip, or use -F to override this check.
Error while burning bootloader.
Minicore worked!. Thanks a lot for help. Just One more question. I can compile and upload blink code for this board configuration (using minicore), but when i tried my previous code (that i was using with Atmega328p) which has
#include <TimerOne.h>
It gives error:-
C:\Users\Ultron\Documents\Arduino\libraries\TimerOne/TimerOne.h: In member function 'void TimerOne::setPwmDuty(char, unsigned int)':
C:\Users\Ultron\Documents\Arduino\libraries\TimerOne/TimerOne.h:105:13: error: 'TIMER1_A_PIN' was not declared in this scope
if (pin == TIMER1_A_PIN) OCR1A = dutyCycle;
^
exit status 1
Error compiling for board ATmega168.