avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] ser_posix.c: is select()ing for the write descriptorus


From: Nick Lott
Subject: Re: [avrdude-dev] ser_posix.c: is select()ing for the write descriptoruseful at all?
Date: Sun, 22 Apr 2007 12:59:01 +0100

I have tested the patch on the following with no problems. I did notice that the new version is 1~2 seconds slower but this could be to do with other factors as I'm comparing to version 5.1.

  System Version:       Mac OS X 10.4.9 (8P135)
  Kernel Version:       Darwin 8.9.0

  Machine Name: Mac mini
  Machine Model:        PowerMac10,1
  CPU Type:     PowerPC G4  (1.2)
  Number Of CPUs:       1
  CPU Speed:    1.42 GHz
  L2 Cache (per CPU):   512 KB
  Memory:       1 GB
  Bus Speed:    167 MHz
  Boot ROM Version:     4.8.9f1


<New avrdude 5.3-cvs ------------------------------------------------------------------------ ------------------->

nick$ time /usr/local/bin/avrdude -p m169 -P /dev/cu.usbserial -c jtag1 -U flash:w:main.hex -v

avrdude: Version 5.3cvs, compiled on Apr 22 2007 at 11:41:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "/usr/local/etc/ avrdude.conf"
         User configuration file is "/Users/nick/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/cu.usbserial
         Using Programmer      : jtag1
         AVR Part              : ATMEGA169
         Chip Erase delay      : 9000 us
         PAGEL                 : P00
         BS2                   : P00
         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 512 4 0 9000 9000 0xff 0xff flash 65 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 efuse 0 0 0 0 no 1 0 0 0 0 0x00 0x00 lock 0 0 0 0 no 1 0 0 2000 2000 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 : JTAGMKI
         Description     : Atmel JTAG ICE (mkI)
         ICE hardware version: 0xc1
         ICE firmware version: 0x80
         Vtarget         : 5.0 V
         JTAG clock      : 1 MHz (1.0 us)

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude: Device signature = 0x1e9405
avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as 19
avrdude: safemode: efuse reads as FF
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 "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (13498 bytes):

Writing | ################################################## | 100% 4.03s

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

Reading | ################################################## | 100% 2.86s

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

avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as 19
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK

avrdude done.  Thank you.


real    0m13.158s
user    0m0.062s
sys     0m0.080s



< OLD 5.1 ------------------------------------------------------------------------ -------------------> nick$ time avrdude -p m169 -P /dev/cu.usbserial -c jtag1 -U flash:w:main.hex -v

avrdude: Version 5.1
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/sw/etc/avrdude.conf"
         User configuration file is "/Users/nick/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/cu.usbserial
         Using Programmer      : jtag1
         AVR Part              : ATMEGA169
         Chip Erase delay      : 9000 us
         PAGEL                 : P00
         BS2                   : P00
         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 512 4 0 9000 9000 0xff 0xff flash 65 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 efuse 0 0 0 0 no 1 0 0 0 0 0x00 0x00 lock 0 0 0 0 no 1 0 0 2000 2000 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 : JTAGMKI
         Description     : Atmel JTAG ICE (mkI)
         ICE hardware version: 0xc1
         ICE firmware version: 0x80
         Vtarget         : 5.0 V
         JTAG clock      : 1 MHz (1.0 us)

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9405
avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as 19
avrdude: safemode: efuse reads as FF
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 "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (13498 bytes):

Writing | ################################################## | 100% 3.90s

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

Reading | ################################################## | 100% 2.81s

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

avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as 19
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK

avrdude done.  Thank you.


real    0m11.690s
user    0m0.048s
sys     0m0.094s



Nick Lott
address@hidden

http://butterflymp3.sf.net
http://butterflylogger.sf.net
http://stuffthingsandjunk.blogspot.com/

On 21 Apr 2007, at 15:30, Joerg Wunsch wrote:

As Schumacher Raphael wrote:

As I am using avrdude on MacOS X, I may volunteer to check it out on
the PC-based platform (Intel-based at a later point of time).

Thanks!

However, since I'm not reading this mail list's posts in detail, I
need a briefing from someone what to be tested:

- software (which version, patch) to compile and which scenario to
run?

I've uploaded

http://www.sax.de/~joerg/avrdude-cvs-20070421.tar.gz

as a bootstrapped distribution file.

- specific hardware, CP210x USB chip?

Anything that uses ser_posix.c.  This would include all USB to RS-232
adapters, i. e. anything that uses /dev/cu* on your system.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avrdude-dev





reply via email to

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