adaboot328 misprint?

Forum Administrative - NOT PROJECT OR "HELP"

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
B0SC0
 
Posts: 6
Joined: Fri Aug 27, 2010 5:16 pm

adaboot328 misprint?

Post by B0SC0 »

Hello,


This in reference to your page at : http://www.ladyada.net/library/arduino/bootloader.html

I tried uploading the hex file via avrdude and avrisp device to a ATMEGA328P-PU with no luck.

I have doubled checked my hardware( programmer and target board) and all is okay.

I noticed that you have "
* Use -b 19200 to set the baud rate to 19200
* The device signature reads dont seem to work so you'll want to use -F
* The programmer type is avrisp
* The device type is -p m168
* The port is whatever the FTDI chip shows up as"

Shouldn't that be -p m328p and not -p m168???

Also, you state "* The device signature reads dont seem to work so you'll want to use -F"

If you use what I suggested above, you do not need "-F" , it should read it fine.

Here is what I got:


C:\WinAVR-20100110\bin>avrdude -c stk500 -P com3 -v -U flash:w:atmegaboot
adaboot328.hex -p m328p

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.


Using Port : com3
Using Programmer : stk500
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
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----
-- ---------
eeprom 65 5 4 0 no 1024 4 0 360
00 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 450
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 450
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 450
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 450
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 450
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0
0 0x00 0x00

Programmer Type : STK500V2
Description : Atmel STK500
Programmer Model: AVRISP
Hardware Version: 15
Firmware Version Master : 2.10
Vtarget : 0.0 V
SCK period : 129.2 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as 5
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be perf

To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "atmegaboot_xx8_adaboot328.hex"
avrdude: input file atmegaboot_xx8_adaboot328.hex auto detected as Intel He
avrdude: writing flash (32746 bytes):

Writing | ################################################## | 100% 1.63s

avrdude: 32746 bytes of flash written
avrdude: verifying flash memory against atmegaboot_xx8_adaboot328.hex:
avrdude: load data flash data from input file atmegaboot_xx8_adaboot328.hex
avrdude: input file atmegaboot_xx8_adaboot328.hex auto detected as Intel He
avrdude: input file atmegaboot_xx8_adaboot328.hex contains 32746 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 21.00s

avrdude: verifying ...
avrdude: 32746 bytes of flash verified


I am kinda new to this, so excuse me if I overlooked something.

Please let me know if this is correct. If so, you might want to edit your web page.

Thank you

B0SC0

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: adaboot328 misprint?

Post by adafruit »

it should be -p328p
but dont confuse uploading the BOOTLOADER with avrisp and uploading TO the bootloader with avrdude!

Locked
Please be positive and constructive with your questions and comments.

Return to “Administrative (closed)”