Audio_playback_and_record on STM32Cube_FW_F7_V1.15.0 for STM32746G-Discovery not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-29 2:43 AM
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:
- SDK: STM32Cube_FW_F7_V1.15.0
- work bench - eclipse. (install_sw4stm32_linux_64bits-v2.9.run). on Linux laptop
- board: STM32F746G-DISCO
- board setup:
- USB pendrive with file.wav is connected to USB_FS of the board via USB to micro USB converter.
- Entire setup is attached as pic to this post.
- USB pendrive: SanDisk, 8GB.
Steps followed:
- 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.
- Build and run.
- It prompts on the LCD - "Use Touch button to enter playback or record menu".
- Not touch the screen anywhere. It is expected to display the file list to be played.
- 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.
- Tried with different USB pendrives, But no luck.
- As explained in the board setup,
- USB pendrive with file.wav is connected to USB_FS of the board via USB to micro USB converter.
- Also tried connecting USB pen drive to USB_HS. But same result. No luck.
Thanks
KVVD
- Labels:
-
Audio
-
LCD-LTDC
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-05 8:03 AM
Can anyone please help.
Thanks
KVVD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-10 4:13 AM
Hi All,
Any luck for me?
thanks
KVVD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-10 4:25 AM
> 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-11 4:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-11 5:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-12 3:14 AM
Sure will do.
But one basic question, did anyone really tested audio on this board? with any SDK version?
Thanks
KVVD
