Search found 5 matches

by ThorstenS
Sun Apr 28, 2019 6:26 am
Forum: Report Bugs
Topic: pingResult callback is called one too many
Replies: 2
Views: 9899

Re: pingResult callback is called one too many

By reading the source code of esp_ping.c, I noticed that for the last call of the callback, ping_err is set to PING_RES_FINISH. So the behaviour is intentional. Problem solved.
by ThorstenS
Sat Apr 27, 2019 11:02 am
Forum: Report Bugs
Topic: pingResult callback is called one too many
Replies: 2
Views: 9899

pingResult callback is called one too many

I am using esp_ping_set_target() and ping_init(), and found that the callback pingResult() is called 5 times, when I set PING_TARGET_IP_ADDRESS_COUNT to 4. Is this a bug?
by ThorstenS
Fri Nov 10, 2017 2:27 pm
Forum: Report Bugs
Topic: C++ exceptions do not work inside threads
Replies: 2
Views: 11775

C++ exceptions do not work inside threads

Hi, I use ESP-IDF v3.01 (I guess, last commit is from Oct 19th). I enabled C++ exceptions and they work in the main program code. But when creating a thread using xTaskCreate() and with a try-catch block in the thread function, when a C++ exception is thrown, it does not reach the catch block. Inste...
by ThorstenS
Mon Sep 18, 2017 7:33 pm
Forum: Report Bugs
Topic: esptool and OTA conflict
Replies: 8
Views: 15215

Re: esptool and OTA conflict

Thanks for the info. erase_region will help. I used erase_flash once before, but deleting everything is not what I want.
by ThorstenS
Sun Sep 17, 2017 12:00 pm
Forum: Report Bugs
Topic: esptool and OTA conflict
Replies: 8
Views: 15215

esptool and OTA conflict

I am developing code, so the ESP32 checks a remote webserver for updated firmware. If a newer version is available, it downloads and flashes it via OTA. After the first update to partition OTA 1, when I use "make flash" the esptool writes to partition OTA 0. But OTA 1 is still the active boot partit...