Music Player with USB File Transfer support for VS1010D

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Post Reply
Aleksi
User
Posts: 7
Joined: Wed 2019-06-12 10:03

Music Player with USB File Transfer support for VS1010D

Post by Aleksi » Fri 2019-07-05 14:32

Greetings!

Here is a music player program ‘TreePlayer’ and some libraries for VS1010D, which make it possible to make an MP3 player that supports transferring music files from a PC to the player. The main purpose of this release is to allow file playback from an SD card, and also the transfer of music files from the PC to the SD card. Player itself it much like one presented in VS1010 Handbook, more information about the book is provided here:

viewtopic.php?f=15&t=2392

This example uses somewhat modified versions of programs called UMS (program for running USB mass storage) and USBPROBE (driver that probes the USB bus). Because those are more or less modified you can ONLY use files provided in this thread. You can read more information about topic from following threads:

viewtopic.php?f=15&t=2309 (UMS)
viewtopic.php?f=15&t=2368 (USB driver)


I hope this is helpful for you. Feedback and questions are welcome!


Kind regards,

VLSI Solution's trainee
Aleksi
Attachments
binaries.zip
All necessary VS1010 VSOS executables
(10.14 KiB) Downloaded 146 times
music_player_with_file_transfer_support.pdf
Documentation
(161.64 KiB) Downloaded 204 times
arch-USBPROBE-2019-07-05-14-38-RC1.zip
USB flash driver, VSIDE Solution with source code
(53.03 KiB) Downloaded 139 times
arch-ums-2019-07-05-14-22-RC1.zip
USB File Transfer support, VSIDE Solution with source code
(24.3 KiB) Downloaded 142 times
arch-TreePlayer-2019-07-05-14-20-RC1.zip
Treeplayer, VSIDE Solution with source code
(33.07 KiB) Downloaded 147 times

Aleksi
User
Posts: 7
Joined: Wed 2019-06-12 10:03

Re: Music Player with USB File Transfer support for VS1010D

Post by Aleksi » Thu 2019-08-22 12:09

Hi!

It's time to release new version of 'TreePlayer' with some upgrades (main functionality is still the same):

1. State changes should work better now
2. USB driver for playing music from USB flash memories has been updated and should work with most usb sticks.

To use this player you need four .dlx files in your sys folder:
- TreePlayer.dlx
- ums.dlx
- USBHDD.dlx
- USBPROBE.dlx

Binaries to test the player are provided below as well as solution files for further development.

More information about USB driver can be found found here: viewtopic.php?f=15&t=2309


I hope this is helpful for you. Feedback and questions are welcome!


Kind regards,

VLSI Solution's trainee
Aleksi
Attachments
arch-USBPROBE-2019-08-22-11-35-RC2.zip
USB flash driver, VSIDE Solution with source code (version 2)
(55.29 KiB) Downloaded 151 times
arch-ums-2019-07-05-14-22-RC1.zip
USB File Transfer support, VSIDE Solution with source code
(24.3 KiB) Downloaded 157 times
arch-TreePlayer-2019-08-22-12-58-RC2.zip
Treeplayer, VSIDE Solution with source code
(41.07 KiB) Downloaded 143 times
binaries.zip
All necessary VS1010 VSOS executables
(11.18 KiB) Downloaded 135 times

Rameez
User
Posts: 3
Joined: Wed 2020-03-04 10:56

Re: Music Player with USB File Transfer support for VS1010D

Post by Rameez » Wed 2020-03-04 14:50

Greetings!

I'm trying to build Treeplayer code provided by you but I'm unable to build it gives me the following error.

Code: Select all

1 file(s) copied.
copy loadable.ap3 "C:\Users\hp\Documents\solutions\MySolution\Emulation-Debug"\sys\TreePlayer.dlx /y

The system cannot find the path specified.
        0 file(s) copied.
C:\Program Files\VSIDE\bin\make.exe: *** [g/TreePlayer.coff] Error 1


Build failed!

Hannu
Senior User
Posts: 88
Joined: Mon 2016-05-30 11:54

Re: Music Player with USB File Transfer support for VS1010D

Post by Hannu » Thu 2020-03-05 8:36

Hello and welcome to the forum!

It looks like you are trying to install program to your project directory and the build process fails at program deployment.

The green play and printer button with tool tip "Target drive" next to build and clean buttons selects the target path.

First click clears the path and after that the program should build.
Then boot your VS1010 to USB mass media mode so that your computer finds it. Click the green play and select the the USB drive root.

Now when your VS1010 is detected as USB mass media, building the project should install the treeplayer to DRIVE:\sys\treeplayer.dlx .
After ejecting the media and rebooting VS1010 you should be able to execute the treeplayer.

Rameez
User
Posts: 3
Joined: Wed 2020-03-04 10:56

Re: Music Player with USB File Transfer support for VS1010D

Post by Rameez » Sat 2020-03-21 15:42

Hello,

I brought new vs1010d evaluation board when I'm trying to connect it to my system through USB to the serial cable provided by you the board is not getting detected by the system.

AudioJack
User
Posts: 2
Joined: Thu 2020-07-09 18:22

Re: Music Player with USB File Transfer support for VS1010D

Post by AudioJack » Thu 2020-07-09 21:49

Hi,

I wanted to try this. I have copied the dlx files to my SYS folder.
It does seem to try to start,

I see Initializing player..
You are using disk D:
Playing >> name of my track

but then doesn't play anything and immediately displays

Goodbye!

and the I get the command prompt.

I'm using the mini-demo board. Any suggestions on what I'm doing wrong or need to try?

Also if I want to enable I2S as part of this player can you show me how.

Thanks

User avatar
pasi
VLSI Staff
Posts: 1703
Joined: Thu 2010-07-15 16:04

Re: Music Player with USB File Transfer support for VS1010D

Post by pasi » Wed 2020-07-15 12:24

AudioJack wrote:
Thu 2020-07-09 21:49
You are using disk D:
Playing >> name of my track
but then doesn't play anything and immediately displays
Goodbye!
What's the audio format of the file you are trying to play?
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply