avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] ATMEL AVR UART Bootloader for AVR-GCC/avr-libc on ATmega16 wi


From: Alex Eremeenkov
Subject: [avr-chat] ATMEL AVR UART Bootloader for AVR-GCC/avr-libc on ATmega16 with avrdude
Date: Fri, 15 Jan 2010 18:25:50 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hello all,

I stuck at some point of my work, and hope that somebody had those problems and can help me.

I have a board based on ATmega16 with ATMEL AVR UART Bootloader for AVR-GCC/avr-libc version 0.85(http://www.siwawi.arubi.uni-kl.de/avr_projects/#avrprog_boot). And i need a way for update application on boards from Linux machine via this bootloader.
Bootloader work perfect with AVRPROG from AVR Studio(4.18).
Also it work very good(but with some minor problems) with AVROSP tool (AVR911).

But one util that can be run on Linux without additional patch it's avrdude. And updating board using avrdude don't work for me now.

I tried to use avrdude 5.8 (latest at this moment) on programmers types avr109,avr910,avr911. All can find board without problems. But they cant update application (problems with writing, reading flash,etc).

On docs for bootloader i find example for use with avrdude 5.1.
I tried with it - but without success again.
But with this version, avrdude can success erase flash, read memory.
But have problems with writing/verification process.
Also i try to reduce serial speed from 115200 to 19200 - same result.

Does anybody know this bootloader able to use avrdude for update? Or maybe you can help me with finding some other Linux util that can work with this loader?

Thanks a lot for a help.

My one of log outputs:
avrdude.exe: Version 5.1
            Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

            System wide configuration file is "C:\share\avrdude.conf"

            Using Port            : com1
            Using Programmer      : avr109
            Overriding Baud Rate  : 115200
            AVR Part              : ATMEGA16
            Chip Erase delay      : 90000 us
            PAGEL                 : PD7
            BS2                   : PA0
            RESET disposition     : dedicated
            RETRY pulse           : SCK
            serial program mode   : yes
            parallel program mode : yes
            Timeout               : 2000
            StabDelay             : 1000
            CmdexeDelay           : 250
            SyncLoops             : 320
            ByteDelay             : 10
            PollIndex             : 30
            PollValue             : 0x30
            Memory Detail         :

                                     Block Poll               Page
         Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 4 10 128 0 no 512 4 0 9000 9000 0xff 0xff flash 33 60 128 0 yes 16384 128 128 4500 4500 0xff 0xff lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00 lfuse 0 0 0 0 no 1 0 0 0 0 0x00 0x00 hfuse 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 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
            Programmer Type : avr910
            Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "AVRBOOT"; type = =
   Software Version = 2.8; Hardware Version = b.Ы
Programmer supports buffered memory access with buffersize=22784 bytes.

Programmer supports the following devices:
   Device code: 0x80
   Device code: 0x75

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude.exe: Device signature = 0x1e9403
avrdude.exe: current erase-rewrite cycle count is 808530488 (if being tracked)
avrdude.exe: erasing chip
avrdude.exe: reading input file "vx_028.hex"
avrdude.exe: input file vx_028.hex auto detected as Intel Hex
avrdude.exe: writing flash (7806 bytes):

Writing | ################################################## | 100% 0.68s



avrdude.exe: 7806 bytes of flash written
avrdude.exe: verifying flash memory against vx_028.hex:
avrdude.exe: load data flash data from input file vx_028.hex:
avrdude.exe: input file vx_028.hex auto detected as Intel Hex
avrdude.exe: input file vx_028.hex contains 7806 bytes
avrdude.exe: reading on-chip flash data:

Reading | | 0% 0.00savrdude.e
xe: error: programmer did not respond to command: set addr

--
Best regards,
Alex Eremeenkov





reply via email to

[Prev in Thread] Current Thread [Next in Thread]