USB on KL24 with processor expert

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

USB on KL24 with processor expert

跳至解决方案
2,163 次查看
mikeconover
Contributor II

Has anyone been able to get USB working on the KL24 kinetis microcontroller using processor expert? I tried using the USB_LDD driver in processor expert and I am probing the USB lines and don't see anything on them. Any suggestions on how to get USB working on KL24 processor?

Thanks,

Mike

0 项奖励
回复
1 解答
1,849 次查看
BlackNight
NXP Employee
NXP Employee

Hi Mike,

I don't have a KL24, but reader of my blog confirmed that it is working for him. The FSL_USB_Stack has a selection for the KL24 (the USB blocks are pretty much the same for all Kinetis).

So you might give the FSL_USB_Stack Processor Expert components a try. There are examples for CodeWarrior (mcuoneclipse/Examples/FRDM-KL25Z at master · ErichStyger/mcuoneclipse · GitHub) and Kinetis Design Studio (mcuoneclipse/Examples/KDS at master · ErichStyger/mcuoneclipse · GitHub).

The following article shows the necessary settings (important are the clock settings):

http://mcuoneclipse.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/

Since that original article, the components have been refactored: USB Component Splitted and Updated | MCU on Eclipse

The components are available on SourceForge: McuOnEclipse Releases on SourceForge | MCU on Eclipse

I hope this helps.

Happy New Year,

Erich

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,850 次查看
BlackNight
NXP Employee
NXP Employee

Hi Mike,

I don't have a KL24, but reader of my blog confirmed that it is working for him. The FSL_USB_Stack has a selection for the KL24 (the USB blocks are pretty much the same for all Kinetis).

So you might give the FSL_USB_Stack Processor Expert components a try. There are examples for CodeWarrior (mcuoneclipse/Examples/FRDM-KL25Z at master · ErichStyger/mcuoneclipse · GitHub) and Kinetis Design Studio (mcuoneclipse/Examples/KDS at master · ErichStyger/mcuoneclipse · GitHub).

The following article shows the necessary settings (important are the clock settings):

http://mcuoneclipse.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/

Since that original article, the components have been refactored: USB Component Splitted and Updated | MCU on Eclipse

The components are available on SourceForge: McuOnEclipse Releases on SourceForge | MCU on Eclipse

I hope this helps.

Happy New Year,

Erich

0 项奖励
回复
1,849 次查看
mikeconover
Contributor II

Erich,

Thanks for the reply. I saw your example on your blog using the FSL_USB_Stack component. However, I am not able to find the FSL_USB_Stack component in processor expert. Is there a way to add it? If so, where do I get that component?


-Mike

0 项奖励
回复
1,849 次查看
BlackNight
NXP Employee
NXP Employee
0 项奖励
回复
1,849 次查看
mikeconover
Contributor II

Or can I only use clock configuration 0 for the FSL_USB_Stack component?

0 项奖励
回复
1,849 次查看
BlackNight
NXP Employee
NXP Employee

Yes, we had a discussion here: Can the PE FSL_USB_STACK use Clock Source 1

0 项奖励
回复
1,849 次查看
mikeconover
Contributor II

Sweet! I have clock configuration 3 setup for my 48MHz clock. Where can I change the USB to use this configuration?

0 项奖励
回复