Search found 457 matches

by mzimmers
Mon Feb 17, 2020 11:12 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2491

Re: "unexpected spi flash error code:101"

As another data point, when I disable the task that throws the above error, I now get this one:

Code: Select all

W (8832) wifi: alloc eb len=36 type=3 fail, heap:4167652

W (8832) wifi: mem fail
I'm almost positive it is some configuration goof I'm making...
by mzimmers
Mon Feb 17, 2020 8:50 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2491

"unexpected spi flash error code:101"

Hi all - Using master branch of IDF, WROVER. I'm getting this error message: E (4422) spi_flash: unexpected spi flash error code: 101 abort() was called at PC 0x4008613c on core 1 ELF file SHA256: etc. when I make this call: err = nvs_flash_init_partition(NVS_PARTITION_SYSLOG); error 101 is: #define...
by mzimmers
Fri Feb 14, 2020 2:42 pm
Forum: ESP32 IDF
Topic: possible bug/issue with V4.1 wifi?
Replies: 4
Views: 852

Re: possible bug/issue with V4.1 wifi?

Here you go, though I don't know how much it will help: $ addr2line -e build/wifibutton.elf 0x4008bd6c C:/esp-idf/components/esp32/panic.c:125 0x4008b97d C:/esp-idf/components/esp32/panic.c:157 0x4008bd55 C:/esp-idf/components/esp32/panic.c:174 0x4008bd6c C:/esp-idf/components/esp32/panic.c:125 0x40...
by mzimmers
Thu Feb 13, 2020 11:32 pm
Forum: ESP32 IDF
Topic: possible bug/issue with V4.1 wifi?
Replies: 4
Views: 852

Re: possible bug/issue with V4.1 wifi?

Hi, Angus - Initialization is as follows: static wifi_config_t wifiConfig = { .sta = { .ssid = {0}, // set in initTask(). .password = {0}, // set in initTask(). .scan_method = WIFI_FAST_SCAN, .bssid_set = 0, .bssid = {0}, .channel = 0, .listen_interval = 0, .sort_method = WIFI_CONNECT_AP_BY_SIGNAL, ...
by mzimmers
Thu Feb 13, 2020 10:31 pm
Forum: ESP32 IDF
Topic: possible bug/issue with V4.1 wifi?
Replies: 4
Views: 852

possible bug/issue with V4.1 wifi?

Hi all - I've been struggling to get Wifi working in V4.1, using the ESP_NETIF library. I have it working now -- my initialization routine is a composite of the docs, the example in the IDF and the example on github (because none of them seemed 100% correct.) Here's a distillation of my init routine...
by mzimmers
Tue Feb 11, 2020 4:26 pm
Forum: ESP32 IDF
Topic: migrating to v4.1 event handlers
Replies: 6
Views: 699

Re: migrating to v4.1 event handlers

BTT: anyone have a suggestion here? I'd really like to get this functional. By the way, I think this document https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/wifi.html is out of date: s1.2: The main task calls esp_event_loop_init() to create a system Event task and initialize an app...
by mzimmers
Wed Feb 05, 2020 3:18 pm
Forum: ESP32 IDF
Topic: migrating to v4.1 event handlers
Replies: 6
Views: 699

Re: migrating to v4.1 event handlers

Hi Igrr -- Confirmed that I'm not calling esp_event_loop_init(). When I select verbose output, I can't build: C:/esp-idf/components/log/include/esp_log.h:281:13: error: 'len' may be used uninitialized in this function [-Werror=maybe-uninitialized] ets_printf(LOG_FORMAT(log_tag_letter, format), esp_l...
by mzimmers
Tue Feb 04, 2020 11:07 pm
Forum: ESP32 IDF
Topic: migrating to v4.1 event handlers
Replies: 6
Views: 699

Re: migrating to v4.1 event handlers

I've changed my handler to match my understanding of the v4.1 Wifi/IP events. Here's a snippet: static void event_handler(void *ctx, esp_event_base_t event_base, int32_t event_id, void *event_data) { std::string currentTime; Tasks *tasks = reinterpret_cast<Tasks *> (ctx); time_t now; union { wifi_ev...
by mzimmers
Tue Feb 04, 2020 9:25 pm
Forum: ESP32 IDF
Topic: migrating to v4.1 event handlers
Replies: 6
Views: 699

Re: migrating to v4.1 event handlers

Ahh...thanks, Igrr. On a related subject, my app isn't progressing out of the Wifi connected state. I'm still using the old SYSTEM_EVENT_STA_* symbols, and it looks like the Wifi state machine might have changed in v4.1. The example you provided doesn't really cover this; is there a doc that explain...
by mzimmers
Tue Feb 04, 2020 7:16 pm
Forum: ESP32 IDF
Topic: migrating to v4.1 event handlers
Replies: 6
Views: 699

migrating to v4.1 event handlers

Hi all - I'm assessing the work required to move from v4.0 to v4.1. One area of concern is event handlers. In v4.0, I registered my handler: esp_err_t event_handler(void *ctx, system_event_t *event) { Tasks *tasks = reinterpret_cast<Tasks *> (event); // disconnect reason code stuff. char ssid[32]; u...

Go to advanced search