Search found 601 matches

by boarchuz
Fri Mar 10, 2023 9:04 am
Forum: ESP32 Arduino
Topic: TaskHandle_t, and passing object causing crash when using object
Replies: 2
Views: 1309

Re: TaskHandle_t, and passing object causing crash when using object

1000 bytes is a very low stack size. Try 4096.

Side note: The comment on priority is wrong (0 is lowest)
by boarchuz
Tue Mar 07, 2023 9:46 am
Forum: ESP-IDF
Topic: Stopping ULP & ULP Lockup
Replies: 10
Views: 11860

Re: Stopping ULP & ULP Lockup

You're missing a bunch of the #includes from my above comment.
And you will need to add component dependencies to your 'my_boot_hooks' component's CMakeLists.txt:

Code: Select all

idf_component_register(
    SRCS "hooks.c"
    REQUIRES soc hal esp_hw_support
)
by boarchuz
Tue Mar 07, 2023 1:43 am
Forum: ESP-IDF
Topic: Stopping ULP & ULP Lockup
Replies: 10
Views: 11860

Re: Stopping ULP & ULP Lockup

Could you please share the code or instructions on how to do this? I'm not proficient in tinkering with the bootloader It will probably be easiest to use the bootloader hooks feature. Take a look at examples/custom_bootloader/bootloader_hooks. Bootloader RTC reset example: #include "soc/rtc.h" #inc...
by boarchuz
Fri Mar 03, 2023 2:11 am
Forum: General Discussion
Topic: skipping over first 128 bytes of RTC RAM
Replies: 6
Views: 2866

Re: skipping over first 128 bytes of RTC RAM

Incidentally, there is a Kconfig option to reserve memory at the start of RTC slow memory - it's designed for the ULP, but there's no reason why you can't use it for anything else. If your target supports it, you can enable the ULP and then the option to set the size of this reserved area will appea...
by boarchuz
Thu Feb 23, 2023 10:19 am
Forum: Hardware
Topic: EN pin, prevent floating, RC delay, reset button & power switch?
Replies: 2
Views: 1514

Re: EN pin, prevent floating, RC delay, reset button & power switch?

It's unclear from the schematic but your slide switch almost certainly has 3 pins, allowing you to define the level for both positions. Connect one to GND for "Off", and the other to 3V3 through a 10k resistor for "On". You can do away with R7 then, and arguably the reset button too.
by boarchuz
Fri Feb 17, 2023 1:55 pm
Forum: General Discussion
Topic: the hunt for esp32-s3 deep sleep current leakage
Replies: 4
Views: 6232

Re: the hunt for esp32-s3 deep sleep current leakage

Yes, you should be able to achieve the specified deep sleep current. An external RTC crystal will increase this, however. I've never used one so I don't know by how much exactly. There's a good chance this is the culprit, at least partially. Yes, ESP-IDF will power down everything possible automatic...
by boarchuz
Fri Feb 17, 2023 4:33 am
Forum: General Discussion
Topic: the hunt for esp32-s3 deep sleep current leakage
Replies: 4
Views: 6232

Re: the hunt for esp32-s3 deep sleep current leakage

What ammeter are you using? Where exactly are you measuring this current? What power supply are you using? What regulator are you using? What other external peripherals are connected? Can you share a schematic? Do you have external bias resistors on the MOSFET gates? Have you confirmed Vgs is as exp...
by boarchuz
Thu Feb 16, 2023 7:54 am
Forum: ESP-IDF
Topic: need help for establish the http stream link
Replies: 2
Views: 2309

Re: need help for establish the http stream link

You are sending both the content length header and a chunked encoding header. This is not a valid HTTP request. esp_http_client will take care of this for you based on the length you provide to esp_http_client_open (see https://github.com/espressif/esp-idf/blob/8ba96ab87389dd5400b7670a14356ea8620223...
by boarchuz
Thu Feb 16, 2023 7:30 am
Forum: General Discussion
Topic: Can not connect to Wifi from Saved data from Flash Memory
Replies: 1
Views: 1449

Re: Can not connect to Wifi from Saved data from Flash Memory

You are writing the file using println, which in Arduino-land will usually append \r\n (https://reference.arduino.cc/reference/ ... l/println/).
When you read it back with readStringUntil('\n'), the resulting string will then include the '\r'.
by boarchuz
Sun Feb 05, 2023 3:32 am
Forum: ESP-IDF
Topic: ESP32 web server initiating HTTP requests to external Rest API?
Replies: 2
Views: 1973

Re: ESP32 web server initiating HTTP requests to external Rest API?

1&2. Yes, an ESP32 can have a HTTP server to respond to requests from clients, as well as a HTTP client to send requests to servers. They may speak the same language but these are separate functions with different roles. 3. No, but this isn't a concern. Your typical router firewall will block all in...