Search found 74 matches

by jsam589
Fri Jul 03, 2020 6:46 pm
Forum: ESP-IDF
Topic: esp-azure update has different provisioning return codes
Replies: 0
Views: 1635

esp-azure update has different provisioning return codes

I pulled the new updates for the esp-azure port, which now incorporates LTS_06_2020. Upon provisioning, I am seeing different message codes. Is this expected? Communication seems to work but it seems strange to change the terminology. Older version from Feb 7, 2020 usually has these codes: 2020-07-0...
by jsam589
Sun Jun 07, 2020 1:36 am
Forum: ESP-IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 6417

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: ESP-IDF
Topic: Logging format in wifi component uses problematic non-standard technique
Replies: 2
Views: 3264

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: ESP-IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 6417

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: ESP-IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 6417

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: ESP-IDF
Topic: Does use of newlib nano format reduce stack usage?
Replies: 6
Views: 6417

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: ESP-IDF
Topic: Task not launching even with plenty of free internal RAM
Replies: 4
Views: 4831

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: ESP-IDF
Topic: Task not launching even with plenty of free internal RAM
Replies: 4
Views: 4831

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: ESP-IDF
Topic: Task not launching even with plenty of free internal RAM
Replies: 4
Views: 4831

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: ESP-IDF
Topic: Is compression during flash programming just for the transfer?
Replies: 1
Views: 2029

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