Page 1 of 1

Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE

Posted: Tue Mar 12, 2024 1:26 pm
by CNEK1
I am currently engaged in a project that involves the use of the I2S bus with the STM32WL55JC1 microcontroller. I’ve been working within the Arduino IDE environment and have come to understand that there isn’t a readily available library for the easy implementation of this bus.

From my research, it seems that creating a custom library might be necessary. However, before I proceed down this path, I wanted to reach out to the community to ask if there is a simpler method to utilize the I2S bus on the Arduino IDE with the STM32WL55JC1 Nucleo board.

Any guidance or suggestions would be greatly appreciated as it would significantly streamline the development process.

Thank you in advance for your assistance!!!!

Re: Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE

Posted: Wed Mar 13, 2024 9:38 am
by fpiSTM
HAL_I2S_MODULE_ENABLED is defined by default.
You should check the system core clock config to see of the I2S is correctly configured.
Then you can simply call the HAL I2S API.
Pay attention to the IRQ handler definition if you are in Cpp file, it have to be prefixed by extern "C".

You can also try to convert an Cube I2S example like done here for ADC:
viewtopic.php?t=110

Here you can find a library using the I2S:
https://github.com/stm32duino/X-NUCLEO- ... f401re.cpp