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
Solved! Go to Solution.
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
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
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
Hi Mike,
The components are available on SourceForge: McuOnEclipse Releases on SourceForge | MCU on Eclipse
Direct link:
https://sourceforge.net/projects/mcuoneclipse/
https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/
Erich
Or can I only use clock configuration 0 for the FSL_USB_Stack component?
Yes, we had a discussion here: Can the PE FSL_USB_STACK use Clock Source 1
Sweet! I have clock configuration 3 setup for my 48MHz clock. Where can I change the USB to use this configuration?