Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
379 stars 119 forks source link

Compilation error: rmt_ll_enable_tx_end_interrupt (in rmt_pulse.c line 55) #58

Closed aceisace closed 2 years ago

aceisace commented 2 years ago

Hi and thanks for the awesome software.

I wanted to point out a bug I found while compiling. These are the steps to recreate the bug:

Compilation does not complete, with the error: no reference to "rmt_ll_enable_tx_end_interrupt" (rmt_pulse.c, line 55)

The snippet in question is:

#if ESP_IDF_VERSION_MAJOR >= 4
    rmt_ll_enable_tx_end_interrupt(&RMT, row_rmt_config.channel, true);
#else
    rmt_set_tx_intr_en(row_rmt_config.channel, true);
#endif
olup commented 2 years ago

Got the same, found a fix ?

aceisace commented 2 years ago

Not really, but if you downgrade the ESP32 board package to v1.0.6 again from the board manager, it seems to work fine.

Symbiatch commented 2 years ago

Open file rmt_pulse.c in the library, in the beginning there's commented out lines:

// #if ESP_IDF_VERSION_MAJOR >= 4
// #include <hal/rmt_ll.h>
// #endif

Uncomment them and code compiles again. The missing function is in that header file.

LilyGO commented 2 years ago

Hello, thank you for your feedback. It has been updated and repaired