Search found 11 matches

by Hamzah Hajeir
Mon May 13, 2024 10:34 am
Forum: ESP-IDF
Topic: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4
Replies: 7
Views: 1717

Re: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4

Hi all

It seems to be the custom_free_function developed by Espressif's lately (The commit I've mentioned in a reply).

See: https://github.com/espressif/esp-idf/is ... 2104864696
by Hamzah Hajeir
Thu Apr 25, 2024 11:18 am
Forum: ESP-IDF
Topic: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4
Replies: 7
Views: 1717

Re: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4

pbuf_free: deallocating 0x3fcba7cc pbuf_free: custom_free_function 0x3fcba82c This looks interesting... custom_free_function seems to plausibly be a pointer to another data structure here. May be coincidence though. Another thing to check could be: When updating a library you must make sure that al...
by Hamzah Hajeir
Thu Apr 25, 2024 11:13 am
Forum: ESP-IDF
Topic: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4
Replies: 7
Views: 1717

Re: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4

ESP-IDF should give you a backtrace for that crash; if you run 'idf.py monitor' as your terminal it should automatically be decoded into something readable. What does that say? Also, the PC in the crash is '%u _' in ascii, so whatever function pointer you're overwriting, it seems to be overwritten ...
by Hamzah Hajeir
Wed Apr 24, 2024 10:19 am
Forum: ESP-IDF
Topic: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4
Replies: 7
Views: 1717

Re: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4

InstrFetchProhibited may be due to an invalid/corrupt function pointer being called. Reason for that could be any kind of memory/stack corruption happening. Especially after upgrading IDF and toolchain, it may be worth trying to increase tasks' stack sizes and to enable stack overflow checking if n...
by Hamzah Hajeir
Tue Apr 23, 2024 6:17 pm
Forum: ESP-IDF
Topic: InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4
Replies: 7
Views: 1717

InstrFetchProhibited with in IDFv5 upgrade from IDFv4.4

Hi there, I've an issue that existed since I updated to ESP-IDF v5.0 (7+ months), which is a strange exception after calling a specific function from mbedtls. Brief: I'm the maintainer of H4 stack libraries, that includes a timer scheduler (H4), TCP wrapper to LwIP Raw APIs (H4AsyncTCP), MQTT client...
by Hamzah Hajeir
Mon Jan 22, 2024 6:34 pm
Forum: ESP-IDF
Topic: Mbedtls v2 on IDF v5.1
Replies: 0
Views: 882

Mbedtls v2 on IDF v5.1

Hi there, I'm facing a very strange bug that causes InstrFetchProhibited or IllegalInstruction exceptions on ESP32's on a code that runs: - GCC 12.2.0 - ESP-IDF v5.1 - Mbedtls v3.4 - Esp-Lwip v2.1.3 - Arduino Core v3 (Custom build) Wherein the bug comes when the application tries to call `pbuf_free(...
by Hamzah Hajeir
Wed Aug 02, 2023 1:01 pm
Forum: ESP-IDF
Topic: C++ default standard compilation
Replies: 4
Views: 1856

Re: C++ default standard compilation

ESP_igrr wrote:
Hamzah Hajeir wrote: Note I'm using v2.11, which is based on ESP-IDF v4.4.5.
Seems correct, all releases <=v4.x have used -std=gnu++11. So to summarize,

- IDF v4.4.x and lower — C++11
- IDF v5.0.x — C++20
- IDF v5.1.x — C++23
- (future) IDF v5.2.x — C++23 (expected)
Thank you, this makes full of sense.
by Hamzah Hajeir
Wed Aug 02, 2023 11:40 am
Forum: ESP-IDF
Topic: C++ default standard compilation
Replies: 4
Views: 1856

Re: C++ default standard compilation

ESP-IDF uses C++20 (with GCC 11.2) in v5.0.x and C++23 (with GCC 12.1) in v5.1. The next minor release, v5.2 is expected to use C++23 with GCC 13.1. Given that your question is related to Arduino-esp32, I think the relevant milestone is v3.0.0 release , which is going to use IDF v5.1.x and therefor...
by Hamzah Hajeir
Mon Jul 31, 2023 12:10 pm
Forum: ESP-IDF
Topic: C++ default standard compilation
Replies: 4
Views: 1856

C++ default standard compilation

Hi there, I maintain a full stack of Arduino libraries called (H4) that include H4AsyncTCP, H4AsyncMQTT, H4AsyncHTTP, H4AsyncWebserver, and H4Plugins. I'm interested to know when will be an upgrade to the default compile C++ standard, as the current is (C++11), so to feel free using features of newe...
by Hamzah Hajeir
Tue Dec 27, 2022 6:55 pm
Forum: General Discussion
Topic: ESP32 stops working
Replies: 9
Views: 10085

Re: ESP32 stops working

Hi there,
I've submitted a post earlier indicating in was a strapping GPIO pin (4,5) may cause the issue, but it wasn't true.

The main cause in my setup was the supply power, i was powering it from the PC USB, it worked well with the lab's DC Power supply.