Search found 575 matches

by boarchuz
Tue Jun 06, 2023 8:48 am
Forum: ESP32 Arduino
Topic: Changing partition size via OTA
Replies: 8
Views: 9934

Re: Changing partition size via OTA

if I could access additional memory via an OTA software update, that would be really useful What exactly do you want to do with it? That determines how difficult it is to do so safely. Particularly, if the bootloader needs to be aware of the change (eg. you want to move/add/resize app partitions) t...
by boarchuz
Tue May 30, 2023 5:10 am
Forum: ESP32 Arduino
Topic: soc version needed for analog read linearisation
Replies: 3
Views: 1503

Re: soc version needed for analog read linearisation

Code: Select all

#include "sdkconfig.h"
It's almost certainly already indirectly defined as many other headers will be including sdkconfig.h.
by boarchuz
Sun May 28, 2023 9:11 am
Forum: ESP32 Arduino
Topic: xTaskCreatePinnedToCore not starting.h
Replies: 1
Views: 1065

Re: xTaskCreatePinnedToCore not starting.h

Code: Select all

if (!bme.begin())
{
    Serial.println();
    while (1);
        
    // Unreachable:
    xTaskCreatePinnedToCore();
}
by boarchuz
Thu May 18, 2023 10:17 pm
Forum: General Discussion
Topic: Mixing WiFi.begin() and esp_wifi_scan_start - help needed
Replies: 5
Views: 2538

Re: Mixing WiFi.begin() and esp_wifi_scan_start - help needed

Maybe .end()? Maybe not. I was only guessing sorry.
by boarchuz
Thu May 18, 2023 8:39 pm
Forum: General Discussion
Topic: Mixing WiFi.begin() and esp_wifi_scan_start - help needed
Replies: 5
Views: 2538

Re: Mixing WiFi.begin() and esp_wifi_scan_start - help needed

mzincali wrote:
Thu May 18, 2023 8:33 pm
I'm not sure why scan results would be cleared by a handler
Not explicitly, but esp_wifi_scan_get_ap_records frees the records internally, ie. it can only be used once per SCAN_DONE.
by boarchuz
Thu May 18, 2023 8:16 pm
Forum: ESP-IDF
Topic: IP_EVENT_AP_STAIPASSIGNED is never called in AP-Mode
Replies: 1
Views: 775

Re: IP_EVENT_AP_STAIPASSIGNED is never called in AP-Mode

You have registered a handler for WIFI_EVENTs, but not for IP_EVENTs.
by boarchuz
Thu May 18, 2023 8:02 pm
Forum: General Discussion
Topic: Mixing WiFi.begin() and esp_wifi_scan_start - help needed
Replies: 5
Views: 2538

Re: Mixing WiFi.begin() and esp_wifi_scan_start - help needed

It looks like the Arduino WiFi event handlers are still registered in the latter case, so the scan results are fetched (and cleared) in the SCAN_DONE event before you have a chance to grab them. Maybe WiFi.stop() will do the trick for this problem, but you can probably expect more issues to appear w...
by boarchuz
Mon May 15, 2023 12:05 pm
Forum: ESP-IDF
Topic: Having major problems with my own handlers for my libraries
Replies: 3
Views: 1183

Re: Having major problems with my own handlers for my libraries

Possibly due to sensor_internal_i2c being a stack variable. Do you delete app_main's task, or does sensor_internal_i2c go out of scope?
by boarchuz
Tue Apr 25, 2023 1:56 am
Forum: ESP32 Arduino
Topic: Core 0 is Slower
Replies: 7
Views: 3780

Re: Core 0 is Slower

Change loop to

Code: Select all

void loop() {
    vTaskDelete(NULL);
}
by boarchuz
Sat Apr 15, 2023 9:42 am
Forum: ESP32 Arduino
Topic: Core 0 is Slower
Replies: 7
Views: 3780

Re: Core 0 is Slower

The main task (the one that calls setup and loop) is pinned to core 0 in Arduino. Your loop is while(1); so this will occupy quite a lot of core 0's time. Delete or suspend the task instead. There are FreeRTOS utilities to help debug issues like this: https://www.freertos.org/a00021.html#vTaskGetRun...