Hi!
I try to import the USB_CDC_DEVICE_MK40DX256_PEx example project from the Freescale USB Stack v4.1.1 (C:\Freescale\Freescale USB Stack v4.1.1\ProcessorExpert\Examples\Device\CDC).
It looks like this project is corrupt as it does not contain the USB_CDC_CLASS component at all. It also does not compile.
Regards,
Anguel
Solved! Go to Solution.
Hi,
we have reproduced the problem. The examples get broken when they are imported to CW10,4 and re-generated.
The problem is than in the usb_descriptor.h, the #endif part at the #endif gets duplicated.
The quick workaround is to delete the ending part with the last #endif :
/* Begin of code block <4> auto generated code, DO NOT MODIFY LINES BELOW */
#endif
/*
** ###################################################################
**
** This file was created by Processor Expert 10.0 [05.03]
** for the Freescale Kinetis series of microcontrollers.
**
** ###################################################################
*/
/* End code block <4> auto generated code, DO NOT MODIFY LINES ABOVE */
After that, I was able to build the example with the CW10.4.
We are sorry for an incovenience.
best regards
Petr Hradsky
Processor Expert Support Team
Hi,
please import USB componnets (USB_DEVICE_STACK and USB_CDC_CLASS) from "...\Freescale USB Stack v4.1.1\ProcessorExpert\Components" directory.
See "...\Freescale USB Stack v4.1.1\Documentation\USBPEXQSG.pdf" for more info.
MVa
Marek,
Thank you for the reply but have you actually tested yourself if the project really works?
Of course I have imported the components but this does not solve the problem.
Regards,
Anguel
Hi,
we have reproduced the problem. The examples get broken when they are imported to CW10,4 and re-generated.
The problem is than in the usb_descriptor.h, the #endif part at the #endif gets duplicated.
The quick workaround is to delete the ending part with the last #endif :
/* Begin of code block <4> auto generated code, DO NOT MODIFY LINES BELOW */
#endif
/*
** ###################################################################
**
** This file was created by Processor Expert 10.0 [05.03]
** for the Freescale Kinetis series of microcontrollers.
**
** ###################################################################
*/
/* End code block <4> auto generated code, DO NOT MODIFY LINES ABOVE */
After that, I was able to build the example with the CW10.4.
We are sorry for an incovenience.
best regards
Petr Hradsky
Processor Expert Support Team
Petr,
First of all many thanks for your support. I restored the original USB_CDC_DEVICE_MK40DX256_PEx folder, deleted the part you said is causing the conflict, imported the project but it still does NOT show up correctly and build.
Let me compare it to the USB_CDC_DEVICE_K40_PEx which works fine for me:
The USB_CDC_DEVICE_K40_PEx shows a USB_CDC_CLASS component and then shows the USB_DEVICE_STACK component under "Referenced_Components".
In contrast the USB_CDC_DEVICE_MK40DX256_PEx project which does not work contains only a USB_DEVICE_STACK component, there is no USB_CDC_CLASS component at all in that project.
Anguel
Could you be more specific in errors you are receiving in Problems view?
The project that I've built from USB stack 4.1.1. also contains only USB_DEVICE_STACK component and USB_LDD under it.
best regards
Petr Hradsky
Processor Expert Support Team
Petr,
Thank you for your help, now it builds ok. The problem was that I had understood that I have to remove the #endif before importing the project, but then it turned out that I have to import the project first, run PE code generator and then delete the last #endif part.
But I still do not understand why this project does not use the USB_CDC_CLASS component. This class is used by other projects and is also described on page 77 and following of the USBPEXQSG.pdf document included with USB Stack v4.1.1.
Anguel