I have the following example running on an nrf52 dongle:
https://docs.zephyrproject.org/latest/samples/drivers/i2s/echo/README.html
However, when I add the following code
#define I2S_LEDS_FRAME_WORD_SIZE 35 uint32_t m_i2s_led_buffer_tx[I2S_LEDS_FRAME_WORD_SIZE]; memset(m_i2s_led_buffer_tx, 0, sizeof(m_i2s_led_buffer_tx)); int ret; const struct device *const i2s_dev_tx = DEVICE_DT_GET(I2S_TX_NODE); ret = i2s_write(i2s_dev_tx, m_i2s_led_buffer_tx, I2S_LEDS_FRAME_WORD_SIZE + 1);
I get the following error:
[00:00:15.802,490] <inf> i2s_nrfx: I2S MCK frequency: 3200000, actual PCM rate: 100000 Streams started [00:00:15.916,259] <err> i2s_nrfx: This device can only write blocks of 41664 bytes [00:00:15.967,010] <err> i2s_nrfx: This device can only write blocks of 41664 bytes [00:00:16.014,465] <err> i2s_nrfx: Next buffers not supplied on time [00:00:16.017,761] <err> i2s_nrfx: Cannot write in state: 4 [00:00:16.068,389] <err> i2s_nrfx: Cannot write in state: 4 [00:00:16.119,018] <err> i2s_nrfx: Cannot write in state: 4 [00:00:16.169,708] <err> i2s_nrfx: Cannot write in state: 4 [00:00:16.220,336] <err> i2s_nrfx: Cannot write in state: 4 [00:00:16.270,965] <err> i2s_nrfx: Cannot write in state: 4 [00:00:16.321,594] <err> i2s_nrfx: Cannot write in state: 4
It seems like it might be because I'm not using the memory properly? The debugger values for the example mem_block is different than the array m_i2s_led_buffer_tx I'm trying to write to the I2S memory

Any tips on what I'm doing wrong?
