Search found 11 matches

by seancross
Fri Feb 07, 2025 5:15 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 8
Views: 7269

Re: ESP32-S3 USB Serial JTAG on External PHY?

I just used a pair of buffers, but you might be able to do it with just a resistor. The part number is SN74AUP1G125DCKR. I also put down way too many resistors in case things went wrong. It seems to work well!
by seancross
Wed Nov 08, 2023 9:37 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 8
Views: 7269

Re: ESP32-S3 USB Serial JTAG on External PHY?

After further investigation, I've managed to come up with the following function -- posted here in the hopes that it will help someone else:


#include "esp_private/usb_phy.h"
#include "hal/usb_phy_ll.h"
#include "soc/usb_pins.h"
#include "driver/gpio.h"
#include "esp_check.h"

static esp_err_t ...
by seancross
Wed Nov 08, 2023 2:46 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 8
Views: 7269

Re: ESP32-S3 USB Serial JTAG on External PHY?

After shorting VP to GPIO21 I'm starting to get somewhere. So it definitely seems like it's missing something in the documentation. I'm going to rework a second board and see if I can get something updated.

Is the RCV signal documented anywhere, or will it be?
by seancross
Wed Nov 08, 2023 2:44 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 8
Views: 7269

Re: ESP32-S3 USB Serial JTAG on External PHY?

One slightly concerning thing I'm starting to realize now that I have this board fabricated and I'm finding it doesn't work -- the `RCV` pin appears to be undocumented.

The reference manual on page 756 shows five pins are required: VP, VM, OEN, VPO, and VMO, but I see references in the code to a ...
by seancross
Wed Nov 08, 2023 2:13 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 8
Views: 7269

Re: ESP32-S3 USB Serial JTAG on External PHY?

One thing I've noticed is that `gpio_sig_map.h` has mappings for the following:


#define USB_EXTPHY_VP_IDX 55
#define USB_EXTPHY_OEN_IDX 55
#define USB_EXTPHY_VM_IDX 56
#define USB_EXTPHY_SPEED_IDX 56
#define USB_EXTPHY_RCV_IDX 57
#define USB_EXTPHY_VPO_IDX 57


However those signals are ...
by seancross
Tue Nov 07, 2023 2:55 pm
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 8
Views: 7269

ESP32-S3 USB Serial JTAG on External PHY?

Hi,

I'm designing a board that has USB, and I'd like to still be able to debug it. Accordingly, I've built a small test PCB that breaks out both the int and ext pins to a USB-C connector.

1. At boot, I get SERIAL_JTAG on INT USB
2. If I try the tinyusb console program, I get WARP on INT USB
3. If ...
by seancross
Thu Jul 14, 2022 1:47 pm
Forum: ESP-IDF
Topic: driver/gpio.h: No such file or directory
Replies: 6
Views: 34947

Re: driver/gpio.h: No such file or directory

It looks like the proper component is `driver`, not `drivers`:

Code: Select all

idf_component_register(SRC_DIRS "."
    REQUIRES driver
    INCLUDE_DIRS "."
    "include")
by seancross
Tue Jun 21, 2022 12:59 am
Forum: ESP-IDF
Topic: Why would streaming UART traffic break wifi?
Replies: 6
Views: 4829

Re: Why would streaming UART traffic break wifi?

Thanks to everyone for their help!

I've done a more thorough analysis, and I've discovered it's a design flaw in the PCB.

Due to space constraints, the ground plane is a bit thin around the level shifter. Unfortunately, the ground return for the UART RX pin is shared with the ground return for the ...
by seancross
Mon Jun 20, 2022 10:08 am
Forum: ESP-IDF
Topic: Why would streaming UART traffic break wifi?
Replies: 6
Views: 4829

Re: Why would streaming UART traffic break wifi?

As WiFive noted, the `while (1)` idiom came from the ESP-IDF uart.c driver.

Additionally, I've updated my test program to read 126 bytes at a time. So I know that's not it.

Things have gotten incredibly bizarre, however. I have the UART connected to GPIO22, and I've discovered that wifi breaks ...
by seancross
Mon Jun 20, 2022 3:54 am
Forum: ESP-IDF
Topic: Why would streaming UART traffic break wifi?
Replies: 6
Views: 4829

Re: Why would streaming UART traffic break wifi?

In order to simplify the issue and demonstrate it more fully, I've trimmed my code down and created a brand-new project. This project is posted at https://github.com/xobs/esp32-uart-issue

This smaller version simply runs a TFTP server that makes updating easier. I've verified that stopping that ...

Go to advanced search