Hi,
I'm trying to program my atmega328p on my gertboard connected to my raspberry pi via another arduino since the SPI interface is already in use. I have a UNO board with the arduinioISP installed the output pins are level shifted to 3v3. I have included a new definition in boards.txt
gert328.name=Gertboard with ATmega328 (w/ Arduino as ISP)
gert328.upload.using=arduino:arduinoisp
gert328.upload.protocol=arduino
gert328.upload.maximum_size=32768
gert328.upload.speed=115200
gert328.upload.disable_flushing=true
gert328.bootloader.low_fuses=0xE7
gert328.bootloader.high_fuses=0xDA
gert328.bootloader.extended_fuses=0x05
gert328.bootloader.path=optiboot
gert328.bootloader.file=optiboot_atmega328.hex
gert328.bootloader.unlock_bits=0x3F
gert328.bootloader.lock_bits=0x0F
gert328.build.mcu=atmega328p
gert328.build.f_cpu=12000000L
gert328.build.core=arduino
gert328.build.variant=standard
The programmer is set to arduino as ISP on the IDE on my laptop connected to the UNO via USB and I try an" upload using programmer"
ans I get the following output when trying to upload blink:
Binary sketch size: 1,104 bytes (of a 32,768 byte maximum)
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc2
I'm not sure what I am doing wrong and would be grateful for some pointers.
Cheers
Martyn