Search found 123 matches

by RichPiano
Thu Aug 03, 2023 6:10 pm
Forum: Sample Code
Topic: Coremark result for ESP32
Replies: 1
Views: 37967

Re: Coremark result for ESP32

Can you do one for ESP32 C6?
by RichPiano
Tue Jul 04, 2023 2:45 pm
Forum: ESP-IDF
Topic: espressif/idf:release-v5.1 docker fails for CI pipeline because dependencies.lock has wrong hashsum
Replies: 0
Views: 1376

espressif/idf:release-v5.1 docker fails for CI pipeline because dependencies.lock has wrong hashsum

I have this peculiar problem with my gitlab build pipeline using the espressif/idf:release-v5.1 docker image. When building my project I always get the following errors: CMake Error at /opt/esp/idf/tools/cmake/build.cmake:540 (message): ERROR: The hash sum of the component "espressif/esp_websocket_c...
by RichPiano
Tue Jun 06, 2023 5:38 am
Forum: ESP-IDF
Topic: Arguments for automatic build
Replies: 8
Views: 12439

Re: Arguments for automatic build

Just an addition. You can do it quite easily now: cmake -S . -B build01 -G Ninja -DSDKCONFIG_DEFAULTS=sdkconfig.defaults.v01 cmake --build build01 cmake -S . -B build02 -G Ninja -DSDKCONFIG_DEFAULTS=sdkconfig.defaults.v02 cmake --build build02 Just make sure to delete sdkconfig file before every gen...
by RichPiano
Mon Jun 05, 2023 4:13 pm
Forum: ESP-IDF
Topic: Logging from allocation trace hooks fails (LoadProhibited @_vfprintf_r)
Replies: 4
Views: 3121

Re: Logging from allocation trace hooks fails (LoadProhibited @_vfprintf_r)

Thanks I managed to trace back the memory leak to a bug in my application. I created some wrappers around the trace library in the process which was very helpful.
by RichPiano
Wed May 31, 2023 1:25 pm
Forum: ESP-IDF
Topic: Logging from allocation trace hooks fails (LoadProhibited @_vfprintf_r)
Replies: 4
Views: 3121

Re: Logging from allocation trace hooks fails (LoadProhibited @_vfprintf_r)

I don't care that's not production code and performance is secondary in debugging ;) The problem is that I already tried the heap tracing functionality, but unfortunately only allocations and not frees are being logged, so that is not of much help. My solution now would be to reimplement the heap_tr...
by RichPiano
Wed May 31, 2023 5:42 am
Forum: ESP-IDF
Topic: Logging from allocation trace hooks fails (LoadProhibited @_vfprintf_r)
Replies: 4
Views: 3121

Logging from allocation trace hooks fails (LoadProhibited @_vfprintf_r)

We're currently fixing a notorious memory leak and wanted to try out the memory allocation hooks #include "esp_heap_caps.h" void esp_heap_trace_alloc_hook(void* ptr, size_t size, uint32_t caps) { printf("heap alloc of %zu bytes @%p", size, ptr); } void esp_heap_trace_free_hook(void* ptr) { printf("h...
by RichPiano
Wed May 31, 2023 5:38 am
Forum: ESP-IDF
Topic: Configurability of esp-matter examples (how get configured GPIO for button?)
Replies: 3
Views: 3678

Re: Configurability of esp-matter examples (how get configured GPIO for button?)

Thank you, we're still in the midst of figuring out the matter mess, so that's certainly still helpful!
by RichPiano
Thu Apr 06, 2023 2:30 pm
Forum: ESP-IDF
Topic: Configurability of esp-matter examples (how get configured GPIO for button?)
Replies: 3
Views: 3678

Re: Configurability of esp-matter examples (how get configured GPIO for button?)

I figured out through trial and error that the LED glows on GPIO5. I still don't know where to configure it except changing the code.
by RichPiano
Mon Apr 03, 2023 1:16 pm
Forum: ESP-IDF
Topic: Configurability of esp-matter examples (how get configured GPIO for button?)
Replies: 3
Views: 3678

Configurability of esp-matter examples (how get configured GPIO for button?)

I'm just trying out the button example for esp-matter. I wanted to check which PIN was connected but unfortunately I couldn't figure it out from the source code. The below mentioned app_driver_switch_init() function which supposedly inits the button will pull in the configuration via a call to butto...
by RichPiano
Thu Feb 23, 2023 5:28 pm
Forum: ESP-IDF
Topic: Status of digital to analog converter (DAC) in IDF > 5.0
Replies: 1
Views: 1852

Status of digital to analog converter (DAC) in IDF > 5.0

I wanted to write a test-app for the DAC converter in the esp32, however the examples in the doc are not available on the esp-idf 5.0 branch and it seems that there is no "driver/dac_oneshot.h"... Is the component being discontinued or excluded for the moment? EDIT: Legacy dac.h is available for esp...