No sound on VS1005 custom board

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
YuryShatz
Senior User
Posts: 23
Joined: Sat 2016-11-05 19:36

No sound on VS1005 custom board

Post by YuryShatz » Sun 2018-09-09 17:13

Hello Panu

I guess this is similar to this thread viewtopic.php?f=15&t=2292

We are trying to run our custom board. Our program starts the decoder, it is decoding (or doing something) for the expected amount of time, and ends successfully saying "Decoder returns 0, 'ok'". But there is no sound.

Program is the same as we used on breakout board where it worked. We measured GBUF and it is 0.

We disabled all drivers except auodac. Simplified my program so that it only plays single file from system drive. Still no sound.

We went through the thread about VS1010 and tried to diagnose with dacinfo. However, PrintInterrupts does not compile for VS1005 and PrintAudioInfo crashes when calling AudioBufFree (perhaps address is incorrect). Is there DACINFO for VS1005?

Anyway, I made a very short version of dacinfo and added it to config.txt. We disabled all other drivers, and our program only initializes audio and starts the decoder. Here's what we are getting:
--- (first line in config.txt) ---

Load drivers, config 0...

Driver: S:dacinfo2.dl3... Global interrupts enabled, Int Encount: 0
DAC_VOL: 0101
ANA_CF1: 1840, analog/drivers enabled [L R GBUF DAC]: 0x4
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=112c (972e is ROM default)
Write=236b (94c1 is AudioWrite)

Driver: auodac...

--- (after auodac) ---

Driver: S:dacinfo2.dl3... Global interrupts enabled, Int Encount: 0
DAC_VOL: 0101
ANA_CF1: 1848, analog/drivers enabled [L R GBUF DAC]: 0x4
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=2056 (972e is ROM default)
Write=365e (94c1 is AudioWrite)

--- our program loaded ---
Load S:INIT.AP3...
263|1|Global interrupts enabled,
317|1|DAC_VOL: 0000
368|1|ANA_CF1: 1848,
419|1|analog/drivers enabled [L R GBUF DAC]: 0x4
473|1|DAC_SRC: 0x144000,
525|1|sample rate is about 48000.0 Hz
578|1|stdaudioout=2056 (972e is ROM default)
631|1|Write=365e (94c1 is AudioWrite)

--- LoadLibrary("audiodec") ---
713|1|Global interrupts enabled,
716|1|Int Encount: 0
768|1|DAC_VOL: 0000
819|1|ANA_CF1: 1848,
870|1|analog/drivers enabled [L R GBUF DAC]: 0x4
924|1|DAC_SRC: 0x144000,
976|1|sample rate is about 48000.0 Hz
1029|1|stdaudioout=2056 (972e is ROM default)
1082|1|Write=365e (94c1 is AudioWrite)

--- Set volume ---
1139|1|Global interrupts enabled,
1142|1|Int Encount: 0
1194|1|DAC_VOL: 0000
1245|1|ANA_CF1: 1848,
1296|1|analog/drivers enabled [L R GBUF DAC]: 0x4
1350|1|DAC_SRC: 0x144000,
1402|1|sample rate is about 48000.0 Hz
1455|1|stdaudioout=2056 (972e is ROM default)
1508|1|Write=365e (94c1 is AudioWrite)

-- Played a short mp3 file--

6716|1|Global interrupts enabled,
6719|1|Int Encount: 0
6771|1|DAC_VOL: a5a5
6822|1|ANA_CF1: 1848,
6873|1|analog/drivers enabled [L R GBUF DAC]: 0x4
6927|1|DAC_SRC: 0x137599,
6979|1|sample rate is about 44100.0 Hz
7032|1|stdaudioout=2056 (972e is ROM default)
7085|1|Write=365e (94c1 is AudioWrite)
Where do we go from here. Does it look like a hardware problem? Do the addresses look right? Is there dacinfo for vs1005?

Thanks a lot.

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

Re: No sound on VS1005 custom board

Post by pasi » Mon 2018-09-10 11:18

If GBUF is 0, then also check
- RCAP voltage?
- AVDD voltage?
- Check for possible short-circuits in GBUF (and/or in LEFT and RIGHT).

(0x1848 in ANA_CF1 has DRV_ENA and DA_ENA set. What's in ANA_CF2?)
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

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

Re: No sound on VS1005 custom board

Post by Panu » Mon 2018-09-10 12:13

Hi!

10 / 10 points for trying. Hmm, the dacinfo prints suprisingly relevant looking information, given that all the addresses are different in VS1010, and there are significant differences also in the ANA_CF registers. Making a VS1005 version is a good idea.

Can you share the schematic of your custom board? I hope that your GBUF is not connected to ground!

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

Andrey
User
Posts: 1
Joined: Mon 2018-09-10 17:05

Re: No sound on VS1005 custom board

Post by Andrey » Mon 2018-09-10 17:17

Hi Panu!

Here is schematics attached.
I didn't differ GND and AGND nets in schematics but kept them separate on PCB.

BR,
Andrey
Attachments
vs1005amp_based_v11_1.sch.pdf
(163.14 KiB) Downloaded 7 times

Post Reply