Audio Support with iMXRT1176 #69332
Replies: 2 comments 5 replies
-
Hi @aditya-jadoun1 , NXP uses the i2s_speed test to test the I2S driver on the MIMXRT1170-EVK. That is a loopback test, so changes are needed to that board to connect the signals for the test to pass, see the readme. BTW, one trick I do to find samples and tests supported on specific boards is to search the repo for 'board name'.conf or 'board name'.overlay. In this case, both mimxrt1170_evk_cm7.conf and mimxrt1170_evk_cm7.overlay are included in the i2s_speed test. Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi @aditya-jadoun1 , I see you are right, and confirmed the i2s_speed test no longer passes on the MIMXRT1170_EVK. I created an Issue about this, and found the last release when this test passes is Zephyr v3.3.0. An update to the hal_nxp broke this test. We will need to investigate further to find the root cause, and resolve this. While that test does not pass, it does output the I2S signals. The board pinctrl for mimxrt1170_evk configures the MCLK signal for SAI1. Running the test, you can see MCLK on signal GPIO_AD_17, on J9 pin 15. As a quick test, I also added the pinctrl setting below to the board overlay file to enable MCLK on the SAI4 pin. This is signal GPIO_LPSR_05, connected to J10 pin 20. So you can use these MCLK examples as a reference.
Best regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using RT1170EVK with Zephyr and trying to run I2S driver on it. I tried default sample application code (zephyr/samples/drivers/i2s/echo) and when building it is giving error bcoz it seems sample application is not configured to use with iMXRT1170/76.
_In function 'main':
Zephyr/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_N_NODELABEL_i2s_rx_ORD' undeclared (first use in this function)
85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(_device, dev_id)
| ^~~~~~~~~
Zephyr/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
137 | #define _DO_CONCAT(x, y) x ## y
| ^
Zephyr/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(device, dev_id)
| ^~~~~~~
Zephyr/zephyr/include/zephyr/device.h:212:37: note: in expansion of macro 'DEVICE_NAME_GET'
212 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
| ^~~~~~~~~~~~~~~
Zephyr/zephyr/include/zephyr/device.h:229:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
229 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
Is there any other sample code that I can directly run on the EVK to test audio or what changes I need to do in code, to make that example work for RT1170EVK?
Beta Was this translation helpful? Give feedback.
All reactions