AnsweredAssumed Answered

STM32f4 discovery USB and MP3 on the verge to make it work but..

Question asked by feixas.bernat on Jan 12, 2017
Latest reply on Jan 18, 2017 by zaffini.giangiacomo

Hello to everyone,


I've been searching in the web to find and example of this typicall aplication of reporducing MP· files from a USB stick, with the stm32f4 discovery board.


At first I found the code (STM32F4 Discovery USB host and MP3 player | Benjamin's robotics ) but I work with keil and I didn't succes to make it work with Keil.


Looking harder I've found and example with keil. 日々の工作(メモ): 【STM32F4】MP3の移植中(2) ~とりあえず終了まで 

The explanations are in japanese so I had to translate them with google. And even I followed the instructions of the programmer:(

which are: comment  AUDIO_MAL_MODE_NORMAL and uncomment AUDIO_MAL_MODE_CIRCULAR in  stm32f4_discovery_audio_codec.h file

and also: uncomment AUDIO_MAL_DMA_IT_HT_EN in the same file )

I can't make it works.


The japanese code breaks(HardFault_Handler) in the mp3.dec file, in the function 'HMP3Decoder MP3InitDecoder(void)' after executing the AllocateBuffers


Anyone could help to make it work?


Thanks in advance