AnsweredAssumed Answered

lpc54608 usb1 cdc

Question asked by Eileen Radzwion on Sep 23, 2019
Latest reply on Oct 3, 2019 by ZhangJennie

hi,

 

i am trying to configure usb1 for hs usb cdc mode on a prototyped board using the lpc54608. 

starting from dev_cdc_vcom_lite_bm,  I have set serial_port_type_usbcdc =  1, and usb_device_config_lpcip3511hs =1, while setting

#define USB_DEVICE_CONFIG_LPCIP3511FS (0u)

#define SERIAL_PORT_TYPE_UART (0U)

these are defined in serial_manager.h and usb_device_config.h

 

the first problem to arise is that, upon setting the port type to usbcdc rather than uart, I am unable to build.  second, if I prevent error from happening, I am still unable to connect.  so, I am wondering, what steps am I missing to configure usb1 for cdc.

 

thank you!

 

how I prevent (//commented out code is what came with sdk; my my modification is below)

 

/*******************************************************************************
 * Definitions
 ******************************************************************************/
#ifdef DEBUG_CONSOLE_TRANSFER_NON_BLOCKING
#define SERIAL_MANAGER_NON_BLOCKING_MODE \
    (1U) /* Enable or disable serial manager non-blocking mode (1 - enable, 0 - disable) */
#else
#ifndef SERIAL_MANAGER_NON_BLOCKING_MODE
#define SERIAL_MANAGER_NON_BLOCKING_MODE \
    (0U) /* Enable or disable serial manager non-blocking mode (1 - enable, 0 - disable) */
#endif
#endif

#ifndef SERIAL_PORT_TYPE_UART
#define SERIAL_PORT_TYPE_UART (1U) /* Enable or disable uart port (1 - enable, 0 - disable) */
#endif

#ifndef SERIAL_PORT_TYPE_USBCDC
#define SERIAL_PORT_TYPE_USBCDC (0U) /* Enable or disable USB CDC port (1 - enable, 0 - disable) */
#endif

#ifndef SERIAL_PORT_TYPE_SWO
#define SERIAL_PORT_TYPE_SWO (0U) /* Enable or disable SWO port (1 - enable, 0 - disable) */
#endif

#if (defined(SERIAL_MANAGER_NON_BLOCKING_MODE) && (SERIAL_MANAGER_NON_BLOCKING_MODE > 0U))
#define SERIAL_MANAGER_WRITE_HANDLE_SIZE (44U)
#define SERIAL_MANAGER_READ_HANDLE_SIZE (44U)
#else
#define SERIAL_MANAGER_WRITE_HANDLE_SIZE (4U)
#define SERIAL_MANAGER_READ_HANDLE_SIZE (4U)
#endif

#if (defined(SERIAL_PORT_TYPE_UART) && (SERIAL_PORT_TYPE_UART > 0U))
#include "serial_port_uart.h"
#endif

#if (defined(SERIAL_PORT_TYPE_USBCDC) && (SERIAL_PORT_TYPE_USBCDC > 0U))

//#if !(defined(SERIAL_MANAGER_NON_BLOCKING_MODE) && (SERIAL_MANAGER_NON_BLOCKING_MODE > 0U))
#if !(SERIAL_MANAGER_NON_BLOCKING_MODE > 0U)            //edited
#error The serial manager blocking mode cannot be supported for USB CDC.
#endif

#include "serial_port_usb.h"
#endif

Outcomes