Search found 20 matches

by ploegmma
Fri Sep 13, 2024 7:14 pm
Forum: ESP32 Arduino
Topic: ESP32 S2 USB monitor console output
Replies: 4
Views: 713

Re: ESP32 S2 USB monitor console output

Okay, thank you for looking into it. I choose the S2 mini 2 because I just needed PCNT and USB support. I'll see if I can do without the console and if not I will open an issue.
by ploegmma
Fri Sep 13, 2024 6:20 pm
Forum: ESP32 Arduino
Topic: ESP32 S2 USB monitor console output
Replies: 4
Views: 713

Re: ESP32 S2 USB monitor console output

I was aware of this delay and it's not so much about the boot messages per se. It's more about printf, ESP_ERROR_CHECK, ESP_LOGI, etc. So everything that would go to the console/stdout. I found this issue: https://github.com/espressif/arduino-esp32/issues/8080 But that didn't work. I do have USB CDC...
by ploegmma
Fri Sep 13, 2024 10:10 am
Forum: ESP32 Arduino
Topic: ESP32 S2 USB monitor console output
Replies: 4
Views: 713

ESP32 S2 USB monitor console output

I'm using the S2-mini-2 connected via USB. In Arduino IDE 2.3.2 I set USB CDC On Boot to enabled. Serial.print works fine this way but I do not get any console messages (boot messages). I assume the ROM is still trying to use the UART. How can I tell it to use the CDC port?

Thnx
by ploegmma
Sun Nov 07, 2021 3:38 pm
Forum: General Discussion
Topic: ESP32S2 ADC-DMA DAC-DMA documentation/example code
Replies: 0
Views: 1629

ESP32S2 ADC-DMA DAC-DMA documentation/example code

Will there ever be any documentation on how to handle ADC continuous (DMA) read mode for the S2? I know that I could get some hints from the driver test code in esp-idf at components/driver/test/adc_dma_test. And I even found some guess work from someone. But how about some documentation? Same for t...
by ploegmma
Sat May 22, 2021 7:30 pm
Forum: ESP-IDF
Topic: I would like to use USB host on ESP32-S2 in ESP-IDF
Replies: 52
Views: 45836

Re: I would like to use USB host on ESP32-S2 in ESP-IDF

and then in callback just repeat STALLed command. Another thing i would try is to add small delay before sending STALLed commands (1-5 ms). I did exactly that and upped the delay up to 50 ms but no change: void usbh_ctrl_pipe_stalled_cb(usb_ctrl_req_t* ctrl) { ESP_LOG_BUFFER_HEX_LEVEL("STALLED, ret...
by ploegmma
Sat May 22, 2021 11:21 am
Forum: ESP-IDF
Topic: I would like to use USB host on ESP32-S2 in ESP-IDF
Replies: 52
Views: 45836

Re: I would like to use USB host on ESP32-S2 in ESP-IDF

Much appreciated. I will dig into it (will take some time) and report what I find.
by ploegmma
Sat May 22, 2021 9:49 am
Forum: ESP-IDF
Topic: I would like to use USB host on ESP32-S2 in ESP-IDF
Replies: 52
Views: 45836

Re: I would like to use USB host on ESP32-S2 in ESP-IDF

1. You can try to re-send the same request when it STALL 2. can you use "usbview" on linux to see USB device configuration, i am wondering how it looks like 1. I was thinking about using a flag to signal when the device init is done and when encountering a stall while not done repeat by calling xfe...
by ploegmma
Fri May 21, 2021 8:08 pm
Forum: ESP-IDF
Topic: I would like to use USB host on ESP32-S2 in ESP-IDF
Replies: 52
Views: 45836

Re: I would like to use USB host on ESP32-S2 in ESP-IDF

godzilla2 wrote:
Fri May 21, 2021 7:51 pm
You can also try my library, which is a bit friendlier to use IMO:

https://github.com/chipweinberger/xesp-usbh
I will have a look thank you
by ploegmma
Fri May 21, 2021 7:58 pm
Forum: ESP-IDF
Topic: I would like to use USB host on ESP32-S2 in ESP-IDF
Replies: 52
Views: 45836

Re: I would like to use USB host on ESP32-S2 in ESP-IDF

I think i dont understand, what is the difference between good and bad configuration (from hardware point of view)? My final goal is to talk to a network switch that has a USB CDC port. When I connect this switch to a PC I get a cdc_acm port. When I try to use the USB host code with an ESP32S2 (Sao...
by ploegmma
Fri May 21, 2021 6:09 pm
Forum: ESP-IDF
Topic: I would like to use USB host on ESP32-S2 in ESP-IDF
Replies: 52
Views: 45836

Re: I would like to use USB host on ESP32-S2 in ESP-IDF

The Logic Analyzer worked. This is what I see: Connected to another ESP32S2 module, the host code works as expected: SETUP ADDR 0 EP 0 DATA0 [ 80 06 00 01 00 00 12 00 ] ACK IN ADDR 0 EP 0 NAK ... more attempts with NAK IN ADDR 0 EP 0 DATA1 [ 12 01 00 02 EF 02 01 40 3A 30 01 40 00 01 01 02 03 01 ] AC...