RMT driver - TX interrupt fails?
Posted: 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!
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!