Search found 194 matches

by zliudr
Mon Sep 21, 2020 3:03 am
Forum: ESP32 IDF
Topic: WiFi memory issue?
Replies: 0
Views: 62

WiFi memory issue?

Hi, I'm trying to find out why wifi stopped working. This is what I printed out right before WiFi reported memory error: I (4152946) POST_SKU: SPIRAM max free size :3566652 I (4152946) POST_SKU: SPIRAM max free block :3489460 I (4152956) POST_SKU: Internal max free size :76576 I (4152956) POST_SKU: ...
by zliudr
Sat Sep 05, 2020 4:10 pm
Forum: ESP32 IDF
Topic: Redirect or duplicate console output to sd card file
Replies: 0
Views: 90

Redirect or duplicate console output to sd card file

Is there any way to do this? I'm trying to save the console logs for remote debugging purposes. Thanks.
by zliudr
Thu Sep 03, 2020 6:20 am
Forum: ESP32 IDF
Topic: ESP_AZURE question. Should I free payload in deviceMethodCallback?
Replies: 0
Views: 73

ESP_AZURE question. Should I free payload in deviceMethodCallback?

Here is the function:
static int deviceMethodCallback(const char* method_name, const unsigned char* payload, size_t size, unsigned char** response, size_t* response_size, void* userContextCallback)

I wonder if I should free(payload). No explanation was provided by ESP_AZURE.
by zliudr
Tue Sep 01, 2020 5:37 am
Forum: ESP32 IDF
Topic: Making an https file downloder function
Replies: 1
Views: 106

Making an https file downloder function

I'm trying to make a reliable https file downloader. I have written one based on esp_http_client_perform. The event handler has routine in the HTTP_EVENT_ON_HEADER to detect content-length and HTTP_EVENT_ON_DATA to buffer file in memory. This works as long as the file size is less than the memory bu...
by zliudr
Sun Aug 30, 2020 7:06 am
Forum: ESP32 IDF
Topic: WiFi failure, What reason?
Replies: 0
Views: 101

WiFi failure, What reason?

WiFiThese are the errors: I think my heap ran out of memory, correct? W (5816586) wifi: alloc eb len=24 type=3 fail, heap:3592852 W (5816586) wifi: m f null Some more message: I (6118976) wifi: state: run -> init (3c0) I (6118986) wifi: pm stop, total sleep time: 3549831996 us / 6115828375 us I (611...
by zliudr
Thu Aug 27, 2020 3:48 am
Forum: ESP32 IDF
Topic: How do I investigate the stack of a task to make sure there's enough space?
Replies: 3
Views: 140

Re: How do I investigate the stack of a task to make sure there's enough space?

Susan,

Thank you! So do you mean that RTOS keeps track of stack usage and I just have to call a function to return the max stack depth? Sounds very convenient! I'm used to programming microcontrollers without any type of operating system support. Maybe I should start chipping away at the RTOS doc.
by zliudr
Thu Aug 27, 2020 3:42 am
Forum: ESP32 IDF
Topic: How do I investigate the stack of a task to make sure there's enough space?
Replies: 3
Views: 140

How do I investigate the stack of a task to make sure there's enough space?

I have a number of tasks each with an assigned stack, basically an arbitrary size, such as 8K, 16K etc. I would like to have a way to find out how their stacks are being used when they are making deep calls especially calls to library functions that I didn't write and don't know how they consume the...
by zliudr
Thu Aug 27, 2020 3:25 am
Forum: ESP32 IDF
Topic: Any general advice on how to set up mbedtls config in menuconfig?
Replies: 1
Views: 84

Any general advice on how to set up mbedtls config in menuconfig?

I'm faced with dozens of settings there. I rather read about how instead of muddling around. The reason that brought me to these settings was I had issues with establishing https connections. It was gradually building up issues until entirely stopped connecting. I traced it to be "memory problem". A...
by zliudr
Thu Aug 27, 2020 3:18 am
Forum: ESP32 IDF
Topic: How do you enable -j option for ESP-IDF V4.x with cmake?
Replies: 3
Views: 167

Re: How do you enable -j option for ESP-IDF V4.x with cmake?

OK thanks. Then what about the cmake? I did a test running cmake without -j, with -j, and with -j0. About the same time, ~11 seconds. I guess my suspicion is rooted from ESP-IDF V3.3 with the msys32 and make. With make, you HAVE to specify -j to use all cores. It makes a huge difference once I knew ...
by zliudr
Wed Aug 26, 2020 3:23 am
Forum: ESP32 IDF
Topic: How do you enable -j option for ESP-IDF V4.x with cmake?
Replies: 3
Views: 167

How do you enable -j option for ESP-IDF V4.x with cmake?

I'm used to V3.3 and make. I can add -j option to make command to use all cores with maximal amount of jobs. With the V4.1 how do I do that with cmake? Just adding -j isn't recognized. I hope cmake isn't running on a single core. I timed hello_world to take about 1 minute 27 seconds to compile from ...

Go to advanced search