Search found 606 matches

by boarchuz
Mon Nov 18, 2024 2:37 am
Forum: Hardware
Topic: RMT Sync Manager Workarounds/Alternatives
Replies: 3
Views: 559

Re: RMT Synch Manager Workarounds/Alternatives

Are you using the high level RMT driver? I would try commenting out this line: https://github.com/espressif/esp-idf/blob/7a305c0284b7af7cd8b8f12b48f72e2685d9a363/components/esp_driver_rmt/src/rmt_tx.c#L767 So that each channel is setup and ready to transmit, just waiting on that START bit, and then ...
by boarchuz
Mon Nov 11, 2024 2:43 am
Forum: ESP-IDF
Topic: esp32 http POST question
Replies: 7
Views: 1220

Re: esp32 http POST question

I think Sprite nailed it with the request body not matching the expected key=value format. There's also the JSON content type header which, at best, your server will ignore but may be messing things up too. From a quick search you should be able to get the raw request body with file_get_contents('ph...
by boarchuz
Fri Oct 18, 2024 4:19 pm
Forum: ESP-IDF
Topic: gpio_config() call set PIN low immediately with PULLUP enabled
Replies: 3
Views: 992

Re: gpio_config() call set PIN low immediately with PULLUP enabled

You have set mode to GPIO_MODE_OUTPUT which will enable output. The level is determined by whatever is in the GPIO's output level register at that point in time. I assume this is 0 by default for all of them.

Use gpio_set_level *before* gpio_config to prepare the desired output level.
by boarchuz
Tue Oct 15, 2024 11:41 am
Forum: ESP-IDF
Topic: How can I use a PEM that expires in 12 months in an embedded product?
Replies: 9
Views: 1485

Re: How can I use a PEM that expires in 12 months in an embedded product?

And even if the certificate does expire, the ESP32 won't know or care because, in most configurations, it doesn't have a reliable source for the current time (eg. NTP, GPS).

Even then, you would need to enable the relevant option in mbedTLS if you actually want this behaviour.
by boarchuz
Tue Oct 15, 2024 4:25 am
Forum: ESP-IDF
Topic: how to see what is waking up esp32-c6 project in light sleep
Replies: 3
Views: 777

Re: how to see what is waking up esp32-c6 project in light sleep

I recall lwIP's TCP slow timer having an annoying wakeup pattern like this, even when all networking is idle.

I think I may have also seen a very recent ESP-IDF commit to address this
by boarchuz
Mon Sep 23, 2024 4:02 am
Forum: ESP32 Arduino
Topic: RTCWDT_RTC_RESET on light sleep
Replies: 4
Views: 2106

Re: RTCWDT_RTC_RESET on light sleep

Can you increase the sleep time (eg. 5s) to determine if it's having issues while asleep or upon wakeup? Can you share more of your code, especially immediately after esp_light_sleep_start? Can you add some tracing on the very next line after esp_light_sleep_start? Ideally simple like toggling a GPI...
by boarchuz
Fri Sep 20, 2024 7:25 am
Forum: ESP32 Arduino
Topic: WiFi task on core 0 halts task on core 1
Replies: 9
Views: 3326

Re: WiFi task on core 0 halts task on core 1

You aren't sending a content length header, so I suspect what's happening is that the client is keeping the socket open and the while loop is being entered immediately again until it times out and reaches the client.stop. One of the big downsides with Arduino is that there's so much abstraction it's...
by boarchuz
Thu Sep 19, 2024 3:09 am
Forum: ESP32 Arduino
Topic: WiFi task on core 0 halts task on core 1
Replies: 9
Views: 3326

Re: WiFi task on core 0 halts task on core 1

Put a vTaskDelete(NULL); as the last line in your setup(). It won't completely solve your problem but the loopTask on core 1 busily doing nothing in loop() isn't helping your situation.
by boarchuz
Sun Sep 15, 2024 1:43 pm
Forum: General Discussion
Topic: Magic byte ERROR
Replies: 2
Views: 1232

Re: Magic byte ERROR

When I read the first 4 bytes from app2 partition, I see 0xE9 0x05 0x02 0x22. How are you doing this? esptool.py? I trust the bootloader when it says there's actually 00 05 02 02 there. Have you erased that region of flash beforehand? Not doing this is likely to be your problem based on those seque...
by boarchuz
Wed Sep 04, 2024 7:08 am
Forum: General Discussion
Topic: Current draw when transmitting ESPNOW
Replies: 4
Views: 2557

Re: Current draw when transmitting ESPNOW

Probably related (WiFi driver retrying many times): https://github.com/espressif/esp-idf/issues/9383

And that indicates that no changes are planned so you might consider exclusively using broadcasts instead, with your own acknowledgement implementation on top of that if necessary.