Search found 503 matches

by mzimmers
Tue Sep 22, 2020 2:20 am
Forum: ESP-IDF
Topic: (resolved) I appear to be out of heap
Replies: 5
Views: 118

Re: I appear to be out of heap

OK, I resolved the problem. I moved those structures into my class definition. It works fine now. Fortunately, I only need one instance of this class (I guess I could declare them static). Not sure why this is -- do objects get stored in a different segment than global structs? Remember these are al...
by mzimmers
Tue Sep 22, 2020 1:37 am
Forum: ESP-IDF
Topic: (resolved) I appear to be out of heap
Replies: 5
Views: 118

Re: I appear to be out of heap

Hi all - I made some seemingly minor changes to an app, and now it won't boot. I get these messages: I (1664) heap_init: Initializing. RAM available for dynamic allocation: I (1664) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (1669) heap_init: At 3FFCBDD0 len 00014230 (80 KiB): DRAM I (1675)...
by mzimmers
Mon Sep 21, 2020 10:41 pm
Forum: ESP-IDF
Topic: (resolved) I appear to be out of heap
Replies: 5
Views: 118

Re: I appear to be out of heap

Hi Peter - You make lots of good suggestions. I can't change my logging, so I'll have to look at the other options. I did introduce a vector of std::strings and a std::map<std::string, std::string>. These may have caused the problem, though I seem to be crashing very early in the startup. Is there a...
by mzimmers
Mon Sep 21, 2020 9:31 pm
Forum: ESP-IDF
Topic: (resolved) I appear to be out of heap
Replies: 5
Views: 118

(resolved) I appear to be out of heap

Hi all - I made some seemingly minor changes to an app, and now it won't boot. I get these messages: I (1664) heap_init: Initializing. RAM available for dynamic allocation: I (1664) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (1669) heap_init: At 3FFCBDD0 len 00014230 (80 KiB): DRAM I (1675)...
by mzimmers
Tue Sep 15, 2020 5:18 pm
Forum: ESP-IDF
Topic: (answered) nvs_get_stats/nvs_get_used_entry_count returning incorrect count?
Replies: 2
Views: 137

Re: nvs_get_stats/nvs_get_used_entry_count returning incorrect count?

Hi Sprite - thanks for the explanation. As a possible future addition, it would be nice to get a count of all *current* entries. In my case, it would be useful for cleaning up any corruption to my log entries.
by mzimmers
Mon Sep 14, 2020 8:14 pm
Forum: ESP-IDF
Topic: (answered) nvs_get_stats/nvs_get_used_entry_count returning incorrect count?
Replies: 2
Views: 137

(answered) nvs_get_stats/nvs_get_used_entry_count returning incorrect count?

Hi all - I'm seeing some results from this code that I don't understand: const char NVS_PARTITION_SYSLOG[] = "nvs_syslog"; nvs_stats_t nvs_stats; nvs_get_stats(NVS_PARTITION_SYSLOG, &nvs_stats); printf("%s syslogTask: %s UsedEntries = (%d), FreeEntries = (%d), AllEntries = (%d) NamespaceCount = (%d)...
by mzimmers
Mon Sep 14, 2020 8:05 pm
Forum: ESP-IDF
Topic: Help with setting-up IDF environment
Replies: 1
Views: 69

Re: Help with setting-up IDF environment

It looks like you created a Windows environment variable to point to the IDF, and that variable contains a colon character. Follow the instructions in the error message to fix that.
by mzimmers
Sat Sep 12, 2020 4:50 pm
Forum: ESP-IDF
Topic: can't get SNTP working per the example
Replies: 1
Views: 110

Re: can't get SNTP working per the example

BTT: anyone have any ideas? This is embarrassingly simple, but I'm somehow doing it wrong. Here's the code in an easier to read format: A utility routine: bool Wifi::clockIsInitialized(tm time) { bool rc; if (time.tm_year < (2016 - 1900)) { rc = false; } else { rc = true; } return rc; } My init rout...
by mzimmers
Fri Sep 11, 2020 5:54 pm
Forum: ESP-IDF
Topic: can't get SNTP working per the example
Replies: 1
Views: 110

can't get SNTP working per the example

Hi all - I've copied code from the SNTP example (which runs fine on my board), but for whatever reason, I can't get it to work in my program. Here's the relevant code: void sntpCallback(struct timeval *tv) { time_t now; tm timeinfo; char timeStr[64]; ESP_LOGI(TAG, "sntpCallback(): tv->tv_sec is %ld....
by mzimmers
Thu Sep 10, 2020 1:54 pm
Forum: General Discussion
Topic: ESP32 shutdown without external circuits?
Replies: 7
Views: 3766

Re: ESP32 shutdown without external circuits?

Hi Sprite - The answer to that is a little complicated. Our product is designed so that line power goes through the battery charging system. If the battery voltage goes too low, then re-application of line power won't reset the ESP32. We're concerned about cases of extreme loss of line power resulti...

Go to advanced search