RMT driver - TX interrupt fails?

User avatar
meshleman
Posts: 2
Joined: Thu Dec 15, 2016 1:19 am

RMT driver - TX interrupt fails?

Postby meshleman » Thu Dec 29, 2016 5:12 pm

Hello,

Just started working with ESP32.

I'm working with the latest IDF master branch from github, as of today.

Trying to use this code: https://github.com/Lucas-Bruder/ESP32_LED_STRIP which uses the RMT driver.

The code successfully starts the RMT peripheral and I see (using o-scope) the very first "clear" pattern output on the correct pin at what appears to be the correct overall frequency, etc, but the code never receives the TX interrupt, so the thread ("led_strip_task") hangs.

Additionally, if I change the call to 'rmt_write_items()' to indicate "wait for tx done", then the code hangs internally to 'rmt_write_items()' instead of later where it waits on the tx done interrupt (basically same code in both places... waiting on semaphore).

Any advice to help find the root cause? Is there some additional setup steps to enable the interrupt?

I'm using interrupt 19 and RMT channel 0.

Thank you!

User avatar
meshleman
Posts: 2
Joined: Thu Dec 15, 2016 1:19 am

Re: RMT driver - TX interrupt fails?

Postby meshleman » Fri Dec 30, 2016 3:55 am

Solved. Mis-match between the led strip code version of IDF and the latest IDF.

Thanks to:
https://twitter.com/onelittlebat/status ... 1622625281

Here are more notes:
https://github.com/espressif/esp-idf/issues/187

and

https://github.com/Lucas-Bruder/ESP32_L ... /issues/19

Who is online

Users browsing this forum: No registered users and 92 guests