USB-CDC code not working in KEIL

OP #1173438
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
processor.

I have a example source code for AT91SAM7S64 processor in IAR workbench
tool.
Downloaded from
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index_at91.html
.This IAR code is working very well.
I want to  covert  the code from IAR  to keil tool for AT91SAM7SE512
processor.

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,
Murthy.R
Attached files:
Moderator #1173439
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
handled.

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.