The participants in this forum communicate in English, which is why I have translated your text using an online tool:
There is a problem playing audio on the STM32L4.
This is a warning message from the IAR compiler.
Warning [Lt009]: Inconsistent wchar_t size
mp3d_htab_armv4.o (lib_mp3decoder_cortex_m4_v2.2.0.a) contains wchar_t size 16 bits
Audio_player.o and 164 other objects, some of which are in dl7M_tlf.a, and 90 other libraries have wchar_t size 32-bit
Mobile_Laser.out.
[image]
lib_mp3decoder_cortex_m4_v2.2.0.a
I downloaded it from https://www.st.com/en/embedded-software/x-cube-audio.html
The reason why the audio is not playing seems to be related to that warning message.
Please help me with this issue
Thank you
If I am correctly informed, IAR was still using wchar_t 16 bits when X-CUBE-AUDIO was developed. It remains to be seen whether any changes will be made to the libraries after so many years.
As an alternative, you could consider using e.g. STM32CubeIDE (Eclipse with GNU GCC) instead of IAR as a temporary solution and test whether it can be compiled with it.
However, as this is only a warning, the programme could still have been compiled successfully and the cause of the inaudible audio could lie elsewhere.
Regards
/Peter