cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery Audio example problem

a105035x
Associate II
Posted on April 18, 2015 at 12:44

Hi,

I am trying to run the Audio playback and recording example from the firmware and drivers download package for the STM32F4 discovery. I want to use the audio file stored in the mcus internal flash, and have uncommented what I thought was the neccesary line in main.h as follows:

/* Select the media where the Wave file is stored */

#if !defined (MEDIA_IntFLASH) && !defined (MEDIA_USB_KEY)

 #define MEDIA_IntFLASH /* Wave file stored in internal flash */

 //#define MEDIA_USB_KEY  /* Wave file stored in USB flash */

#endif

However, when I debug this program, with breakpoints in both #ifdefs for the IntFlash and MEDIA_USB_KEY sections in main(), the executor only runs to the MEDIA_USB_KEY bit, so for some reason it thinks MEDIA USB KEY is defined instead. Can anyone help me out?

Thanks

0 REPLIES 0