EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

AT91SAM9260-EK via USB using Eclipse

Started by aydi...@gmail.com June 4, 2009
Hi all,

I'm a begginner in embedded debugging technologies. I'm sorry for my very basic questions..

I'm using AT91SAM9260-EK + Yagarto + Eclipse. I'm using Windows XP.
I am trying to communicate with the card via USB. I have been reading about one week however I still have no idea how to do that. I don't know what to do with 6124.inf or usbser.sys files.

Should I go through CDC or HID? I have also looked at Atmel's site.

Can one of you please tell me in general steps, what I should do to be able to use USB Port of AT91SAM9260-EK.

At the end, I want to be able to do debugging using Eclipse via USB.

no idea!!sorry for bugging with very simple questions..

brno
On Thu, Jun 4, 2009 at 12:06 PM, wrote:

> Hi all,
>
> I'm a begginner in embedded debugging technologies. I'm sorry for my very
> basic questions..
>
> I'm using AT91SAM9260-EK + Yagarto + Eclipse. I'm using Windows XP.
> I am trying to communicate with the card via USB. I have been reading about
> one week however I still have no idea how to do that. I don't know what to
> do with 6124.inf or usbser.sys files.
>
> Should I go through CDC or HID? I have also looked at Atmel's site.
>
> Can one of you please tell me in general steps, what I should do to be able
> to use USB Port of AT91SAM9260-EK.
>
> At the end, I want to be able to do debugging using Eclipse via USB.
>
> no idea!!sorry for bugging with very simple questions..
>
> brno
>
> Hi Brno,

There are two different ideas that you are trying to decypher.

To program AT91SAM use SAM-BA. Compile your file to a BIN and upload it.

If you happen to write a program to use the UDP(USB Device Port) as a USB
device, a good place to start would be an HID, pretending to be a Mouse, or
some such.

A little more complicated i

> ,_._,___
>
So you say I should use HID instead of CDC..hmm..why not CDC ?

Then, after pretending to be a mouse, how can I debug with Eclipse ?
I was using JLink and it was trivial. but I don't know the next step after
creating a Virtual COM Port.

Again sorry for bugging with my basic questions..

brno

On Fri, Jun 5, 2009 at 3:52 AM, Eric Haver wrote:

> On Thu, Jun 4, 2009 at 12:06 PM, wrote:
>
>> Hi all,
>>
>> I'm a begginner in embedded debugging technologies. I'm sorry for my very
>> basic questions..
>>
>> I'm using AT91SAM9260-EK + Yagarto + Eclipse. I'm using Windows XP.
>> I am trying to communicate with the card via USB. I have been reading
>> about one week however I still have no idea how to do that. I don't know
>> what to do with 6124.inf or usbser.sys files.
>>
>> Should I go through CDC or HID? I have also looked at Atmel's site.
>>
>> Can one of you please tell me in general steps, what I should do to be
>> able to use USB Port of AT91SAM9260-EK.
>>
>> At the end, I want to be able to do debugging using Eclipse via USB.
>>
>> no idea!!sorry for bugging with very simple questions..
>>
>> brno
>>
>> Hi Brno,
>
> There are two different ideas that you are trying to decypher.
>
> To program AT91SAM use SAM-BA. Compile your file to a BIN and upload it.
>
> If you happen to write a program to use the UDP(USB Device Port) as a USB
> device, a good place to start would be an HID, pretending to be a Mouse, or
> some such.
>
> A little more complicated i
>> ,_._,___
>>
>
btw AT91SAM9260-EK doesn't have a joystick on it, so HID-mouse may not be
applicable for this card I think, then should I use HID-keyboard?
However I'm still not sure what I'm doing..

Please help..
2009/6/5 Bet Ayd

> So you say I should use HID instead of CDC..hmm..why not CDC ?
>
> Then, after pretending to be a mouse, how can I debug with Eclipse ?
> I was using JLink and it was trivial. but I don't know the next step after
> creating a Virtual COM Port.
>
> Again sorry for bugging with my basic questions..
>
> brno
> On Fri, Jun 5, 2009 at 3:52 AM, Eric Haver wrote:
>
>> On Thu, Jun 4, 2009 at 12:06 PM, wrote:
>>
>>>
>>>
>>> Hi all,
>>>
>>> I'm a begginner in embedded debugging technologies. I'm sorry for my very
>>> basic questions..
>>>
>>> I'm using AT91SAM9260-EK + Yagarto + Eclipse. I'm using Windows XP.
>>> I am trying to communicate with the card via USB. I have been reading
>>> about one week however I still have no idea how to do that. I don't know
>>> what to do with 6124.inf or usbser.sys files.
>>>
>>> Should I go through CDC or HID? I have also looked at Atmel's site.
>>>
>>> Can one of you please tell me in general steps, what I should do to be
>>> able to use USB Port of AT91SAM9260-EK.
>>>
>>> At the end, I want to be able to do debugging using Eclipse via USB.
>>>
>>> no idea!!sorry for bugging with very simple questions..
>>>
>>> brno
>>>
>>> Hi Brno,
>>
>> There are two different ideas that you are trying to decypher.
>>
>> To program AT91SAM use SAM-BA. Compile your file to a BIN and upload it.
>>
>> If you happen to write a program to use the UDP(USB Device Port) as a USB
>> device, a good place to start would be an HID, pretending to be a Mouse, or
>> some such.
>>
>> A little more complicated i
>>>
>>>
>>> ,_._,___
>>>
>>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

a...@gmail.com wrote:
> Hi all,
>

Hi,

> I'm a begginner in embedded debugging technologies. I'm sorry for my very basic questions..
>
> I'm using AT91SAM9260-EK + Yagarto + Eclipse. I'm using Windows XP.
> I am trying to communicate with the card via USB. I have been reading about one week however I still have no idea how to do that. I don't know what to do with 6124.inf or usbser.sys files.
>

They are for emulation of EK by Windows.

> Should I go through CDC or HID? I have also looked at Atmel's site.
>

If you want to communicate with your EK from your PC, easiest way is
to go with CDC. So you can use hyper terminal on PC side.

Using HID on EK side may be a little tricky when compared CDC.

> Can one of you please tell me in general steps, what I should do to be able to use USB Port of AT91SAM9260-EK.
>
> At the end, I want to be able to do debugging using Eclipse via USB.
>

Neither CDC nor HID will help you for debugging your application on
Eclipse. What you need is a JTAG adapter(I see you have J-Link from
your other post) and openOCD.

Regards,
Caglar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkopBpAACgkQ/nL+S5dojej6HwCePJLnFcGLZ5BuIYnNYXnXRtOO
iYEAnRnPXFhjbkwNLCZae6JsxWLFdaJI
=pQHL
-----END PGP SIGNATURE-----
If you are just interested in debugging, google "openOCD."

If you want to write software to be an USB device, google "atmel usb at91sam
device"

2009/6/5 Bet Ayd

> So you say I should use HID instead of CDC..hmm..why not CDC ?
>
> Then, after pretending to be a mouse, how can I debug with Eclipse ?
> I was using JLink and it was trivial. but I don't know the next step after
> creating a Virtual COM Port.
>
> Again sorry for bugging with my basic questions..
>
> brno
> On Fri, Jun 5, 2009 at 3:52 AM, Eric Haver wrote:
>
>> On Thu, Jun 4, 2009 at 12:06 PM, wrote:
>>
>>>
>>>
>>> Hi all,
>>>
>>> I'm a begginner in embedded debugging technologies. I'm sorry for my very
>>> basic questions..
>>>
>>> I'm using AT91SAM9260-EK + Yagarto + Eclipse. I'm using Windows XP.
>>> I am trying to communicate with the card via USB. I have been reading
>>> about one week however I still have no idea how to do that. I don't know
>>> what to do with 6124.inf or usbser.sys files.
>>>
>>> Should I go through CDC or HID? I have also looked at Atmel's site.
>>>
>>> Can one of you please tell me in general steps, what I should do to be
>>> able to use USB Port of AT91SAM9260-EK.
>>>
>>> At the end, I want to be able to do debugging using Eclipse via USB.
>>>
>>> no idea!!sorry for bugging with very simple questions..
>>>
>>> brno
>>>
>>> Hi Brno,
>>
>> There are two different ideas that you are trying to decypher.
>>
>> To program AT91SAM use SAM-BA. Compile your file to a BIN and upload it.
>>
>> If you happen to write a program to use the UDP(USB Device Port) as a USB
>> device, a good place to start would be an HID, pretending to be a Mouse, or
>> some such.
>>
>> A little more complicated i
>>>
>>>
>>> ,_._,___
>>>
>
>

The 2024 Embedded Online Conference