Search found 789 matches

by lbernstone
Mon Sep 16, 2024 3:00 am
Forum: ESP32 Arduino
Topic: Arrays in preferences file
Replies: 1
Views: 243

Re: Arrays in preferences file

If it is a fixed structure (ie, the elements of the main array are all identical), you can cast a byte blob into an array of the right size. If it is variable length strings, or an indeterminate complex structure, you can add them as sequenced elements, and keep the total count (or a list of handles...
by lbernstone
Fri Sep 13, 2024 7:01 pm
Forum: ESP32 Arduino
Topic: ESP32 S2 USB monitor console output
Replies: 4
Views: 624

Re: ESP32 S2 USB monitor console output

I'd go ahead and (re)open an issue at https://github.com/espressif/arduino-esp32/issues about this.
Note that ets_printf works. The S2 was kind of a practice device for USB, so some of the stuff simply doesn't work quite the same way as it does on newer variants.
by lbernstone
Fri Sep 13, 2024 4:08 pm
Forum: ESP32 Arduino
Topic: ESP32 S2 USB monitor console output
Replies: 4
Views: 624

Re: ESP32 S2 USB monitor console output

USB-CDC is a negotiated protocol. This means it takes about 50-100ms to enable the channel after the esp32 powers up. If you have a usb-cdc enabled firmware installed, it knows not to reinit the port during restarts, so you can see the boot logging. However, if the device is in a boot loop b/c there...
by lbernstone
Wed Sep 11, 2024 6:54 pm
Forum: ESP32 Arduino
Topic: Question about ESP32_C3 Speed
Replies: 4
Views: 580

Re: Question about ESP32_C3 Speed

To get fast, accurate signals, you will need to use a peripheral
Ask a vague question, get a vague answer.
by lbernstone
Wed Sep 11, 2024 7:54 am
Forum: ESP32 Arduino
Topic: Override or inhibit initVariant() at start up
Replies: 2
Views: 278

Re: Override or inhibit initVariant() at start up

The typical way you would control the power flow would be have a transistor (or mosfet eg 2N7002) gated from a gpio pin, which then allows power to run from the main power bus. Trying to run >40mA power through a gpio is going to generate a lot of heat in the cpu, and is simply beyond the specs of t...
by lbernstone
Tue Sep 10, 2024 5:34 pm
Forum: ESP32 Arduino
Topic: Question about ESP32_C3 Speed
Replies: 4
Views: 580

Re: Question about ESP32_C3 Speed

Your code is asking the CPU to bit bang each flip of the switch. This means it has to process all the hardware abstraction code, poke the register, and then wait for confirmation that it succeeded before moving to the next process. There's also an OS running that needs some cycles to process. The es...
by lbernstone
Mon Sep 09, 2024 3:46 pm
Forum: ESP32 Arduino
Topic: ESP32 OTA from Github - Not connecting to raw.githubusercontent.com
Replies: 3
Views: 629

Re: ESP32 OTA from Github - Not connecting to raw.githubusercontent.com

Turn core debugging to verbose for much more information about the http transaction.
If you post the code you are using, and the response, we will be much more able to help.
by lbernstone
Mon Sep 09, 2024 3:39 pm
Forum: ESP32 Arduino
Topic: How do you create/ write/ read efuses with ESP32 Arduino? Are there any docs?
Replies: 4
Views: 3286

Re: How do you create/ write/ read efuses with ESP32 Arduino? Are there any docs?

There's no tools to do this in arduino-esp32, because that's not what Arduino is about. arduino-esp32 is an abstraction layer built on top of esp-idf to provide the cross-platform functionality that is Arduino. ESP-IDF is still there under arduino-esp32, and you are welcome to use its functions. If ...
by lbernstone
Mon Sep 09, 2024 4:55 am
Forum: ESP32 Arduino
Topic: ESP32 C3 SUPERMINI NOISY I2S
Replies: 5
Views: 634

Re: ESP32 C3 SUPERMINI NOISY I2S

I don't have code for you; as mentioned I am not an audio expert. But, you should get best performance if you allocate 4096 (the typical flash sector size) to the dma buffer, and then use the interrupt generated from a full buffer to process the data. I think in arduino, you will have to feed the da...