Playing files directly from SD card

Writing software for systems that use VLSI Solution's devices as slave codecs to a host microcontroller.
Post Reply
Ziqunk
User
Posts: 4
Joined: Mon 2018-05-28 14:28

Playing files directly from SD card

Post by Ziqunk » Mon 2018-05-28 14:52

Hi,

I'm using a VS0163 and I want to play a file from the sd card without passing through the microcontroller.

The SD card is connected to the VS1063 like the bypass mode but without the SPI connection to the microcontroller.

The microcontroller can only communicate through the SCI bus with the VS1063.

I'm asking if it can work and which command should i send to the VS1063 to play a file.

Best regards

User avatar
Panu
VLSI Staff
Posts: 2534
Joined: Tue 2010-06-22 13:43

Re: Playing files directly from SD card

Post by Panu » Mon 2018-05-28 15:19

Hi!

It's unclear to me what you've done so far, but in case you haven't already, then please take a look at the Stand-alone Player Application at:
http://www.vlsi.fi/en/support/evaluatio ... board.html

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Ziqunk
User
Posts: 4
Joined: Mon 2018-05-28 14:28

Re: Playing files directly from SD card

Post by Ziqunk » Mon 2018-05-28 15:46

Thank you for your fast reply, I join a file where you can take a look at my schematic.

I just want to command, through the SCI bus, the VS1063 chip to decode and play a song from the SD card.

I already take a look at the Stand-alone Player Application and i couldn't find an answer.

Hope you understand my qestion.
Attachments
Schematic.png
Schematic.png (50.31 KiB) Viewed 338 times

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

Re: Playing files directly from SD card

Post by pasi » Thu 2018-05-31 11:36

When using vs1063 standalone player without boot SPI:
1.Release AUDIO_RESET
2.Wait for DREQ to rise (you need the controller to read DREQ) or wait the appropriate time.
3.Upload the SCI-controlled player code from player.plg using SCI writes. See VS1063 Standalone Player/Recorder - VSIDE solution and document in http://www.vlsi.fi/en/support/software/ ... tions.html
4.When started, the player automatically plays the first file on the SD card (or the number you have specified in AICTRL0).

I think you have SD_CLK and SD_MISO swapped in the schematics. Also, SW_MISO requires a pull-up resistor.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Ziqunk
User
Posts: 4
Joined: Mon 2018-05-28 14:28

Re: Playing files directly from SD card

Post by Ziqunk » Fri 2018-06-01 14:57

Hi,

Thank you, I understand much better how it works now.

I tried to build the solution in VSIDE to create the player plugin but there is this error I couldn't resolve.

Code: Select all

Can't open output file Audio\vs1063-standalone-vside-dist\tmp7b
<stdin>(1) : ERROR 0: preprocessor stage failed
C:\Program Files (x86)\VSIDE\bin\make.exe: *** [Emulation-Debug\c-fatalloc2.o] Error 1


Build failed!

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

Re: Playing files directly from SD card

Post by pasi » Fri 2018-06-01 17:01

It looks like the C preprocessor cannot create a temporary file in the directory.

It may be a permissions issue. Also check that you have decompressed the package first and not trying to compile inside the .zip package.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Ziqunk
User
Posts: 4
Joined: Mon 2018-05-28 14:28

Re: Playing files directly from SD card

Post by Ziqunk » Wed 2018-06-13 11:12

Hi,

I haven't the administrator privilege where the installation files were installed. I managed to compile the code and thus create the plugin file.

I'll try later to upload the plugin into the VS1063.

Thank's for your support :)

Post Reply