VS1000 Audio Module Step-by-Step

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
User avatar
pasi
VLSI Staff
Posts: 1485
Joined: Thu 2010-07-15 16:04

Re: VS1000 Audio Module Step-by-Step

Post by pasi » Tue 2016-02-02 17:11

The post-build process tries to perform the "copy spiall.spi eeprom.img" command. Maybe there is something wrong with file permissions and you need to delete the previous eeprom.img first. You can open the command prompt and in the VS1000 Audio Module solution directory try:
copy spiall.spi eeprom.img

Maybe the error message will tell us more details.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

seulater
User
Posts: 10
Joined: Thu 2015-03-26 17:09

Re: VS1000 Audio Module Step-by-Step

Post by seulater » Tue 2016-02-02 17:59

If i delete eeprom.img it still gives same error.
If i manually type copy spiall.spi eeprom.img it does work, and there is the new file.
I was able to program the Chip and when it rebooted it started saying Left, Right" over and over again.
which is a T00.ogg file on the SPI part.
So, why is it doing that I thought it was supposed to take command to start playing.

seulater
User
Posts: 10
Joined: Thu 2015-03-26 17:09

Re: VS1000 Audio Module Step-by-Step

Post by seulater » Wed 2016-02-03 1:26

I just tried the VS1000UartAudioModule example. That one does not have the issue with the eeprom.img.
If I then close the solution and open the default VS1000AudioModule-072-VSIDE.zip solution it does, so something there on your guys end is messed up.

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

Re: VS1000 Audio Module Step-by-Step

Post by pasi » Wed 2016-02-03 14:14

seulater wrote:I was able to program the Chip and when it rebooted it started saying Left, Right" over and over again.
which is a T00.ogg file on the SPI part.
So, why is it doing that I thought it was supposed to take command to start playing.
The UART-controlled version by starts playing files on powerup by default (continuous play mode). This way the customer can just connect ground, supply voltage and headphones or amplifier to hear the module perform without needing to command it from the UART. The one-character commands of the continuous play mode can be used to change volume, jump to next/previous song, ask for decode position, pause/play, etc.

With the START_IN_FILE_MODE define in system.h the firmware can be configured to power up in the filemode, where the module waits for commands.

It is also possible to switch between filemode and continuous play mode during the operation with the 'f' and 'c' one-character commands during playback of a file and return to continuous play mode with with "c"+newline while the filemode is waiting for a command.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

gsmari
User
Posts: 2
Joined: Fri 2011-12-23 23:55

Re: VS1000 Audio Module Step-by-Step

Post by gsmari » Sat 2016-02-20 19:31

Hi, is it possible to have GIO pins for "volume-up" and "volume-down" when in GPIO mode ?

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

Re: VS1000 Audio Module Step-by-Step

Post by pasi » Mon 2016-02-22 13:18

The released source code does not have the volume controls, but you could easily use the default key controls instead using the KeyScan() routine in gpioctrl.c . See the attached code.
Attachments
gpioctrl.c
possibility for default firmware keys, including vol+ and vol-
(6.85 KiB) Downloaded 213 times
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

king2003
User
Posts: 5
Joined: Mon 2016-04-18 0:53

Re: VS1000 Audio Module Step-by-Step

Post by king2003 » Mon 2016-04-18 0:59

Hi,

I've used imggen052.exe to create a personal CONTENT.RAW for VSMD001 but in settings I set wrongly the size of the spi flash to 16mb instead of 2mb and flash it through µSD card (with SDUPDATE.PRG). I did not notice my wrong till I saw the module not playing songs !!!
I tried several times to reflash it with both FIRMWARE.RAW (VS1000AudioModule) and CONTENT.RAW (this times with size of 2MB) through µSD card without any success !!!
Can anyone help me to repair this module ?

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

Re: VS1000 Audio Module Step-by-Step

Post by pasi » Mon 2016-04-18 12:44

Hi,

It sounds like the content file overwrote the firmware at the beginning of the SPI FLASH.

You need to reprogram the firmware through the UART. (The programming using uSD card is not a ROM-firmware feature. It is part of the VS1000 Audio Module firmware that is preprogrammed into the module.)

You can use either VSIDE or the pcflash.exe ( http://www.vlsi.fi/en/support/software/vs1000tools.html ).

Note that the UART pins are logic-level and not RS232 level.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

king2003
User
Posts: 5
Joined: Mon 2016-04-18 0:53

Re: VS1000 Audio Module Step-by-Step

Post by king2003 » Tue 2016-04-19 16:35

pasi wrote:Hi,

It sounds like the content file overwrote the firmware at the beginning of the SPI FLASH.

You need to reprogram the firmware through the UART. (The programming using uSD card is not a ROM-firmware feature. It is part of the VS1000 Audio Module firmware that is preprogrammed into the module.)

You can use either VSIDE or the pcflash.exe ( http://www.vlsi.fi/en/support/software/vs1000tools.html ).

Note that the UART pins are logic-level and not RS232 level.
Hello Pasi

Yes this is what happened, I overwrote the whole SPI FLASH including the firmware. The module cannot boot.
I used PCFLASH with a USB to TTL conveter (CP2102 module) to write the firwmare (spiall.spi).
Then I used µSD card to write CONTENT.RAW.
Now it is functionning properly. (I thought the module is dead)

Thanks Pasi for your advices.

king2003
User
Posts: 5
Joined: Mon 2016-04-18 0:53

Re: VS1000 Audio Module Step-by-Step

Post by king2003 » Sun 2016-04-24 0:08

Hello,

I'm using VSMD001 v0.72 in file mode.

I have 3 questions :
1) Is there any pin signal sent by the module after a sound file is played (other than "done\n" message).

2) After playing a sound file from a µsd card, is it possible to play a sound file from spi flash and vice versa? bcs it seems (and from docs) that, when µSD card is inserted, playing from SPI FLASH is inhibited.
Is there any way to get files played from both memories ?

3) What is the right way to power on/off the device through software ? because I tried "OFF\n" command without any success.
Also I did not succeed to power ON/OFF the device through PB pin only a reset is guaranteed after more than 4s.

What I want is :
1) Initially the device is powered off.
2) When needed the module is powered on then a sound file is played either from SPI FLASH or µSD Card
3) After playing, an end of sound file palying pin signal is sent then the device is powered OFF.

NB : 4 wires are connected to the module from a microcontroller : VCC, GND, TX, RX (and of course Headphone - GBUF, LHP and RHP-)

B.Rabah

Post Reply