Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmt_encode_simple passes incorrect symbols_free parametr to callback (IDFGH-13742) #14606

Open
3 tasks done
vladislav06 opened this issue Sep 19, 2024 · 0 comments
Open
3 tasks done
Assignees
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@vladislav06
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

V5.3

Espressif SoC revision.

ESP32-S3

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

Custom board

Power Supply used.

USB

What is the expected behavior?

rmt_encode_simple must provide free space in symbols buffer with symbols_free parameter for the callback. In my case that is 192 symbols.

What is the actual behavior?

For the first call rmt_encode_simple calls callback with symbols_free set to 384, which causes buffer overflow and unexpected behavior, such as garbage in between correct signal:
image

Steps to reproduce.

In callback for rmt_encode_simple fill symbols buffer with symbols_free amount of rmt_symbol_word_t symbols.

Debug Logs.

No response

More Information.

If symbols_free is capped at 192, everything works as expected.

@vladislav06 vladislav06 added the Type: Bug bugs in IDF label Sep 19, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 19, 2024
@github-actions github-actions bot changed the title rmt_encode_simple passes incorrect symbols_free parametr to callback rmt_encode_simple passes incorrect symbols_free parametr to callback (IDFGH-13742) Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants