Search found 454 matches

by mzimmers
Thu Feb 20, 2020 1:48 am
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

Hi Angus - I'll look into reducing the stack spaces I'm allocating to each of the tasks I start, as well as the configuration parameters you mention above. I'm curious though -- the error message says that the stack overflow is occurring in task "wifi" which is not the same as my task "Wifi." I'd as...
by mzimmers
Wed Feb 19, 2020 9:09 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

So, here's where I am now: by changing the internal/external threshold from 16K to 4K, my app no longer crashes due to insufficient memory. I fear that I've just postponed the problem, however, as I'm under 4K of MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL, and I still have another task to add, which will...
by mzimmers
Wed Feb 19, 2020 8:35 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

Also, starting with 152KB seems wrong. You should be able to start at 200KB (ish) with Wifi. Did you forget to put const in front of some initialisation data? A lot of Linux/PC code will fail to do that. At the top of app_main, before I do much of anything, I have about 167KB of internal RAM. When ...
by mzimmers
Wed Feb 19, 2020 5:54 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

Hi Angus - we may be getting somewhere on this. When I begin starting tasks, I have ~152KB of MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL RAM. Each task I start consumes about 8K (seems reasonable to me). As I have several tasks, the number is reduced to about 64K. Then, my Wifi initialization runs. The b...
by mzimmers
Wed Feb 19, 2020 2:29 am
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

Hi Angus - I'll try those memory reports you suggested in the morning. I'm not sure I understand - are you saying that there would be expected to be *more* memory available than what I'm showing in the reports? It looks like I have plenty of the 8-bit (which from what I understand is what malloc() u...
by mzimmers
Tue Feb 18, 2020 11:14 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

UPDATE: this problem is just bizarre. I've gotten my app to start up and run until I get a failure: E (13124) HTTP_CLIENT: Allocation failed I then hit the reset button on my board, and now I'm back to getting the wifi stack overflow earlier in the boot sequence. What could be causing erratic behavi...
by mzimmers
Tue Feb 18, 2020 5:03 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

Re: "unexpected spi flash error code:101"

Hi Angus - I made some changes in my Wifi task, and have advanced the startup procedure a bit. I'm now getting this error: E (4475) phy_init: failed to allocate memory for RF calibration data This happens immediately after a call to esp_wifi_start(). Here's the boot log for the SPI RAM/heap: I (1772...
by mzimmers
Mon Feb 17, 2020 11:12 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 19
Views: 2439

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: 2439

"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: 839

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...

Go to advanced search