EmbDev.net

Forum: ARM programming with GCC/GNU tools USB problem


von Jacopo C. (jacopo)


Rate this post
useful
not useful
I'm trying to devellop on AT91SAM7SE-EK an USB application.
I tried to use the ATSAM7S64_basicUSB example that I found on
http://www.siwawi.arubi.uni-
kl.de/avr_projects/arm_projects/index_at91.html#at91_usb1
I modified the makefile to obtain the main.bin file to download on my
board. I build all the project and I used SAM-BA program to download the
file on the board, and its all OK.
But when I connect USB cable on my PC (with XP Professional), my PC
dosen't recognize the new connection and does nothing. I switch off and
switch on my board but nothing changes.

Then I download the AT91SAM7SEEK_CDC.bin file that I found on
application note AT91 USB Framework - Core 1.02 + CDC 1.00 for
AT91SAM7SE256 and finally, when I plug my USB on PC, my PC discover the
new hardware and ask me for the driver. After the installation the PC
sees a new COM port and the board transfers the data from USB to DBGUART
port (connected on another COM) and it's works correctly.

But, I prefer to start to devellop from the ATSAM7S64_basicUSB example.
Does anyone have good idea to make it works on AT91SAM7SE-EK? Thanks.

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Jacopo Charmet wrote:
> I'm trying to devellop on AT91SAM7SE-EK an USB application.
> I tried to use the ATSAM7S64_basicUSB example that I found on
> http://www.siwawi.arubi.uni-
> kl.de/avr_projects/arm_projects/index_at91.html#at91_usb1
> I modified the makefile to obtain the main.bin file to download on my
> board. I build all the project and I used SAM-BA program to download the
> file on the board, and its all OK.
> But when I connect USB cable on my PC (with XP Professional), my PC
> dosen't recognize the new connection and does nothing. I switch off and
> switch on my board but nothing changes.
>
> Then I download the AT91SAM7SEEK_CDC.bin file that I found on
> application note AT91 USB Framework - Core 1.02 + CDC 1.00 for
> AT91SAM7SE256 and finally, when I plug my USB on PC, my PC discover the
> new hardware and ask me for the driver. After the installation the PC
> sees a new COM port and the board transfers the data from USB to DBGUART
> port (connected on another COM) and it's works correctly.
>
> But, I prefer to start to devellop from the ATSAM7S64_basicUSB example.
> Does anyone have good idea to make it works on AT91SAM7SE-EK? Thanks.

I expect there are small differences between SAM7S and SAM7SE (I only
have boards with SAM7S64 and SAM7S256 here for tests). Since the
"basicUSB" example from my page is just a gcc-port of an older example
made by Atmel for the SAM7S64 you may ask Atmel (IRC
at91<at>atmel<dot>com) if they have a version of the example for the
SAM7SE too. Porting can be done using the SAM7S-port as template.
Although the basicUSB example may look easier to used I think the AT91
USB framework is now the prefered method to implement code for USB on
SAM7/9.

von Mariusz D. (ziobroo)


Rate this post
useful
not useful
I have a similar problem

I compile project in WinARM and try to load hex file to at91sam7s-ek
(with at91sam7s256). I want to do it by SAM-BA. When i connect PC with
board through RS-232 Cable DBGU it recognize the target, but whet I try
to connect by USB an error appears:

-F- No Device     (or something like that)


Can somebody help me?

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.