Search found 10 matches

by seancross
Wed Nov 08, 2023 9:37 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 5
Views: 3436

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 configu...
by seancross
Wed Nov 08, 2023 2:46 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 5
Views: 3436

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: 5
Views: 3436

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 sig...
by seancross
Wed Nov 08, 2023 2:13 am
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 5
Views: 3436

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 undocumented i...
by seancross
Tue Nov 07, 2023 2:55 pm
Forum: Hardware
Topic: ESP32-S3 USB Serial JTAG on External PHY?
Replies: 5
Views: 3436

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 I ...
by seancross
Thu Jul 14, 2022 1:47 pm
Forum: ESP-IDF
Topic: driver/gpio.h: No such file or directory
Replies: 5
Views: 23379

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: 3842

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 4...
by seancross
Mon Jun 20, 2022 10:08 am
Forum: ESP-IDF
Topic: Why would streaming UART traffic break wifi?
Replies: 6
Views: 3842

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 even ...
by seancross
Mon Jun 20, 2022 3:54 am
Forum: ESP-IDF
Topic: Why would streaming UART traffic break wifi?
Replies: 6
Views: 3842

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 TFTP...
by seancross
Sun Jun 19, 2022 4:15 pm
Forum: ESP-IDF
Topic: Why would streaming UART traffic break wifi?
Replies: 6
Views: 3842

Why would streaming UART traffic break wifi?

Hi, I'm working with an ESP32 using ESP-IDF-4.4. I want to enable interactive remote serial sessions, so I'm implementing my own interrupt handler. The problem I'm running into is that wifi seems to die whenever I send "a lot" of data via the UART and the UART speed is above around 38400 baud. My in...