Search found 8 matches

by clydeps
Mon Aug 26, 2024 2:41 am
Forum: ESP-IDF
Topic: USB Host: number of endpoints limited to 8
Replies: 2
Views: 350

Re: USB Host: number of endpoints limited to 8

Ah, it seems this is a hardware limitation of the ESP32-Sx chips.
by clydeps
Mon Aug 26, 2024 1:52 am
Forum: ESP-IDF
Topic: USB Host: number of endpoints limited to 8
Replies: 2
Views: 350

USB Host: number of endpoints limited to 8

I'm trying to talk to a 4 port usb-serial chip, which needs 9 endpoints (control plus 2 each for each port, i.e. 4 interfaces.) When I try to claim the fourth interface, it fails with NOT_SUPPORTED error, and I believe this is due to the number of channels available being only 8, as defined in compo...
by clydeps
Sun Aug 25, 2024 9:47 am
Forum: ESP-IDF
Topic: USB host device not reported on disconnect and reconnect
Replies: 2
Views: 830

Re: USB host device not reported on disconnect and reconnect

The code is similar to the example in the API docs, but what I did wrong was not calling `usb_host_device_close` after the device was removed. All working now.
by clydeps
Sat Jul 27, 2024 4:29 am
Forum: ESP-IDF
Topic: USB host device not reported on disconnect and reconnect
Replies: 2
Views: 830

USB host device not reported on disconnect and reconnect

I'm using the usb host library on an ESP32S3. If I reset the ESP with a USB device connected, or plug in a USB device after the ESP has started up, I get, as expected, a USB_HOST_CLIENT_EVENT_NEW_DEV message, and can connect to the device. If I then unplug the device, I get, again as expected, a USB...
by clydeps
Mon Jan 02, 2023 10:32 am
Forum: ESP-IDF
Topic: Migration to v5.0 problem - inbuilt components not found
Replies: 2
Views: 2998

Re: Migration to v5.0 problem - inbuilt components not found

Ah, thanks. I thought I had tried that, but I may have used "esp_events" instead of "esp_event".
by clydeps
Sun Jan 01, 2023 2:55 am
Forum: ESP-IDF
Topic: Migration to v5.0 problem - inbuilt components not found
Replies: 2
Views: 2998

Migration to v5.0 problem - inbuilt components not found

I'm migrating a working project from esp.idf 4.4.3 to 5.0. My problem is that although `idf.py reconfigure` correctly lists the inbuilt components, the include paths for these are not added to the compile line. So I get errors where include files belonging to the components are not found, e.g. fatal...
by clydeps
Wed Nov 16, 2022 4:24 am
Forum: ESP-IDF
Topic: Distorted start of sound from I2S output
Replies: 2
Views: 1980

Re: Distorted start of sound from I2S output

As you know, the i2s dma buffers are linked as a ring, and it'll keep looping once it start. I did not know that for sure since the documentation is silent on that aspect, though I determined that was the case by experimentation (if the buffers are not kept full it outputs noise). But in any case I...
by clydeps
Mon Nov 14, 2022 3:30 am
Forum: ESP-IDF
Topic: Distorted start of sound from I2S output
Replies: 2
Views: 1980

Distorted start of sound from I2S output

I have a small program driving a MAX98357A I2S amplifier from I2S0 on an ESP32S3. The problem is that when I switch from one sound (silence) to another (1000Hz sine wave) the first few cycles of the sine wave are distorted: scope_4.png If I continue to write the same data the signal is fine, but aft...