Skip to content

esp32/boards: Add GENERIC_C3_USB. #7715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

esp32/boards: Add GENERIC_C3_USB. #7715

wants to merge 4 commits into from

Conversation

xorbit
Copy link
Contributor

@xorbit xorbit commented Aug 26, 2021

Add a new board type for ESP32-C3 revision 3 and up that implements the USB serial/JTAG port on pin 18 and 19. This variant uses the USB serial for programming and console, leaving the UART free.

  • Pins 18 and 19 are correctly reserved for this variant. I also added pins 14-17 as reserved for flash for any ESP32-C3 so they can't be reconfigured anymore to crash the system.
  • Added usb_serial_jtag.c and .h to implement this interface.
  • Interface was tested to work correctly together with webrepl.
  • Interface was tested to work correctly when sending and receiving large files with ampy.
  • Disconnecting terminal or USB will not hang the system when it's trying to print.
  • Control+C is working correctly.

xorbit added 4 commits August 11, 2021 12:13
Add a new board type for ESP32-C3 revision 3 and up that implement
the USB serial/JTAG port on pin 18 and 19.  This variant uses the
USB serial for programming and console, leaving the UART free.

- Pins 18 and 19 are correctly reserved for this variant.  I also
  added pins 14-17 as reserved for flash for any ESP32-C3 so they
  can't be reconfigured anymore to crash the system.
- Added usb_serial_jtag.c and .h to implement this interface.
- Interface was tested to work correctly together with webrepl.
- Interface was tested to work correctly when sending and receiving
  large files with ampy.
- Disconnecting terminal or USB will not hang the system when it's
  trying to print.
@dpgeorge
Copy link
Member

Thank you, a nice addition! Merged in a66bd7a

@dpgeorge dpgeorge closed this Aug 30, 2021
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Mar 14, 2023
Even more board definition improvements for `waveshare_esp32s2_pico`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants