uisp-dev
[Top][All Lists]
Advanced

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

Re: [Uisp-dev] mac os x and usb to serial adapter


From: Theodore A. Roth
Subject: Re: [Uisp-dev] mac os x and usb to serial adapter
Date: Wed, 31 Mar 2004 17:02:44 -0800 (PST)


On Thu, 1 Apr 2004, Simon Tinguely wrote:

> Hello,
>
> I entered this command:
> uisp -dprog=dasa -dserial=/dev/cu.usbserial0 -dpart=atmega8535 --erase
> --upload --verify if=programm.hex
>
> I get:
> Atmel AVR ATmega8535 is found.
> Erasing device ...
> Reinitializing device
> Atmel AVR ATmega8535 is found.
> Uploading: flash
> Verifying: flash
> flash error at address 0x0: file=0x0f, mem=0x00
> flash error at address 0x1: file=0xe0, mem=0x00
> flash error at address 0x2: file=0x1f, mem=0x00
> flash error at address 0x3: file=0xef, mem=0x00
> flash error at address 0x4: file=0x44, mem=0x00
> flash error at address 0x5: file=0xe6, mem=0x00
> flash error at address 0x6: file=0x07, mem=0x00
>   .... etc.
>
> The microcontrolleur is found, and seems to be errased, as the previous
> programm doesn't work anymore.
>
> Does that mean that I can't programm my microcontrolleur with this
> usb-to-serial adapter? My programmer seems to be supported by uisp (I
> get the same result with dasa2), but the data aren't correctly
> uploaded. Does anyone know if it exists an adapter (usb to serial)
> which makes possible the "control of the levels on the individuals
> pins" ??

I wouldn't expect you to get the same results with both dasa and dasa2
since the signals are different.

Looking at the diagram I previously posted, it looks like you should be
using dasa2. From `uisp --help`:

         dasa      serial (RESET=RTS SCK=DTR MOSI=TXD MISO=CTS)
         dasa2     serial (RESET=!TXD SCK=RTS MOSI=DTR MISO=CTS)

I'm not sure on the polarity of the TXD line though. I'm wondering if it
needs to be inverted...

Ted Roth




reply via email to

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