MP3 decoding with stm32
MP3 decoding with stm32
Hi, Is there any library or way to decode mp3 with stm32f10vet6?
I know this micro has enough power to decode mp3 files but I don't know how!
Adafruit mp3 library does not support stm32
Please help
I know this micro has enough power to decode mp3 files but I don't know how!
Adafruit mp3 library does not support stm32
Please help
-
- Posts: 633
- Joined: Thu Dec 19, 2019 1:23 am
Re: MP3 decoding with stm32
http://stm32duinoforum.com/forum/viewto ... _3405.html
http://stm32duinoforum.com/forum/viewto ... _3126.html
http://stm32duinoforum.com/forum/viewto ... t_359.html
http://stm32duinoforum.com/forum/viewto ... _3989.html
The "old" STM32duino forum (partially recovered) can be searched like this in Google:
http://stm32duinoforum.com/forum/viewto ... _3126.html
http://stm32duinoforum.com/forum/viewto ... t_359.html
http://stm32duinoforum.com/forum/viewto ... _3989.html
The "old" STM32duino forum (partially recovered) can be searched like this in Google:
Code: Select all
mp3 site:stm32duinoforum.com
Re: MP3 decoding with stm32
Thanks @mrburnette 

Re: MP3 decoding with stm32
I saw that link, thanks but I want to use stm32f103 internal DAC to play mp3, they used MAX08357 module no description about internal DAC, Dose any one can help?
-
- Posts: 505
- Joined: Fri Dec 27, 2019 4:53 pm
- Location: Munich, Germany
- Contact:
Re: MP3 decoding with stm32
Native MP3 decoder:
https://learn.adafruit.com/native-mp3-d ... on-arduino
https://github.com/adafruit/Adafruit_MP3
Adafruit uses SAMD51 chip but it should work on M3 / M4 Cortex core (like STM32F1 or STM32F4 family).
The first link indicated by Ray leads you to the adapted version for STM32: http://stm32duinoforum.com/forum/viewto ... _3405.html
Code was developed by Victor for the libmaple core: https://github.com/victorpv/Adafruit_MP3
https://learn.adafruit.com/native-mp3-d ... on-arduino
https://github.com/adafruit/Adafruit_MP3
Adafruit uses SAMD51 chip but it should work on M3 / M4 Cortex core (like STM32F1 or STM32F4 family).
The first link indicated by Ray leads you to the adapted version for STM32: http://stm32duinoforum.com/forum/viewto ... _3405.html
Code was developed by Victor for the libmaple core: https://github.com/victorpv/Adafruit_MP3
Re: MP3 decoding with stm32
I get the victorpv modified Adafruit_Mp3 for STM32f103 but still have error:
Code: Select all
C:\Users\lenovo\Documents\Arduino\libraries\Adafruit_MP3\src/mp3dec.h:75:2: error: #error No platform defined. See valid options in mp3dec.h
75 | #error No platform defined. See valid options in mp3dec.h
-
- Posts: 505
- Joined: Fri Dec 27, 2019 4:53 pm
- Location: Munich, Germany
- Contact:
Re: MP3 decoding with stm32
You have to be sure that you are using the Libmaple (Roger's) core.
Re: MP3 decoding with stm32
You mean that does not work with stm32duino core ?
So sad
So sad

-
- Posts: 505
- Joined: Fri Dec 27, 2019 4:53 pm
- Location: Munich, Germany
- Contact:
Re: MP3 decoding with stm32
Well, I don't know, but the error generated in line 75 is due to missing platform definition.
I think Frederic could tell us what kind of define should be instead:
in order to use the official core.
I think Frederic could tell us what kind of define should be instead:
Code: Select all
#elif defined(__STM32F1__)
Last edited by stevestrong on Sun Sep 27, 2020 9:22 am, edited 1 time in total.
Re: MP3 decoding with stm32
I need to check further but I guess a simple define will not be enough. The library uses a timer so it would require to add HardwareTimer part.