avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] uisp with byteblaster question


From: daniel_laptop
Subject: Re: [avr-gcc-list] uisp with byteblaster question
Date: Sat, 14 Dec 2002 14:34:01 +1300

Hello I don't know what is going wrong :-(
but can offer some info.
 http://bvn123.boom.ru/e/avr3.html
the link to byteblaster circ. diag is broken on above page
(it is here)
 http://www.altera.com/literature/ds/dsbyte.pdf

there is also a diag on old uisp download page
 http://www.amelek.gda.pl/avr/uisp/dsbytemv.pdf

All found with our friend www.google.com

Hope this helps :-)
Daniel


Holly Gates wrote:

> Hello, sorry to ask what may seem like a silly question, but could
> someone give me the pinout for connecting the Altera Byteblaster (driven
> with uisp) to an ATmega128 board?
>
> Normally I use ponyprog, but on my laptop ponyprog doesn't seem to work
> on a USB-serial adapter and there is no regular serial port :(
>
> Sooo.., I though I would just use the handy byteblaster cable I have
> sitting here.
>
> I've searched around quite a bit, and perhaps I just missed it or its
> obvious, but I couldn't seem to find the pinout for use with uisp. I
> tried looking through the uisp source, but I am much better at hardware
> than software so I didn't get very far. After looking at the lines of
> the byteblaster with an oscilloscope when uisp was trying to program
> something, I have come to the following mapping:
>
> byteblaster 10-pin header              ATmega128
>         1                                 SCLK
>         2                                 GND
>         3                                 TXD0(pin3)
>         4                                 VCC
>         5                                 Reset
>         9                                 RXD0(pin2)
>         10                                GND
>
> So I wired this up to the board I am trying to program and tried uisp.
>
> This is the command line I am trying to use with a sample hex file:
>
>     address@hidden tmp]# uisp -dprog=abb -v=3 -dpart=ATmega128 --upload
>         if=juicebox.hex
>
> which gives this result:
>
>     Reset inactive time (t_reset) 1000 us
>     AVR Direct Parallel Access succeeded after 0 retries.
>     Vendor Code: 0x1e
>     Part Family: 0x97
>     Part Number: 0x02
>     Atmel AVR ATmega128 is found.
>     Page Write Enabled, size=256
>     FLASH Write Delay (t_wd_flash): 12500 us
>     EEPROM Write Delay (t_wd_eeprom): 25000 us
>     Uploading: flash
>     ###########################################################
>     #####################################################
>     (total 3914 bytes transferred in 3.34 s (1171 bytes/s)
>     Polling: count = 16, min/avg/max = 3.47/9.78/15.34 ms
>     address@hidden tmp]#
>
> But the program doesn't run on the board, and in fact when I give this
> command:
>
>     address@hidden tmp]# uisp -dprog=abb -v=3 -dpart=ATmega128 --upload
>         if=juicebox.hex --verify
>
> Then I get the same result as above, except for then when it starts to
> verify it just scrolls errors:
>
>     Verifying: flash
>     ######flash error at address 0x9e: file=0xea, mem=0xe8
>     flash error at address 0xa0: file=0xfe, mem=0xfa
>     flash error at address 0xad: file=0x3d, mem=0x31
>     #flash error at address 0xb5: file=0xed, mem=0xe1
>     flash error at address 0xbc: file=0xaa, mem=0xa8
>     flash error at address 0xbd: file=0x3d, mem=0x31
>     flash error at address 0xc4: file=0x65, mem=0x60
>     flash error at address 0xca: file=0xcf, mem=0x80
>     flash error at address 0xcb: file=0xef, mem=0xe3
>     flash error at address 0xcc: file=0xd0, mem=0x80
>     flash error at address 0xcd: file=0xe1, mem=0xa1
>     flash error at address 0xce: file=0xde, mem=0x80
>     flash error at address 0xcf: file=0xbf, mem=0xa0
>
> etc, etc.
>
> Anyone have an idea of some command line options that would make this
> work? Or maybe I have guessed the wrong pin mapping for uisp to
> byteblaster??
>
> Thanks for any help,
>
> -Holly Gates
>
> avr-gcc-list at http://avr1.org

avr-gcc-list at http://avr1.org



reply via email to

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