I've made a new scratch-built board with an ATMega328PB on it. My Arduino environment is 1.6.7 on Mac OS X. The ordinary procedure for burning a bootloader onto an Arduino Uno r3 is not working. The error given is "avrdude: Expected signature for ATmega328P is 1E 95 0F". Indeed the signature of the ATMega328PB is different. From the forum here and the chip documentation, I've found the new part's signature. As described in some posts, I've added some lines in the avrdude.conf file for the new chip to be handled: (shown below). These lines seem to have no effect. What is wrong?
Also, I've tried doing as the error message recommends-- putting a '-F' on the command line for avrdude. But this doesn't work either. I have been quitting and restarting Arduino. But the changes seem to have no effect. All I need to do at this point is burn the bootloader. How should I proceed?
part parent "m328"
id = "m328p";
desc = "ATmega328P";
signature = 0x1e 0x95 0x0F;
ocdrev = 1;
;
part parent "m328"
id = "m328pb";
desc = "ATmega328PB";
signature = 0x1e 0x95 0x16;
ocdrev = 1;
;
And then I tried submitting a command line directly from a Terminal window:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328pb -cstk500v2 -P/dev/cu.usbmodem1d1111 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m
avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Volumes/Macintosh HD_storage/Users/mark/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem1d1111
Using Programmer : stk500v2
avrdude: stk500v2_ReceiveMessage(): timeout
^C