I have a breadboard without crystal and want to run an atmega328 mcu on it.
I took the uno entry and modified it :
solo.name=Standalone 328
solo.upload.protocol=usbtiny
solo.upload.maximum_size=32256
solo.upload.speed=115200
solo.bootloader.low_fuses=0xe2
solo.bootloader.high_fuses=0xd0
solo.bootloader.extended_fuses=0x07
solo.bootloader.path=optiboot
solo.bootloader.file=optiboot_atmega328.hex
solo.bootloader.unlock_bits=0x3F
solo.bootloader.lock_bits=0x0F
solo.build.mcu=ATMEGA328
solo.build.f_cpu=8000000L
solo.build.core=arduino
solo.build.variant=standard
The atmega328 is very similar to the atmega328p except the [b]Device signature = 0x1e9514 [/b]
Thus I copied the id ="m328p" entry in avrdude.conf to add a m328 entry:
#------------------------------------------------------------
# ATmega328
#------------------------------------------------------------
part
id = "m328";
desc = "ATMEGA328";
has_debugwire = yes;
flash_instr = 0xB6, 0x01, 0x11;
eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
0x99, 0xF9, 0xBB, 0xAF;
stk500_devcode = 0x86;
# avr910_devcode = 0x;
signature =[b] 0x1e 0x95 0x14[/b];
Problem: When running upload using programmer, I get
unknown MCU 'ATMEGA328' specified
Known MCU names:
avr2
...
When using the original solo.build.mcu=atmega328p
avrdude is called like this:
C:\Program Files (x86)\arduino-1.0\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\arduino-1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v [b]-patmega328p [/b]-cusbtiny -Pusb -Uflash:w:C:\Users\MICHA~1.MIC\AppData\Local\Temp\build6454494266416353871.tmp\MyBlink.cpp.hex:i
and later it reports
avrdude: Device signature = 0x1e9514
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
resulting in "Wrong microcontroller found ..."
Where's the relation between the .mcu line in boards.txt and the -p parameter for avrdude, which should be either m328p or m328 , shouldn't it ?