Search found 5 matches

by xryl669
Sat Sep 10, 2022 7:05 am
Forum: ESP-IDF
Topic: I2C times out when queueing multiple transaction
Replies: 2
Views: 1241

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: 6493

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: 1241

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: 26719

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: 2661

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...