EmbeddedRelated.com
Forums
Memfault Beyond the Launch

using usb of at91sam7X

Started by cocxy2006 January 5, 2007
hi,

i would like use usb interface to pc but i didn't get it. i do not
understand the user manual and how i have to programm which register
of udp... i'm really irritated about it; i just want to get low speed
(full speed would be better) and i want to send not much data but it
have to be usb. why it have to be so complicated?

do vou have any hint for my next step or example/ basic code for my
uvision?

thank you very much,
constantin
cocxy2006 yazmış:
>
> hi,
>
> i would like use usb interface to pc but i didn't get it. i do not
> understand the user manual and how i have to programm which register
> of udp... i'm really irritated about it; i just want to get low speed
> (full speed would be better) and i want to send not much data but it
> have to be usb. why it have to be so complicated?
>
> do vou have any hint for my next step or example/ basic code for my
> uvision?
>
>

Using USB is rather compilcated I think. You should implement a CDC
interface to use your USB as a serial interface with your PC. Do yoo use
an OS with uVision? For example, there is a very nice working demo with
sam7x at www.FreeRTOS.org. You may want to look how things are done.
thank for your reply

i want to use the usb of my at91sam7x as a serial com port. thats my
first priority.
I use win2000 and keil Vision3; unfortunately I do not have a large
programmer experience so I cannot combine a solution from another
language like freertos to keil.
i'm really frustrated

--- In A..., Çağlar AKYÜZ wrote:
>
> cocxy2006 yazmış:
> >
> > hi,
> >
> > i would like use usb interface to pc but i didn't get it. i do not
> > understand the user manual and how i have to programm which register
> > of udp... i'm really irritated about it; i just want to get low speed
> > (full speed would be better) and i want to send not much data but it
> > have to be usb. why it have to be so complicated?
> >
> > do vou have any hint for my next step or example/ basic code for my
> > uvision?
> >
> >
> >
> >
>
> Using USB is rather compilcated I think. You should implement a CDC
> interface to use your USB as a serial interface with your PC. Do yoo
use
> an OS with uVision? For example, there is a very nice working demo with
> sam7x at www.FreeRTOS.org. You may want to look how things are done.
>
If you do not want (can not) use the full usb device and protocoll why don't you try USB to UART devices.

You program the serial interface and you just install a ready available driver at the PC side.
Here are some usefull links for you:

http://www.beyondlogic.org/usb/ftdi.htm
http://www.lvr.com/usbchips.htm
http://www.silabs.com/tgwWebApp/public/web_content/products/Microcontrollers/Interface/en/interface.htm
http://www.ftdichip.com

Regards,
Viron.

----- Original Message ----
From: cocxy2006
To: A...
Sent: Friday, January 5, 2007 11:27:49 AM
Subject: [AT91SAM] Re: using usb of at91sam7X

thank for your reply

i want to use the usb of my at91sam7x as a serial com port. thats my

first priority.

I use win2000 and keil Vision3; unfortunately I do not have a large

programmer experience so I cannot combine a solution from another

language like freertos to keil.

i'm really frustrated

--- In AT91SAM@yahoogroups .com, Çağlar AKYÜZ wrote:

>

> cocxy2006 yazmış:

> >

> > hi,

> >

> > i would like use usb interface to pc but i didn't get it. i do not

> > understand the user manual and how i have to programm which register

> > of udp... i'm really irritated about it; i just want to get low speed

> > (full speed would be better) and i want to send not much data but it

> > have to be usb. why it have to be so complicated?

> >

> > do vou have any hint for my next step or example/ basic code for my

> > uvision?

> >

> >

> >

> >

>

> Using USB is rather compilcated I think. You should implement a CDC

> interface to use your USB as a serial interface with your PC. Do yoo

use

> an OS with uVision? For example, there is a very nice working demo with

> sam7x at www.FreeRTOS. org. You may want to look how things are done.

>



__________________________________________________
cocxy2006 yazmış:
>
> thank for your reply
>
> i want to use the usb of my at91sam7x as a serial com port. thats my
> first priority.
> I use win2000 and keil µVision3; unfortunately I do not have a large
> programmer experience so I cannot combine a solution from another
> language like freertos to keil.
> i'm really frustrated
>
>
> _,_._,___
I understand your aim but starting with USB is not so easy. You should
use some others work as reference in the beginning. Because USB is not
only an embedded project, you should also implement an inf file to use
with your Windows machine.

BTW, which board are you using?( custom board or ATMEL DK?)
yes, you are right usb is a little bit diffcult...*understate*
but I found on atmel.com
(http://www.atmel.com/dyn/products/product_card.asp?family_id`5&family_name=AT91SAM+Smart+ARM%2Dbased+Microcontrollers&part_id940)
an example in "AT91SAM7SE512_KEIL.zip" for using usb on the newer (?)
at91sam7SE written in C for KEIL. =D And after small changes because
of different controllers it runs on my eval.-board without any error.
ok maybe I'm little too fast to see that as a success because my PC
doesn't detect the "new" usb device. I already added new drivers
(atmusb6124.inf and -.sys) and tried to detect the usb device with
"BasicUSB_6124.exe". it doesn't help. Any hints for the next steps?
btw: I'm working with an atmel at91sam7x256-EK and KEIL Vision3
development kit for ARM, my PC: Win2000 with SP4 and P4 (3,2GHz)

program changes: only changing the pin number of RXD0 and TXD0 from
PA5 and 6(at91sam7SE) to PA0 and PA1 (at91sam7X-EK)

--- In A..., Çağlar AKYÜZ wrote:
>
> cocxy2006 yazmış:
> >
> > thank for your reply
> >
> > i want to use the usb of my at91sam7x as a serial com port. thats my
> > first priority.
> > I use win2000 and keil µVision3; unfortunately I do not have a large
> > programmer experience so I cannot combine a solution from another
> > language like freertos to keil.
> > i'm really frustrated
> >
> >
> > _,_._,___
> I understand your aim but starting with USB is not so easy. You should
> use some others work as reference in the beginning. Because USB is not
> only an embedded project, you should also implement an inf file to use
> with your Windows machine.
>
> BTW, which board are you using?( custom board or ATMEL DK?)
>

Memfault Beyond the Launch