[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Programming a DT006 on Win2K from GCC-AVR/AVR Studio
From: |
Marek Michalkiewicz |
Subject: |
Re: [avr-gcc-list] Programming a DT006 on Win2K from GCC-AVR/AVR Studio 3 |
Date: |
Mon, 24 Jun 2002 16:06:41 +0200 (CEST) |
> Well I now have uisp working with the following command line:
>
> uisp -dprog=dt006 --erase --upload if=LocoNetMon.hex -v=3 -dno-poll
>
> If I don't att the -dno-poll option I get an error message:
>
> #Error: Data polling readback status: write=0x1c read=0x7f
> If device was erased disable polling with the -dno-poll option.
Looks like a timing problem - uisp not waiting long enough for the chip
to program. Try using a longer timeout (like -dt_wd_flash=20000) which
only slows down writing 0, 0x7f, 0x80, 0xff bytes if polling is enabled.
It could be that gettimeofday() on Win2K/Cygwin doesn't have microsecond
resolution...
Marek
avr-gcc-list at http://avr1.org