Nucleo-H743ZI No data out in I2S slave mode
HI, I'm trying to interface this board to a cirrus logic CS42448 codec. I set up the I2S3 peripheral in slave mode configured in CubeMX as so:

The project is built with this and in the main while loop I have a simple bit of code to get it to transmit some random data:
/* Infinite loop */
/* USER CODE BEGIN WHILE */
bool channel = false;
uint16_t data_test[2] = { 0x0324, 0x0000};
while (1) {
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
if (HAL_I2S_GetState(&hi2s3) == HAL_I2S_STATE_READY) {
HAL_I2S_Transmit(&hi2s3, &data_test[channel], 1, 0);
channel = !channel;
}
}
/* USER CODE END 3 */
}
The codec is providing the LR/WS clock and bit clock and I have it running at a sample rate of 32kHz (my logic analyser has limited bandwith). I can verify however that the clocks are coming in at the right frequencies with my logic analyser, however there isn't any data coming out of the board.
When I re-configure the board in I2S master mode however and disconnect the codec, with the exact same settings and code I can see there is data coming out.
Thanks!