Skip to content

Turn on second SerialUSB, need some help #805

@s-t-e-p-a-n-o-v

Description

@s-t-e-p-a-n-o-v

Hi!
I would like to enable second virtual COM port in arduino-pico core.

So new USB CDC descriptor was added to cores\rp2040\RP2040USB.cpp

#define USBD_ITF_CDC0 (0) // needs 2 interfaces
#define USBD_ITF_CDC1 (2)
#define USBD_ITF_MAX (4)

#define USBD_CDC_EP_CMD0 (0x81)
#define USBD_CDC_EP_CMD1 (0x84)
#define USBD_CDC_EP_OUT0 (0x02)
#define USBD_CDC_EP_OUT1 (0x05)
#define USBD_CDC_EP_IN0 (0x82)
#define USBD_CDC_EP_IN1 (0x85)
#define USBD_CDC_CMD_MAX_SIZE (8)
#define USBD_CDC_IN_OUT_MAX_SIZE (64)

EP values are from @Noltari project pico-uart-bridge

and CFG_TUD_CDC was changed to 2 in include\tusb_config.h and tools\libpico\tusb_config.h
#define CFG_TUD_CDC (2)

After flashing only one port is available in system, what can be wrong ? Could you point to any ideas/guidelines how to do it ?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions