Skip to content

Espressif: Update RMT peripheral testing application to irtest#18788

Merged
xiaoxiang781216 merged 2 commits intoapache:masterfrom
tmedicci:improvement/rmt_testing
Apr 24, 2026
Merged

Espressif: Update RMT peripheral testing application to irtest#18788
xiaoxiang781216 merged 2 commits intoapache:masterfrom
tmedicci:improvement/rmt_testing

Conversation

@tmedicci
Copy link
Copy Markdown
Contributor

Summary

This PR updates the rmt defconfig for Espressif's SoCs and their documentation about it. The so-called rmtchar is now deprecated (apache/nuttx-apps#3461) and the irtest application is recommended to test the peripheral.

Impact

Impact on user: Yes. Improve user's experience when trying irtest testing application.

Impact on build: No.

Impact on hardware: No.

Impact on documentation: Yes. Updated.

Impact on security: No.

Impact on compatibility: No.

Testing

Build the rmt defconfig of any Espressif SoC, interconnect output and input pins externally and run irqtest. For ESP32-C6-DevKitC-1 V1.2, for instance:

Building

make -j distclean
./tools/configure.sh -S esp32c6-devkitc:rmt
kconfig-tweak -e SYSTEM_IRTEST
make olddefconfig
make flash ESPTOOL_PORT=/dev/ttyUSB0
picocom -b 115200 /dev/ttyUSB0

Running

Connect GPIO 8 (RMT output pin) to GPIO 2 (RMT input pin) externally and run irqtest:

nsh> irtest
$open_device(/dev/lirc0)
$open_device(/dev/lirc1)
$write_data(1) 16777229 16 16777235 23
$read_data(0,4)
16777229, 16, 16777235, 23

Results

Read data equals written data. Loopback test succeeded!

Adds the `CONFIG_SYSTEM_IRTEST` macro to enable building the
`irtest` application.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
Updated the `rmt` defconfig description for the Espressif's SoCs.
Use the `irtest` testing app (instead of the deprecated `rmtchar`)
to test the RMT peripheral.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
@tmedicci tmedicci requested a review from fdcavalcanti as a code owner April 23, 2026 14:22
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: S The size of the change in this PR is small Board: risc-v Board: xtensa labels Apr 23, 2026
Copy link
Copy Markdown
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @tmedicci :-)

This PR should be merged after apache/nuttx-apps#3461.

@xiaoxiang781216 xiaoxiang781216 merged commit 04c4269 into apache:master Apr 24, 2026
66 of 118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Board: risc-v Board: xtensa Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants