Hi ,
I am trying to program moteinos using a FTDI device. Downloading sketches from Arduino IDE with default setup works flawlessly.
But I saw that was unable to read fuse values (and of course can't change them)..thought it was a fault form the bootloader, so decided to flash the one provided in moteino.
D:\Arduino\hardware\tools\avr\bin>avrdude -v -CD:\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -Uflash:w:DualOptiboot_V5.0_atmega328_BlinkD9.hex
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "D:\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "DualOptiboot_V5.0_atmega328_BlinkD9.hex"
avrdude: input file DualOptiboot_V5.0_atmega328_BlinkD9.hex auto detected as Intel Hex
avrdude: writing flash (32768 bytes):
Writing | ################################################## | 100% 0.05s
avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x80
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
after this, communication is not working anymore. In fact I tried to flash something else in another moteino with exactly the same result.
Any hint on what is going on here?
All Moteinos already have a bootloader so no need to reflash it.
Sounds like you have some ISP issue where it can't properly read or write fuses. That can lock up your MCU so be careful.
Thanks Felix
I've got myself an AVRISP MkII and after figuring out the D10 pull up, all works again :)