Search found 89 matches

by cmorgan
Tue Feb 20, 2018 10:15 pm
Forum: Hardware
Topic: Need help to download firmware into ESP32
Replies: 25
Views: 53118

Re: Need help to download firmware into ESP32

Answering my own problem, I found that the difference between the USB->UARTs was how they handled a block of characters sent in sequence (so probably something related to buffering in them). My advice to others would be to loop back TX to RX and then compare what esptool was was trying to send, to ...
by cmorgan
Sun Feb 18, 2018 10:12 pm
Forum: ESP-IDF
Topic: Ping from ESP32
Replies: 17
Views: 35935

Re: Ping from ESP32

Hi @perryc. I'm using this code here and was running into cases where the pinging was taking forever to timeout or complete. The delay and timeout values are in seconds, see esp_ping_set_target(): case PING_TARGET_RCV_TIMEO: ESP_PING_CHECK_OPTLEN(opt_len, uint32_t); ping_option_info->ping_rcv_timeou...
by cmorgan
Wed Feb 07, 2018 5:17 pm
Forum: General Discussion
Topic: Heap corruption diagnostics causing heap corruption?.
Replies: 34
Views: 45119

Re: Heap corruption diagnostics causing heap corruption?.

Note that cJSON printing reallocates memory as it appends values to the string. If the issue was somewhere else in the system cJSON’s print does a ton of calls that result in heap checking. Not saying it isn’t an issue in cJSON but they run their unit tests under valgrind I think so I’m surprised we...
by cmorgan
Tue Feb 06, 2018 3:17 am
Forum: General Discussion
Topic: Heap corruption diagnostics causing heap corruption?.
Replies: 34
Views: 45119

Re: Heap corruption diagnostics causing heap corruption?.

Hi Esp_Angus. Btw, how does one mention a username to let them see a post? Or is that not possible? I’ll try tomorrow with the updated cJSON. It is the same threading approach, the cJSON calls are from the web server thread. In the Linux version I’m lacking the console thread, some temperature retri...
by cmorgan
Tue Feb 06, 2018 3:04 am
Forum: General Discussion
Topic: Heap corruption diagnostics causing heap corruption?.
Replies: 34
Views: 45119

Re: Heap corruption diagnostics causing heap corruption?.

ESP_Angus, are you still looking for a test build that results in the problem? Would you need source as well? If so I can look to do a build that disables required hardware and try to reproduce.
by cmorgan
Tue Feb 06, 2018 2:58 am
Forum: General Discussion
Topic: Heap corruption diagnostics causing heap corruption?.
Replies: 34
Views: 45119

Re: Heap corruption diagnostics causing heap corruption?.

Thank you again ESP_Angus for helping out here and in my thread. I didn't see the forum notification email for some reason and just spotted your response over on my thread a few minutes ago. Maybe with two of us now we'll figure out if this is a cJSON issue or something else entirely. Since my last ...
by cmorgan
Tue Jan 30, 2018 2:37 am
Forum: General Discussion
Topic: Possible to override sdkconfig settings via command line?
Replies: 3
Views: 5079

Possible to override sdkconfig settings via command line?

I'm looking to perform a number of automated builds with different configurations. I tried something like: make CONFIG_MY_OPTION=1 but this doesn't appear to be overriding the CONFIG_MY_OPTION=2 that is in sdkconfig. Possible to override variables like this? Other ideas for how to best automate a fe...
by cmorgan
Thu Jan 25, 2018 11:35 pm
Forum: ESP-IDF
Topic: Patterns for heap corruption resolution ...
Replies: 13
Views: 19685

Re: Patterns for heap corruption resolution ...

Ok. I'll keep at it here. I agree that it is likely in some code on my side. If you run across something latent and remember this thread please let me know. I'll post when I know more.
by cmorgan
Wed Jan 24, 2018 11:10 pm
Forum: ESP-IDF
Topic: Patterns for heap corruption resolution ...
Replies: 13
Views: 19685

Re: Patterns for heap corruption resolution ...

Hi @ESP_Angus, any ideas? This is blocking hardware from being released into the field, I can't release it without knowing that this won't occur during normal use.
by cmorgan
Tue Jan 23, 2018 2:58 am
Forum: ESP-IDF
Topic: Patterns for heap corruption resolution ...
Replies: 13
Views: 19685

Re: Patterns for heap corruption resolution ...

I like the idea that this could be stack size related. I've considered that but I could have missed something. I'm tracking stack usage through a console 'stack' command that retrieves the information from freertos and prints it out. The stack where the cJSON code is executed(esphttpd task) has appr...