how can i use USB-SERIAL port communicate with PC?
Posted: Sun Jan 16, 2022 2:01 am
hello!
i want communicate with PC by using esp32-c3's USB-SERIAL-JTAG port as usual uart,
but,i don't known how to initialize it,don't know which API can send data to the usb-serial port or receive data from it.
would you tell me the details?
there are some functions in ESP-IDF 4.4:
static void usb_serial_jtag_write_and_flush(const uint8_t *buf, uint32_t wr_len)
static void usb_serial_jtag_isr_handler_default(void *arg)
esp_err_t usb_serial_jtag_driver_install(usb_serial_jtag_driver_config_t *usb_serial_jtag_config)
int usb_serial_jtag_read_bytes(void* buf, uint32_t length, TickType_t ticks_to_wait)
int usb_serial_jtag_write_bytes(const void* src, size_t size, TickType_t ticks_to_wait)
these functions are interface of usb-serial-jtag port?how to use it? where to find examples about?
i want communicate with PC by using esp32-c3's USB-SERIAL-JTAG port as usual uart,
but,i don't known how to initialize it,don't know which API can send data to the usb-serial port or receive data from it.
would you tell me the details?
there are some functions in ESP-IDF 4.4:
static void usb_serial_jtag_write_and_flush(const uint8_t *buf, uint32_t wr_len)
static void usb_serial_jtag_isr_handler_default(void *arg)
esp_err_t usb_serial_jtag_driver_install(usb_serial_jtag_driver_config_t *usb_serial_jtag_config)
int usb_serial_jtag_read_bytes(void* buf, uint32_t length, TickType_t ticks_to_wait)
int usb_serial_jtag_write_bytes(const void* src, size_t size, TickType_t ticks_to_wait)
these functions are interface of usb-serial-jtag port?how to use it? where to find examples about?