![]() ![]() * User includes (#include below this line is not maintained by Processor Expert) */ * Including shared modules, which are used for whole project */ * Including needed modules to compile this module/procedure */ ** This module contains user's application code. Note: Later version of the component is using CDC1_ Prefix for functions, as the methods have been moved to a separate CDC submodule. I’m adding the function CDC_Run() to the ProcessorExpert.c as below and call it from main(): If you do not want to use the LEDs, then simply remove the code for the LEDs in the code below. ❗ Hint: An easy way to copy Processor Expert components from one project to another is using copy-paste. To show the current enumeration status, I’m using my code from my earlier Tutorial: Enlightening the Freedom KL25Z Board. All what I add in Processor Expert is a simple loop-back which does an echo of what I type into the terminal window. □ Processor Expert still warns about the need for 48 MHz clock, even I have it set up with 48 MHz? Anyway, the important thing is that it *is* clocked with 48 MHz. To create a new project, I select the menu File > New > Bareboard Project and give it a project name: Tutorial: Enlightening the Freedom KL25Z Board. Of course it is possible to add USB CDC support to any of the other tutorials I have published for the Freedom KL25Z board, e.g. In this tutorial I start from a clean sheet and create a new project. ❗ The FSL_USB_Stack Processor Expert component has been updated to version V1.008 to support the KL25Z Step 1: Creating the Project (or reuse an existing one) Wait: Universal realtime waiting functions.FSL_USB_Stack: Freescale USB Stack as Processor Expert component. ![]() In this tutorial I’m using following components: Otherwise, have a look at the section “Additional Processor Expert Component Installation” in this post. If you followed my earlier Freedom Board tutorials, then I hope you are familiar with loading more user components. I’m using CodeWarrior for MCU10.3 with my Processor Expert components. As for myself, after learning all the knowledge needed, it takes me less than 10 minutes :grin. It takes you maybe around 30 minutes, and you will have USB support with your Freedom board :-). What is missing is support for the Kinetis KL25Z. For several months I’m using successfully my Processor Expert FSL_USB_CDC component since early this year, in several projects and with different boards. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |