STM32F4 Discovery MP3 player working - with source code

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Marko
Posts: 1
Joined: Fri Jun 15, 2012 7:17 am

Re: STM32F4 Discovery MP3 player working - with source code

Post by Marko »

Hi, I've just installed this on my new discovery board, seems to work great :)


At first I thought it wasn't working, as it seems it only plays files in the root dir.
I'm used to bare metal so I need to figure out chibios a bit.. need to rig up a display, and hopefully some sort of search function, or folder play at least...

anyway, thanks for the code...
mr_michael_s
Posts: 13
Joined: Sat Jul 07, 2012 1:08 pm

Re: STM32F4 Discovery MP3 player working - with source code

Post by mr_michael_s »

I would like to get my music files from USB-memory-stick instead of the SD card. Has anybody a good clue how to implement USB mass storage with the STM32f4 discovery and ChibiOS ?

Thanks

Michael
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F4 Discovery MP3 player working - with source code

Post by Giovanni »

ChibiOS does not support an USB host capability, it is device only so far. Your best option is to integrate the ST USB host library with ChibiOS.

Giovanni
mr_michael_s
Posts: 13
Joined: Sat Jul 07, 2012 1:08 pm

Re: STM32F4 Discovery MP3 player working - with source code

Post by mr_michael_s »

Ah, thanks.
I had not been aware that it's device only....


Michael
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: STM32F4 Discovery MP3 player working - with source code

Post by alexblack »

Hi, I was able to play MP3 files on my STM32F103 MCU at 72Mhz on internal DAC. All works fine, sound is pretty, CPU can play 320kbs without problems.
Thank you for sample.
Stew C
Posts: 1
Joined: Mon Apr 29, 2013 8:47 pm

Re: STM32F4 Discovery MP3 player working - with source code

Post by Stew C »

I loaded the prebuilt binary to my board and have the orange light blinking but cannot get any sound. I wired up my SD card exactly as it says in the main.c file. I also tried adding pull-up resistors to the data lines but to no avail. I am using a 1GB SD card with the .mp3 files in the root directory. Anyone have any advice? My RS-232 is coming in the mail tomorrow so I can hook up the UART lines and hopefully see what the problem is.
Post Reply