Hello,
I am using KDS to build out the various demos and USB demos available for the FRDM-K22F. So far everything is compiling, flashing, and operating without issue. Super impressed with the product so far and I know it is not easy to make everything work together.
The problem I am having is with the CDC/MSD composite demo. In composite_app.c there are three errors citing undefined references to:
#include "usb_class_composite.h"
...
/* Initialize the USB interface */
USB_Composite_Init(CONTROLLER_ID, &usb_composite_callback, &g_app_handle);
USB_Composite_Get_Class_Handle(g_app_handle, USB_CLASS_CDC, &g_vcom_handle);
USB_Composite_Get_Class_Handle(g_app_handle, USB_CLASS_MSC, &g_disk.app_handle);
This header exists but there is no implementation! I've scored the KSDK folder for what the file I assume should be named "usb_class_composite.c". Has anyone successfully run this demo in KDS?
解決済! 解決策の投稿を見る。
Hi Cory,
I just tried it and was able to compile successfully using KSDK 1.0. Make sure you modify C:\Freescale\KSDK_1.0.0\usb\usb_core\device\include\frdmk22f120m\usb_device_config.h inside the USB Device project, and recompile the USB Device library. The line is on line 98:
#define USBCFG_DEV_COMPOSITE 1
It's odd that you don't see any implementation. It'll be in C:\Freescale\KSDK_1.0.0\usb\usb_core\device\sources\classes\composite\usb_composite.c on line 119.
-Anthony
Hi Cory,
I just tried it and was able to compile successfully using KSDK 1.0. Make sure you modify C:\Freescale\KSDK_1.0.0\usb\usb_core\device\include\frdmk22f120m\usb_device_config.h inside the USB Device project, and recompile the USB Device library. The line is on line 98:
#define USBCFG_DEV_COMPOSITE 1
It's odd that you don't see any implementation. It'll be in C:\Freescale\KSDK_1.0.0\usb\usb_core\device\sources\classes\composite\usb_composite.c on line 119.
-Anthony
Hi Anthony,
...Make sure you modify C:\Freescale\KSDK_1.0.0\usb\usb_core\device\include\frdmk22f120m\usb_device_config.h inside the USB Device project, and recompile the USB Device library.
I was failing to recompile the USB Device library! All set now, thank you very much for your help.