Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE

Working libraries, libraries being ported and related hardware
Post Reply
CNEK1
Posts: 1
Joined: Thu Mar 07, 2024 12:07 pm

Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE

Post 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!!!!
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE

Post 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
Post Reply

Return to “Libraries & Hardware”