USBC Connection for Direct Programming

I created a custom ESP32 C3 board and I am using an external USB to UART board to program it.
I am using a USBC port to power the project, so decided to use the other pins to pass the enable pin (EN), and boot mode pins (IO8 and (IO9); however, I am having reliability issues. The connector has to be put in just the right spot with my mating device, and program uploads frequently fail. An image of my schematic is below.

Is there anything inherently wrong with what I am doing with this project or do I just have to shop around for more reliable USBC connectors. AKA: Is a usbc port designed to pass serial communications through it? I am not using the differential pins so I wonder if I just have a poor connection due to that.

Also, the power connection is very consistent and I have never had issues powering the project, but I do notice that the connector will eventually wear out and stop working with the programming board.

Thanks!

Are you using the IC, a module or a development kit?

Are you trying to use a USB-C connector for non USB purposes?
What cable are you using?
It's not clear what you are doing here?

That doesn't make sense.
An ESP32-C3 chip can connect directly to a USB port (has native USB).
No USB/UART board needed.
Leo..

Hello!
For the questions above:
I am using a module on a custom development board.

I am using the pins for non-usb purposes. Just trying to use them as digital pins to interface with the module.

I am not using a cable per se, but a male usbc breakout board to connect to my USB to UAET board.

What I am trying to do is use the USBC port as a pass through for connections to parts of my board, but I am having issues with the signal integrity. I want to know if this is a common use for a USB port and if I should be using differeicital signals or something to ensure I have a good enough connection.

Thanks,

Then there is no point in having the resistors on the CC pins

want to know if this is a common use for a USB port

No it is not.

if I should be using differeicital signals or something to ensure I have a good enough connection.

There are no USB signals on that connector, so you can do whatever you like. Your problems may be somewhere else in your design.

If you want help, post you entire schematic.

Attached is the schematic:
ESP32 USBC Question.pdf (173.8 KB)

Here is a picture of the mating connector:

Let me know if what I am doing should be able to send serial communication and controlling pins high and low or if I should be doing it with other circuitry.

Seems like self-inflicted problems.
What are all the other pins used for.
A bare esp chip has a lot of I/O.
Leo..

Are you trying to use the Arduino IDE to program the ESP?
Exactly what plugs into that USB-C connector?

Why don't you just follow the schematic for the C3 dev kit?

My goal is to use this board as a custom bare bones development board. On the next iteration I will add thermistors and the board will be used to measure temperature. I plan to have it connected to wifi and additionally have a screen.
Why I don’t use a standard dev board or copy the one online is that I want to learn and make something that works exactly with my intended use.

I am using the Arduino IDE to program it. To be clear, it had worked, but it is very unreliable.
The male connector I had in the picture above connects to the schematic I made.
For a usb to uart board, I have a ESP32 dev board that I removed the ESP32 from and I am just using the chip on that board.

An ESP32 has an absolute A/D and is therefore not very well suited for thermistors.
You need a ratiometric A/D for that. And there is the poor linearity of the A/D of an ESP.
Digital temp sensors are much better suited for the ESP32.
Like the DS18B20 (-55C to +125C). Many of them can be connected to a single pin of the ESP.
A screen can be I2C or SPI and only uses two or three pins.

I think you mean the ESP module (metal box). An ESP chip is about 2x2 mm.

I see other threads from you with bits and pieces of a project.
You will get better help if you explain and post your whole project.
Leo..

I appreciate that info!

At the moment I am looking for advice regarding my usage of a USBC port. As it has 2 banks of 12 pins I am trying to use it as a connector to interface with my board while keeping my interface very simple for the final product.

From what I can tell there is nothing I am doing completely wrong with using a USBC port as a a pass through instead of USB functionality, but I do believe I still need the R13 and R14 resistors to ensure that the power supply will deliver power.

Either way, sounds like I should get a higher quality connector and try again.

Let me know if you have any more advice!

While is sounds like a generally bad idea, I don't see any reason that it shouldn't work.

Your description of the problem sounds like it could be just a case of poor soldering (or a bad connector, as you say.)

Wrong!
True only if you connect to a USB port, which you are not.

What chip is that?
How are you controlling chip enable and DTR?

Millions of people use those USB-C connectors everyday so I doubt that the connector is the problem.