Search found 6 matches

by xryl669
Sun Aug 11, 2024 11:29 am
Forum: ESP-IDF
Topic: ESP32-C6 LP CORE
Replies: 5
Views: 45120

Re: ESP32-C6 LP CORE

I can't answer all your question since I'm still learning. But I can answer the last one: there isn't any heap on the LP cpu, so the memory usage can't change for the whole duration of the program. You could, theoretically access any byte on the available 16kB address space, but the way the toolchai...
by xryl669
Sat Sep 10, 2022 7:05 am
Forum: ESP-IDF
Topic: I2C times out when queueing multiple transaction
Replies: 2
Views: 1758

Re: I2C times out when queueing multiple transaction

Sorry, I missed your answer. You're right, the &dataBuffer[i * 3] should read &dataBuffer[index * 3] . index will never be 2, so it's safe. In fact I've made many progress on diagnosing the issue, see here . In short, the I2C HW crashes when queueing more than 2 transactions. Either we need to stop ...
by xryl669
Sat Sep 10, 2022 6:51 am
Forum: ESP-IDF
Topic: Error: fatal error: mbedtls/config.h: No such file or directory
Replies: 7
Views: 9725

Re: Error: fatal error: mbedtls/config.h: No such file or directory

In fact, esp_config.h includes mbedtls_config.h that doesn't exist either, so it doesn't solve the issue.
by xryl669
Fri Aug 26, 2022 4:20 pm
Forum: ESP-IDF
Topic: I2C times out when queueing multiple transaction
Replies: 2
Views: 1758

I2C times out when queueing multiple transaction

Hi, I'm trying to create a single object that's storing the transactions to happen on I2C bus by queueing all the operations and expecting the CPU to run them all correctly. Typically, I'm doing this (pseudo code): #define FilterError(x) ((x) == ESP_OK) uint8 buffer[I2C_LINK_RECOMMENDED_SIZE(4)]; //...
by xryl669
Tue Nov 06, 2018 9:03 pm
Forum: ESP-IDF
Topic: Reduce external interrupt latency
Replies: 15
Views: 29750

Re: Reduce external interrupt latency

It's likely too late, but you have 3 options, depending on what are your latency expectations: If more than 10µs is acceptable and you still want to use a FreeRTOS task, use xTaskNotifyFromISR() in place of a queue, it's much faster. BTW, don't call portYieldFromISR unconditionally. You need to use ...
by xryl669
Tue Oct 09, 2018 4:37 pm
Forum: ESP-IDF
Topic: esp http client is too large
Replies: 0
Views: 2984

esp http client is too large

Currently, the default HTTP client in the component library is a monster. Instantiating it adds ~160kB of binary size when compiled with -Os (and this is likely multiplied 3x if using factory + 2 OTA partitions). Looking at the code, it seems that it's using nghttp underneath and such library is a m...