cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4 discovery + stm32f4-BB record on sd card, it's possible?

michpuz
Associate II
Posted on August 31, 2015 at 12:12

Hi everybody,

I would record on SD card by the microphone on board, it's possible?

I try it using the driver stm32f4_discovery_audio and the sd driver HAL for the Eval, but I failed. 

Some of you have recorded from the microphone on sd card?

Thanks to all, any opinion is appreciated

11 REPLIES 11
Posted on August 31, 2015 at 14:34

Certainly should be viable.

Can't say I've built an audio app for the F4's (no business driver), but I've used the MicroSD card, and BB board a lot.

Would probably look to doing 32KB at a time, servicing a ping-pong buffer.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
michpuz
Associate II
Posted on August 31, 2015 at 14:52

Thanks for your reply clive.

Do you think that it's possible use the example ''Audio_playback_and_record '' (supply by ST) that record on USB modified for save the record in SD?

Posted on August 31, 2015 at 18:17

I'd recommend starting with the SDIO+FATFS stuff, get that working properly, where you can read and write files. Then merge in the audio play/record stuff from the other project.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
michpuz
Associate II
Posted on September 01, 2015 at 09:52

Thank you clive for reply.

I have done a project that write a .txt file on SD card (this works), and after I would to record using the driver audio of the project that write on USB, but not works (creates the file .WAV but 0kb). 

Can I share my project for view? How?

Sorry but I am new here

michpuz
Associate II
Posted on September 03, 2015 at 11:35

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6nt&d=%2Fa%2F0X0000000bvp%2F5xhE0gQrBuJieaHF1CzAOxoGRkYAcEIw_.3.HYwTV7k&asPdf=false
v_mo83
Associate
Posted on September 03, 2015 at 11:56

michpuz
Associate II
Posted on September 10, 2015 at 11:04

nobody one? Now save the file on uSD with consistent size with set recording time, but can not hear anything and I have an error on dma. I share my project and hope that you have time to check it.

Many thanks :)

________________

Attachments :

mik123.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzp0&d=%2Fa%2F0X0000000bQ1%2FSn39lzUfhSwM5v_FgJRnw3y50ikWc8Y2OknrWG27pC4&asPdf=false
michpuz
Associate II
Posted on September 23, 2015 at 13:39

Nobody one? :(

Posted on September 23, 2015 at 18:38

I know I don't have the bandwidth/resource to work on or debug this.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..