Search found 89 matches

by p-rimes
Mon Oct 01, 2018 6:43 am
Forum: ESP-IDF
Topic: Min Heap Threshold Callback? "OOM Killer"?
Replies: 4
Views: 5722

Re: Min Heap Threshold Callback? "OOM Killer"?

trigger a task to delete itself (which, through C++ RAII will free/release all the allocated resources Keep in mind that FreeRTOS vTaskDelete does no unwind stack frames, and does not cause destructors of local variables to be called. You may, however, throw a C++ exception from the place where the...
by p-rimes
Mon Oct 01, 2018 5:49 am
Forum: ESP-IDF
Topic: Min Heap Threshold Callback? "OOM Killer"?
Replies: 4
Views: 5722

Re: Min Heap Threshold Callback? "OOM Killer"?

No, there's no built-in feature. Suggest adding a timer callback with a regular free memory check and whatever response makes sense in that particular firmware. One difficulty for an "OOM Killer" type approach, compared to Linux, is that ESP32 has no memory protection. Killing a task only frees tha...
by p-rimes
Sun Sep 30, 2018 11:33 pm
Forum: ESP-IDF
Topic: Min Heap Threshold Callback? "OOM Killer"?
Replies: 4
Views: 5722

Min Heap Threshold Callback? "OOM Killer"?

Hi there, Wondering whether there is some feature in esp-idf to execute a (user-provided) callback when a low memory condition is reached? Such that -- for example -- we can have application code that runs when heap reaches 10KB remaining, and in that case select a task and delete it (or make some a...
by p-rimes
Mon Sep 24, 2018 6:59 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80641

Re: Preview release: CMake-based build system for ESP-IDF

Is there a reason for `esp-idf` to use `-std=` directly, instead of the `CMAKE_CXX_STANDARD` variable? The reason is: I didn't realise that CMAKE_<lang>_STANDARD existed until just now. :) I think there's no reason we can't change the CMake-based build system to use this variable instead. However, ...
by p-rimes
Sat Sep 22, 2018 5:05 pm
Forum: ESP-IDF
Topic: CMake: How to add source-file dependency on generated files?
Replies: 4
Views: 8717

CMake: How to add source-file dependency on generated files?

Here is one example of something that was easy to do with the Make-based approach, but not sure how to do it in CMake, and the esp-idf documentation doesn't say how to do it, now: Have some esp-idf component (e.g. graphics) Within this graphics component, some generated file (e.g. logo.h) Also withi...
by p-rimes
Sat Sep 22, 2018 4:27 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80641

Re: Preview release: CMake-based build system for ESP-IDF

How can we override the C++ std setting (e.g. to use `-std=c++14`) Do this in a component CMakeLists.txt file with component_compile_options , ie component_compile_options(-std=c++14) This means the compiler command line will have two -std= options, but the component-specific ones will come after t...
by p-rimes
Tue Sep 18, 2018 4:27 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80641

Re: Preview release: CMake-based build system for ESP-IDF

Cool CMake-related commit here! https://github.com/espressif/esp-idf/commit/3246404740265bec332c4ac02f9ca791ce116d2d For CMake-only, we no longer need to specify serial flasher device path/baud rate (previously was set in `menuconfig` -> `Serial flasher config`), a serial device will be auto-detecte...
by p-rimes
Mon Sep 17, 2018 4:37 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80641

Re: Preview release: CMake-based build system for ESP-IDF

I really wish there were some CMake functions provided by esp-idf, that could automate certain programming steps. I've looked at the `flasher_args.json` stuff and... it's not really CMake friendly. In my case I have a FATfs image which is generated, and should be flashed to a specific offset. Right ...
by p-rimes
Mon Sep 17, 2018 4:03 am
Forum: ESP-IDF
Topic: ESP32 on Pure IPV6 Network (no IPV4)
Replies: 1
Views: 5942

ESP32 on Pure IPV6 Network (no IPV4)

I'd like to make sure that I can still use an ESP32 on a network that is IPv6-only. I can't seem to get any IPV6 packets received by the ESP32, although it seems to be getting on the IPv6 network correctly, and sending valid IPv6 DNS queries (AAAA records) which are processed by my local DNS test se...
by p-rimes
Wed Sep 12, 2018 7:15 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 80641

Re: Preview release: CMake-based build system for ESP-IDF

Doesn't seem to be the case for me. I have to run build 4 or 5 times to get all the files generated. As well, I am generating header files back into the component directory... Yes, I see. I think CMake makes some internal distinction between "generated" and "not generated" files, so I can see this ...