Search found 3 matches

by arnaudmz
Mon Feb 28, 2022 3:57 pm
Forum: ESP-IDF
Topic: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?
Replies: 6
Views: 2991

Re: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?

Found it in the meantime:

Code: Select all

USB_SERIAL_JTAG_FRAM_NUM_REG
does the trick very well.

Thanks.
by arnaudmz
Mon Feb 28, 2022 3:39 pm
Forum: ESP-IDF
Topic: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?
Replies: 6
Views: 2991

Re: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?

@ESP_Sprite: sounds good enough, I can live with this.

Could you provide a link to some documentation where to look for this register and give it a go?

Arnaud
by arnaudmz
Sat Feb 26, 2022 1:32 pm
Forum: ESP-IDF
Topic: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?
Replies: 6
Views: 2991

ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?

Hi there.

I'd like to adapt the behaviour of my application depending on wether the native USB console is plugged or not.

Is there a software-based way to know this?
Do I have to use an extra GPIO plugged on the VUSB (with resistors to lower the voltage) ?

Regards,

Arnaud