Freescale USB Stack with Freedom board 'Device not recognised'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Freescale USB Stack with Freedom board 'Device not recognised'

2,017件の閲覧回数
gmscribe
Contributor II

Hi guys,

 

I've recently picked-up a copy of Freescale's USB Stack 4.0.3 and am attempting to generate a project with Processor Expert for the Freedom KL25Z.

 

I'm actually generating a Keil project so my Compiler is set to Keil C/C++ and I'm generating a project with the Keil Eclipse plugin as in this video:

Processor Expert: Integrating with Keil Microvision - YouTube

 

I'm also modifying 'asm' command errors that crop up in the USB stack to '__asm' to correct for armcc syntax.

 

My project consists of the default CPU component and a HID component, attempting to be a generic HID device. I've tweaked settings for this component every which way, I've double-checked CPU clock and USB hardware components, however, whenever I connect the Freedom, Windows says 'device not recognised' and via USBView further elaborates to say 'Device Failed Enumeration'.

 

When debugging, connecting the device successfully triggers the USB_APP_BUS_RESET event via the associated callback, however I'm not seeing any activity beyond this.

 

As I'm new to USB and indeed Freescale products, I suspect this is a newbie error. I've attached a sample project below and would greatly appreciate any insight some kind soul may have to offer.

 

Many thanks

Original Attachment has been moved to: ProgDog.rar.zip

タグ(2)
0 件の賞賛
返信
5 返答(返信)

1,517件の閲覧回数
gmscribe
Contributor II

Still stumped on this. Has no one had working USB HID on Freedom via Processor Expert?

0 件の賞賛
返信

1,517件の閲覧回数
injunear1
Contributor IV

Does it have to be HID, or might CDC work? What are you trying to connect to?

Have you tried using CodeWarrior instead of Keil for a very basic connection? Perhaps getting working in one IDE will lead you to figure out how to do it in another?

0 件の賞賛
返信

1,517件の閲覧回数
gmscribe
Contributor II

It's ultimately going to be MSD + HID, it needs to be idiot proof Plug n Play, the app itself will run straight off the mass storage in OS-friendly Java with no install. I've considered CDC but it just doesn't quite fit the bill.

0 件の賞賛
返信

1,517件の閲覧回数
Monica
Senior Contributor III

Alistair,

Are MSD+HID working better for your project?

Let us know! :smileywink:

Regards!

0 件の賞賛
返信

1,517件の閲覧回数
gmscribe
Contributor II

Apologies for the very late response, ultimately I moved to using the paid-for Keil MDK-PRO USB library.

Had everything working within 10 minutes with no issue. Depending on how you price your own time, sometimes it's worth placing forward the money it seems.

0 件の賞賛
返信