Username:     
Password:     
            Register  

Contest 2009
Contest 2008
MP3 Player 1.01
 
Playback MP3 files on STM32 Primer2 with Helix Software decoder

Code size:64KB Author:repzak
Source files included:yes Version:1.01
Use circleOS:yes (1.7) Creation date:2009-06-25 21:57:06
Hardware modification:no Modification date:2010-01-15 23:18:43
Based on the STM32 Primer:Primer2
   
Downloads:6229 Views:10285
   
Vote:
Average ratings:0/5 (0 rates)

Download:    MP3-Player-1.01.zip (2482 KB)

Description:

========================================================

Updated to 1.01 to support new ST Library, for more information see readme.txt

=========================================================

This is an application for STM32 Primer 2, which enables the playback of MP3 files. The decoder is based on Helix MP3 Library. The library has an integer decoder there is suitable for smaller microcontrollers.

The implementation makes it possible to listen to most common variants of MP3. 320kbit files can have small problems due to speed of the microcontroller.
The system also can read ID3V1 out of the file and show it as flying text on the screen.
There has been added touch icons to control the player.
This application is build based on the Play Wave application which Francis from Raisonance and I am the author off, my role was mainly to update the circleOS to play audio from DMA and improve the sound quality.
 
 
Note: The Helix library has been ported to thumb-2 code and has been changed to static memory configuration for this project.


Project comments

how to use the code                                                                                                             Please, log you to post a reply.
#1   2010-02-27 08:49:10
prajwal
New member

Offline

how to use this application on stm32 primer2?

 
#2   2010-02-27 09:35:14
ntrf.zns
Member

Offline

First you need to install software (Ride IDE and ARM Toolkit). If you want to intall MP3Player to the Primer2, go to the Lib_XXX_add_to_circle subfolder and launch the add_to_circle.bat file. Make sure you connected (using Debug port - you will see red ligt near joystick) and turned on your device.

 
#3   2010-07-05 13:55:22
ankita madan
New member

Offline

Hello,

After connecting a USB cable to DEBUG, I see the LED near the joystick glow for a second and then it turns off. Now, I switch the Primer ON. And I launch the BAT file as suggested as below. It shows the following:

Connecting to RLink... OK
Connecing to target...
Error 303 : Unable to read Id code..."

any suggestion?

Rgds,
Ankita

 
#4   2010-07-06 10:50:57
yrt
Administrator

Offline

The Led behavior is normal at USB connection (it indicates the busy state of the embedded RLink). Did you try to restore the factory firmware, or debuging under Ride environment ?

 

怎么下载不了?                                                                                                             Please, log you to post a reply.
#1   2010-06-27 15:37:58
xzw168
New member

Offline

MP3播放器- 1.01.zip 不能下载

 
#2   2010-06-28 11:00:30
repzak
Member

Offline

Seems to work here, did you login?

 

it works                                                                                                             Please, log you to post a reply.
#1   2010-04-25 07:54:22
prajwalc
New member

Offline

@ntrf.zns thanks mate

 
#2   2010-04-25 10:13:02
ntrf.zns
Member

Offline

Huh? What did i do?

 

SD-Card Bug                                                                                                             Please, log you to post a reply.
#1   2009-10-13 19:04:58
repzak
Member

Offline

Hello All,

This thread describes the lock-up of the MP3 Player as well.

http://www.st.com/mcu/forums-cat-8216-23.html

Kasper

 

cool!                                                                                                             Please, log you to post a reply.
#1   2009-09-03 03:52:06
dragonathust1
New member

Offline

How about sthe sound quanlity?

 
#2   2009-09-03 07:49:01
repzak
Member

Offline

Hello,

If you use the line output i think the sound quality is quite good and can be compared to other "low" cost MP3 player.

The internal speaker can practically not be used to play music, and you can not judge the quality from that.

The hardware has a dedicated audio dac, almost like your soundcard in the PC and this codec will set the quality since every thing is digital until this DAC, you can read the datashet for this chip.

There can be some problems in playing 320kbit MP3's due to the speed of the uC or the optimization of the code.

Kasper

 

AWESOME                                                                                                             Please, log you to post a reply.
#1   2009-07-19 05:57:30
ShadowPhoenix
Member

Offline

Very cool! I will take a look at the source soon.


Only thing - the music ONLY playes on the output jack. Why not the internal speaker?

 
#2   2009-07-19 11:39:36
repzak
Member

Offline

Hey,

I am glad you like it smile

You can enable it in the source code, Set this code line in apllication_ini function to ON :
    /* Turns off Speaker */
    AUDIO_SPEAKER_OnOff(OFF);


I thought about add it as an option on the screen, but the sound quality in the internal loudspeaker is poor, and will not show the quality of sound both the codec and the MP3 player can deliver smile

Kasper

 
#3   2009-07-19 19:33:44
ShadowPhoenix
Member

Offline

Now add a option to play all files in the folder wink.

Make a percentage of the file read.

Support some uncommon frequencies - 11025 for example.


Out of curiosity, how much CPU is used up?

 
#4   2009-07-19 23:14:05
repzak
Member

Offline

First i need to take my summer holiday wink, then we have to see in the winther..., but others can also add functionality.

The CPU power at 320kbit will i estimate to 90-105%....
Maybe some optimization can also be done, DMA transfer... also the DMA transfer in SD card read can be optimized.

Kasper

 
#5   2009-07-20 03:16:54
ShadowPhoenix
Member

Offline

repzak wrote:

First i need to take my summer holiday wink, then we have to see in the winther..., but others can also add functionality.

The CPU power at 320kbit will i estimate to 90-105%....
Maybe some optimization can also be done, DMA transfer... also the SMA transfer in SD card read can be optimized.

Kasper

Summer holiday? This SHOULD be your holiday! smile

I mean, look at all of us... it's summer and we are hard at school coding programs.

And wow,. 90% is pretty tough. How about 120kbit?

 


To add comments, please register you.



replica handbags Wholesale China Replica Purses Louis Vuitton Handbags Burberry handbags louis vuitton replica handbags Replica LOUIS VUITTON Gucci Handbags Prada Handbags Burberry Handbag Hermes Handbags Hermes Belts Gucci Belts Louis Vuitton Belts Louis Vuitton Wallets Hermes Wallets Gucci Wallets Burberry ScarfLouis Vuitton ScarfHermes Scarf Louis Vuitton Bracelets Louis Vuitton handbags Gucci handbags Prada handbags Prada Wallets Louis Vuitton Wallets Gucci Wallets Prada Wallets Wholesale Jewelry Replica handbags replica watches Louis Vuitton Bikini Burberry BikiniMiu Miu Handbags Hermes Bracelets