Search found 637 matches

by lbernstone
Wed Dec 13, 2023 3:06 am
Forum: ESP32 Arduino
Topic: PlatformIO/Arduino/ESP-IDF: 'Serial' was not declared in this scope
Replies: 3
Views: 59010

Re: PlatformIO/Arduino/ESP-IDF: 'Serial' was not declared in this scope

arduino-esp32 is built on top of esp-idf. This means all the APIs that aren't specifically excluded (due to memory or other constraints) are included in arduino. You simply need to include the appropriate header file, generally in the same location you would reference it in an IDF program. The inclu...
by lbernstone
Tue Dec 12, 2023 4:38 pm
Forum: ESP32 Arduino
Topic: Revert framework
Replies: 1
Views: 24146

Re: Revert framework

In Arduino IDE Boards Manager, find esp32. There will be an option to select which version you want to install.
by lbernstone
Fri Dec 08, 2023 10:54 pm
Forum: ESP32 Arduino
Topic: ESP32 - Guru Meditation Error: Core 1 panic'ed (LoadProhibited)
Replies: 12
Views: 125770

Re: ESP32 - Guru Meditation Error: Core 1 panic'ed (LoadProhibited)

Does esp_now work if you don't enable all these other devices? That sort of strlen error could definitely come from a function that doesn't do proper checking to make sure memory was allocated. I would take a look at your stack and heap usage just before you init esp_now to see if something is exhau...
by lbernstone
Fri Dec 08, 2023 5:44 pm
Forum: ESP32 Arduino
Topic: Arduino-ESP32 documantation & Timer API
Replies: 4
Views: 56505

Re: Arduino-ESP32 documantation & Timer API

If the code you have posted is actually what you are trying to do, and you having something that takes 2000ms running every 500ms, then your problem is very likely race conditions. You can use a timer (or Ticker if you don't need an interrupt) to start the process, but you shouldn't be using the cri...
by lbernstone
Wed Dec 06, 2023 9:47 pm
Forum: ESP32 Arduino
Topic: Support required to Flash in ESP32-S2-mini via controller
Replies: 14
Views: 136788

Re: Support required to Flash in ESP32-S2-mini via controller

flash_binary writes a partition to the flash, just like esptool write_flash would do. Here is the example , and how to use it in code . load_ram_binary loads a file directly into the target's memory. You could use this on a device without flash, or to start a more complicated bootloader process. Her...
by lbernstone
Wed Dec 06, 2023 4:24 pm
Forum: ESP32 Arduino
Topic: Data as a resource in flash, esp32-s3
Replies: 3
Views: 34039

Re: Data as a resource in flash, esp32-s3

It's a win-win. You also get the advantage of DMA transfers if you are moving the data to a device that can accept that.
by lbernstone
Wed Dec 06, 2023 8:37 am
Forum: ESP32 Arduino
Topic: Data as a resource in flash, esp32-s3
Replies: 3
Views: 34039

Re: Data as a resource in flash, esp32-s3

Absolutely. If you include an array as a const in esp32, it will be memory mapped so that it is read directly from ROM inline in your code. You can use `xxd -i` to convert a binary file into a C-style and then include it in a header. You can script this to include a whole directory or structure (eg....
by lbernstone
Wed Dec 06, 2023 4:36 am
Forum: ESP32 Arduino
Topic: Troublshooting ESP32-S3 WiFi AP
Replies: 1
Views: 16913

Re: Troublshooting ESP32-S3 WiFi AP

Is the module mounted on a corner with the right side of the antenna exposed, and nothing underneath it? A quick read through the design guide is a good idea before making a custom board.
Are you able to connect out as a STA to an AP? What sort of RSSI do you get if you run a scan?
by lbernstone
Sun Dec 03, 2023 4:55 am
Forum: ESP32 Arduino
Topic: sound sensor not working properly with esp32
Replies: 6
Views: 37409

Re: sound sensor not working properly with esp32

ADC2 is not available if you are using WiFi. ADC1 is on pins >32 on an esp32.