SDK Version: SDK_2.x_LPC5516 version 2.16.000
MCUXpresso version: 11.9.0
SDK component(s):
- Utilities
- Device
- SDK Utilities
- debug_console
- serial_manager_usb_cdc
Problem: Using the debug_console SDK utility in kSerialPort_UsbCdc mode fails.
Several of the global variables and defines that fsl_component_serial_port_usb.c rely upon are heavily decorated on the LPC5516 due to there being two USB ports.
For example at line 178 in fsl_component_serial_port_usb.c there is the following definition expecting a global usb_device_class_struct_t named g_UsbDeviceCdcVcomConfig:
/* USB device class information */
static usb_device_class_config_struct_t s_cdcAcmConfig[1] = {{
USB_DeviceCdcVcomCallback,
0,
&g_UsbDeviceCdcVcomConfig,
}};
However in usb_device_descriptor.c, which is installed as part of the same SDK component, the struct seems to be declared with the name g_UsbDeviceInterface0CicVcomConfig instead.
usb_device_class_struct_t g_UsbDeviceInterface0CicVcomConfig = {
g_UsbDeviceInterface0CicVcomInterfaceList,
kUSB_DeviceClassTypeCdc,
USB_DEVICE_CONFIGURATION_COUNT,
};
It looks like the serial_port component is expecting variables to be decorated with "UsbDeviceCdc" but the globals are actually decorated with "UsbDeviceInterface0Cic"
How would you suggest I handle this? Is there a way to change the decoration for the generated code, or should I modify the component source code directly?
Thanks!