Freescale USB Stack with Freedom board 'Device not recognised'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Freescale USB Stack with Freedom board 'Device not recognised'

2,018 次查看
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,518 次查看
gmscribe
Contributor II

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

0 项奖励
回复

1,518 次查看
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,518 次查看
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,518 次查看
Monica
Senior Contributor III

Alistair,

Are MSD+HID working better for your project?

Let us know! :smileywink:

Regards!

0 项奖励
回复

1,518 次查看
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 项奖励
回复