Search found 85 matches

by RobMeades
Tue Nov 24, 2020 9:34 am
Forum: ESP-IDF
Topic: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()
Replies: 9
Views: 7918

Re: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()

Thanks very much for trying it, I appreciate your efforts in looking into what is quite an esoteric problem here, not many company support organisations are so quick and helpful :-). We call uart_driver_install(2, 1024, 0, 20, &queueA, 0) and then uart_driver_install(1, 1024, 0, 20, &queueB, 0) , fo...
by RobMeades
Fri Nov 20, 2020 9:28 am
Forum: ESP-IDF
Topic: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()
Replies: 9
Views: 7918

Re: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()

Understood, there is an additional overhead for each contiguous block. On the UART thing, yes, each install/uninstall of the driver does leave 12 bytes unrecovered each time. The loss is always in get_desc_for_int() / esp_intr_alloc_intrstatus() at intr_alloc.c :230/ intr_alloc.c :599: you'll see it...
by RobMeades
Fri Nov 20, 2020 12:59 am
Forum: ESP-IDF
Topic: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()
Replies: 9
Views: 7918

Re: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()

Thanks for the very comprehensive answer, much appreciated. To be clear, I don't mind the lazy block allocation, it presents a reasonable solution in many cases. The problem is that I need to know its impact in my tests so that I can determine whether a heap loss is a result of such an action by the...
by RobMeades
Thu Nov 19, 2020 6:04 pm
Forum: ESP-IDF
Topic: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()
Replies: 9
Views: 7918

Re: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()

Agreed, but surely Visual Studio still has to use the same "how much heap do I have left now" functionality of the target code, which is the thing that isn't working here?
by RobMeades
Wed Nov 18, 2020 6:10 pm
Forum: ESP-IDF
Topic: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()
Replies: 9
Views: 7918

Re: Unable to trace a memory leak

FYI, I have another fail case which does not involve the UART or creating/deleting any tasks and which also shows a mysterious additional 4 byte loss that I cannot understand [this happens to be the last test I run in a sequence, so not the first outing for stdio from this task]: xPortGetFreeHeapSiz...
by RobMeades
Wed Nov 18, 2020 2:42 pm
Forum: ESP-IDF
Topic: Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()
Replies: 9
Views: 7918

Problem with xPortGetFreeHeapSize()/heap_caps_get_free_size()

EDIT: I think the issue here is simply that heap_caps_get_free_size(MALLOC_CAP_8BIT) reports the wrong number some of the time. Here's a really simple example to illustrate the problem: #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "esp_heap_trace.h" #include "esp_heap_caps.h"...
by RobMeades
Mon Oct 12, 2020 9:44 am
Forum: ESP-IDF
Topic: Trying to limit the number of components being built and failing!
Replies: 5
Views: 5326

Re: Trying to limit the number of components being built and failing!

Actually, it now fails to link, it is no longer able to find the stuff in the main sub-directory. I've added main explicitly to EXTRA_COMPONENT_DIRS ; what else might I be doing wrong? Revised build metadata and the build output are attached. C:/esp32/esp-idf-latest/components/esp32/cpu_start.c:552:...
by RobMeades
Mon Oct 12, 2020 8:28 am
Forum: ESP-IDF
Topic: Trying to limit the number of components being built and failing!
Replies: 5
Views: 5326

Re: Trying to limit the number of components being built and failing!

Hi, and thanks for the very swift response. In your case this looks like runner/CMakeLists.txt is the project, so try setting it there. Interesting. I thought I was doing that since runner/CMakeLists.txt has the line: set(COMPONENTS "") ...which I believed should empty the list. However I've just tr...
by RobMeades
Sun Oct 11, 2020 11:48 am
Forum: ESP-IDF
Topic: Trying to limit the number of components being built and failing!
Replies: 5
Views: 5326

Trying to limit the number of components being built and failing!

The build time (on Windows) for my code when using ESP-IDF (CMake version) is about 5 times longer than any other chipset/platform (NRF52 GCC and SES, NRF53 Zephyr and STM32F4); whatever I do I can't seem to get it down. This is on a CI machine so it is always doing clean builds for all of my chipse...
by RobMeades
Thu Aug 27, 2020 8:15 pm
Forum: ESP-IDF
Topic: esptool.py under Python 3
Replies: 0
Views: 1414

esptool.py under Python 3

I use esptool.py (v2.8) in an automated regression tests rig with three ESP32 boards attached. I have been using this under Python 2.7.15 for many months, downloading and running regression tests many times per day without a single problem. I have now moved the automation to Python 3.8.5 and about 1...