Search found 63 matches

by jsam589
Sun Jun 07, 2020 1:36 am
Forum: ESP32 IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 605

Re: Does use of newlib nano format reduce stack usage?

Additional: I installed v4.1-beta2 IDF and tried to use nano and still getting same result. It will build but when azure starts running, it has the same tls error at the same point in code.
by jsam589
Sat Jun 06, 2020 10:15 pm
Forum: ESP32 IDF
Topic: Logging format in wifi component uses problematic non-standard technique
Replies: 0
Views: 160

Logging format in wifi component uses problematic non-standard technique

I am sorry for reporting this so late in 4.1 development, but I just found two bothersome differences between 4.0 release and 4.1 beta2. (1) Many of the log messages coming from "wifi" component are broken into pieces, a technique not used anywhere else in the IDF as far as I can tell. (2) These Inf...
by jsam589
Thu Jun 04, 2020 1:49 am
Forum: ESP32 IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 605

Re: Does use of newlib nano format reduce stack usage?

Well, since you have asked... I am seeing a consistent error with mbed-tls for esp-azure connection to cloud. My code has been working well before I tried compiling with newlib nano. IDF is v4.0 release. I do not have in any of my code %lld or %llx in any printf-type functions. A trick I learned on ...
by jsam589
Mon Jun 01, 2020 2:23 am
Forum: ESP32 IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 605

Re: Does use of newlib nano format reduce stack usage?

LOL - I posted the question first, knowing it usually takes a while to get an answer. The engineers especially usually are very helpful, but sometimes takes a day or two to hear back. So, in parallel, I then did the test, which also required me to eliminate several %lld and %llx printf's in my code....
by jsam589
Sun May 31, 2020 5:17 pm
Forum: ESP32 IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 605

Does use of newlib nano format reduce stack usage?

I am looking for ways to reduce the amount of stack needed for tasks. It seems that even a simple task that does logging needs 3 KByte minimum of stack. I can get by without printing 64-bit integers. However, I must have logging. Will changing my config to use newlib nano format reduce the stack use...
by jsam589
Wed May 27, 2020 5:23 am
Forum: ESP32 IDF
Topic: Task not launching even with plenty of free internal RAM
Replies: 4
Views: 299

Re: Task not launching even with plenty of free internal RAM

ESP_Angus, when I add the 8 BIT option as you suggest, it reports just 648 bytes available, so that makes sense.
Thanks for that very useful tip!
by jsam589
Tue May 26, 2020 12:45 pm
Forum: ESP32 IDF
Topic: Task not launching even with plenty of free internal RAM
Replies: 4
Views: 299

Re: Task not launching even with plenty of free internal RAM

Memory fragmentation could explain my issue, but I thought that the call to

heap_caps_get_largest_free_block(MALLOC_CAP_INTERNAL);

tells me the largest contiguous block that can be obtained (9808) and this should be more than adequate.
by jsam589
Mon May 25, 2020 11:50 pm
Forum: ESP32 IDF
Topic: Task not launching even with plenty of free internal RAM
Replies: 4
Views: 299

Task not launching even with plenty of free internal RAM

I am running low on internal RAM for task stack usage, but I have around 10000 bytes available and want to launch a task with a stack of only 3072 bytes. However, the task creation fails and returns -1 (memory). Any idea why this would happen? These are the results on which I base my numbers. At the...
by jsam589
Sun May 17, 2020 11:35 pm
Forum: ESP32 IDF
Topic: Is compression during flash programming just for the transfer?
Replies: 1
Views: 135

Is compression during flash programming just for the transfer?

When programming my device, I have a 2 MB partition allocated. Is the programming message below saying that 1495920 bytes of flash were consumed? And the data was compressed to 908774 only for transfer? Or is it stored compressed? This matters because I want to properly size my partition and leave r...
by jsam589
Mon May 11, 2020 7:50 pm
Forum: ESP32 IDF
Topic: How can I increase wifi task stack size?
Replies: 0
Views: 167

How can I increase wifi task stack size?

Task "wifi" is overflowing its stack sometimes and when I just checked the high water mark, it was 48 bytes (i.e. very close to stack overflow!). I am using v4.0 stable IDF. I don't see a CONFIG parameter to increase the stack for wifi. Although many other system tasks have adjustable sizes. Am I mi...

Go to advanced search