Forum: ARM programming with GCC/GNU tools USB-CDC code not working in KEIL

Author: Nanju Murthy (nanjooh)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Hi friends,

I am working in the KEIL uvision3 (Real view) tool.
Right now i am working in the USB-CDC programming for the AT91SAM7SE512

I have a example source code for AT91SAM7S64 processor in IAR workbench
Downloaded from
.This IAR code is working very well.
I want to  covert  the code from IAR  to keil tool for AT91SAM7SE512

The Problem is

1. when i connect the device to the host ( PC ),  I am getting the
message "USB device is not recognized".

2. can I include any files to this?

I have included the source code for your reference.

Could you please  advice me on this.

With Regards & Thanks,

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
This might be a problem with struct-packaging. Did you check this? AFAIK
the Realview-compiler has a pragma to enable/disable packaging. There
are also USB examples included in the Keil-package (at least in an older
eval-version I have here) where you can see how the packaging can be

Author: Kris Ruc (2gatunek)
Posted on:

Rate this post
0 useful
not useful
Do you resolve your problem ?


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.