Hi,
I am pretty new to arduino bootloaders.
Nevertheless I am having issues with my W5100 shields and UNO R3, and I think a changed bootloader could fix this problems… (see here http://forum.arduino.cc/index.php?topic=322325.15)
I am using a Fedora 22 (64bit) box with the avr-packages installed (avr-gcc version 4.9.2), I have downloaded the recent arduino IDE-version (1.6.5) and I downloaded the recent optiboot files from github. I noticed that the avr-gcc version of arduino IDE is 4.8.1 - I assume, this should not be a problem?
I am issuing the following comand for make:
make LED_DATA_FLASH=1 LED_START_FLASHES=3 LED=B0 BAUD_RATE=115200 atmega328 -d > tt.txt
What gives me on stderr:
In file included from optiboot.c:247:0:
/usr/avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
#warning "This file has been moved to <util/delay.h>."
^
optiboot.c:305:6: warning: #warning BAUD_RATE error greater than 2% [-Wcpp]
#warning BAUD_RATE error greater than 2%
^
I have attached the file tt.txt which contains the stdout of the command.
optiboot_atmega328.lst and optiboot_atmega328.hex are generated
Then I use the following command to burn the files using a USBtiny:
avrdude -c usbtiny -p m328p -U flash:w:optiboot_atmega328.hex -vv
This gives me:
avrdude: Version 6.1, compiled on Aug 16 2014 at 00:04:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/etc/avrdude/avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 005:007
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 : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: AVR device initialized and ready to accept instructions
Reading | | 0% 0.00sCMD: [30 00 00 00] [00 30 00 1e]
CMD: [30 00 01 00] [00 30 00 95]
Reading | ################# | 33% 0.01sCMD: [30 00 02 00] [00 30 00 0f]
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e950f
CMD: [50 00 00 00] [00 50 00 ff]
CMD: [50 00 00 00] [00 50 00 ff]
CMD: [50 00 00 00] [00 50 00 ff]
avrdude: safemode: lfuse reads as FF
CMD: [58 08 00 00] [00 58 08 de]
CMD: [58 08 00 00] [00 58 08 de]
CMD: [58 08 00 00] [00 58 08 de]
avrdude: safemode: hfuse reads as DE
CMD: [50 08 00 00] [00 50 08 fd]
CMD: [50 08 00 00] [00 50 08 fd]
CMD: [50 08 00 00] [00 50 08 fd]
avrdude: safemode: efuse reads as 5
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
CMD: [ac 80 00 00] [00 ac 80 00]
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 ac 53 00]
avrdude: reading input file "optiboot_atmega328.hex"
avrdude: input file optiboot_atmega328.hex auto detected as Intel Hex
avrdude: writing flash (32768 bytes):
Writing | ################################################## | 100% 0.00s
CMD: [4c 3f 00 00] [e0 4c 3f 00]
CMD: [4c 3f 40 00] [01 4c 3f 40]
CMD: [4c 3f 80 00] [e9 4c 3f 80]
CMD: [4c 3f c0 00] [06 4c 3f c0]
avrdude: 32768 bytes of flash written
avrdude: verifying flash memory against optiboot_atmega328.hex:
avrdude: load data flash data from input file optiboot_atmega328.hex:
avrdude: input file optiboot_atmega328.hex auto detected as Intel Hex
avrdude: input file optiboot_atmega328.hex contains 32768 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 32768 bytes of flash verified
CMD: [50 00 00 00] [06 50 00 ff]
CMD: [50 00 00 00] [00 50 00 ff]
CMD: [50 00 00 00] [00 50 00 ff]
avrdude: safemode: lfuse reads as FF
CMD: [58 08 00 00] [00 58 08 de]
CMD: [58 08 00 00] [00 58 08 de]
CMD: [58 08 00 00] [00 58 08 de]
avrdude: safemode: hfuse reads as DE
CMD: [50 08 00 00] [00 50 08 fd]
CMD: [50 08 00 00] [00 50 08 fd]
CMD: [50 08 00 00] [00 50 08 fd]
avrdude: safemode: efuse reads as 5
avrdude: safemode: Fuses OK (E:05, H:DE, L:FF)
avrdude done. Thank you.
Looks good to me.
Then I connect the UNO to power using the USB from my PC.
The only thing that happens is, that the ON and L LEDs of the UNO are burning red. No flashing, nothing else.
Can anyone help me please?
Thanks and regards,
Otto
tt.txt (138 KB)