Search found 8 matches

by av_jui
Mon Sep 15, 2025 5:49 pm
Forum: ESP-IDF
Topic: [SLOVED] RMT copy encoder bug with ping-pong mode
Replies: 5
Views: 740

Re: [BUG] RMT copy encoder bug with ping-pong mode

Today I had a bit of time. So I took another closer look at the copyencoder code and I think I found the error. The error occurs when mem_have == mem_want
I have now changed the code as follow:

- bool encoding_truncated = mem_have < mem_want;
+ bool encoding_truncated = mem_have <= mem_want ...
by av_jui
Mon Sep 15, 2025 6:18 am
Forum: ESP-IDF
Topic: [SLOVED] RMT copy encoder bug with ping-pong mode
Replies: 5
Views: 740

Re: [BUG] RMT copy encoder bug with ping-pong mode


Why is it so complicated?
For UART it is enough to send symbol by symbol, and it is enough to reserve only 1 memory block, while leaving the rest of the blocks for reception. as an example:

rmt_copy_encoder_config_t tx_encoder_config = {};
ESP_ERROR_CHECK(rmt_new_copy_encoder(&tx_encoder ...
by av_jui
Sun Sep 14, 2025 5:39 pm
Forum: ESP-IDF
Topic: [SLOVED] RMT copy encoder bug with ping-pong mode
Replies: 5
Views: 740

[SLOVED] RMT copy encoder bug with ping-pong mode

Hi

I’m currently working on an RMT serial component and got stuck on implementing ping-pong in the transmission part.
On the 4th RMT_ENCODING_MEM_FULL call, I always get a duplicate character (nn, tt, dd, rr, ll). After a lot of testing, I suspect this might be a bug in the copy encoder, but before ...
by av_jui
Thu Jan 09, 2025 10:45 am
Forum: ESP-IDF
Topic: Possible to add interrupt to scl pin i2c?
Replies: 5
Views: 1345

Re: Possible to add interrupt to scl pin i2c?

thank you for replay

but only install the isr seems not to work. see first post.

background of this condition can you see in the datasheet section 5.5 of the tlv493d sensor.
in the master controlled mode you have the ability to enable interrupt. the tlv493d save the data to register and after that ...
by av_jui
Thu Jan 09, 2025 12:09 am
Forum: ESP-IDF
Topic: Components cannot include system component
Replies: 1
Views: 849

Re: Components cannot include system component

hallo

if you are at idf-version > 5.0 you have to edit your CMakeLists.txt in your "component" root folder and add the 'REQUIRES' argument.
idf_component_register(
REQUIRES "bt"
SRCS "ble_server.c"
INCLUDE_DIRS "."
)

it also seems you have an older version because after 5.2 you have to ...
by av_jui
Wed Jan 08, 2025 3:01 pm
Forum: ESP-IDF
Topic: Possible to add interrupt to scl pin i2c?
Replies: 5
Views: 1345

Re: Possible to add interrupt to scl pin i2c?

hey.

but when i have a look to the i2c_set_pin() function, which will used by setting up, it will be declared as 'IN/OUT'pin.
https://github.com/espressif/esp-idf/blob/515b025d6e20bba4bcd1b7ffeaa354f8bf6edad2/components/driver/i2c/i2c.c#L951 .
so i don´t need to write to register any more?

thanks ...
by av_jui
Wed Jan 08, 2025 1:07 pm
Forum: ESP-IDF
Topic: load spiffs from http
Replies: 4
Views: 1294

Re: load spiffs from http

hey

have you seen this post. maybe this will help.

rene
by av_jui
Wed Jan 08, 2025 11:36 am
Forum: ESP-IDF
Topic: Possible to add interrupt to scl pin i2c?
Replies: 5
Views: 1345

Possible to add interrupt to scl pin i2c?

hallo

is it possible to add an interrupt function to the scl pin. i have tried different things that won´t work.

the first thing i have tried
- setup gpio and interrupt after read out basic things from i2c slave
- after i get an interrupt i disable the gpio and interrupt and reactivate the i2c ...

Go to advanced search