Skip to main content
VKALE
Associate II
August 29, 2019
Question

Audio_playback_and_record on STM32Cube_FW_F7_V1.15.0 for STM32746G-Discovery not working

  • August 29, 2019
  • 6 replies
  • 2898 views

Hi All,

I am trying to run Audio playback and record application present in the path:

STM32Cube_FW_F7_V1.15.0/Projects/STM32746G-Discovery/Applications/Audio/Audio_playback_and_record/SW4STM32/STM32F7-DISCO

But it hangs inside "FRESULT AUDIO_StorageParse(void)" function at line : "res = f_opendir(&dir, USBKey_Path);"

Could you please help me with this.

environment:

  1. SDK: STM32Cube_FW_F7_V1.15.0
  2. work bench - eclipse. (install_sw4stm32_linux_64bits-v2.9.run). on Linux laptop
  3. board: STM32F746G-DISCO
  4. board setup:
    1. USB pendrive with file.wav is connected to USB_FS of the board via USB to micro USB converter.
    2. Entire setup is attached as pic to this post.
    3. USB pendrive: SanDisk, 8GB.

Steps followed:

  1. Open audio application present in "STM32Cube_FW_F7_V1.15.0/Projects/STM32746G-Discovery/Applications/Audio/Audio_playback_and_record/SW4STM32/STM32F7-DISCO" in eclipse.
  2. Build and run.
  3. It prompts on the LCD - "Use Touch button to enter playback or record menu".
    1. Not touch the screen anywhere. It is expected to display the file list to be played.
  4. But program is getting struck inside "AUDIO_StoragePars()" function at line "res = f_opendir(&dir, USBKey_Path);". It tries to open the directories in USB pen drive and never comes out.
  5. Tried with different USB pendrives, But no luck.
  6. As explained in the board setup,
    1. USB pendrive with file.wav is connected to USB_FS of the board via USB to micro USB converter.
    2. Also tried connecting USB pen drive to USB_HS. But same result. No luck.

Thanks

KVVD

This topic has been closed for replies.

6 replies

VKALE
VKALEAuthor
Associate II
September 5, 2019

Can anyone please help.

Thanks

KVVD

VKALE
VKALEAuthor
Associate II
September 10, 2019

Hi All,

Any luck for me?

thanks

KVVD

After Forever
Senior III
September 10, 2019

> USB pendrive: SanDisk, 8GB.

What's the filesystem used in your "pendrive"? Make sure it's FAT32 and not ExFAT or NTFS. Try to use a smaller (<=4G) drive with FAT32 filesystem.

> But it hangs inside "FRESULT AUDIO_StorageParse(void)" function at line : "res = f_opendir(&dir, USBKey_Path);"

Try to pause the debugger or debug into the function step-by-step to see where exactly it hangs.

> Also tried connecting USB pen drive to USB_HS. But same result. No luck.

It must be connected to USB_FS, connector CN13, as is in your picture.

VKALE
VKALEAuthor
Associate II
September 11, 2019

Thanks for the response.

Please find my answers for your suggestions:

(1) FAT32

(2) it hangs inside ---> res = find_volume(&path, &fs, 0);

Not coming out of this function

(3) Yes.

Thanks

KVVD

After Forever
Senior III
September 11, 2019

Some flash drives may have multiple volumes/partitions, check if yours has just one (a primary MBR partition) using fdisk or a similar GUI tool (in Win10 right click on start menu, click Disk Management).

> Not coming out of this function

"Step into" the function and debug step-by-step (stepping "into" other functions too) using a debugger, find out where exactly it hangs, not just the name of the function. It will give us a clue so we won't be forced to make wild guesses. It may be a hardware issue, or USB layer issue, or filesystem layer issue, or something else.

VKALE
VKALEAuthor
Associate II
September 12, 2019

Sure will do.

But one basic question, did anyone really tested audio on this board? with any SDK version?

Thanks

KVVD