SPI & SD works but no sound is to hear.

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Arek
Senior User
Posts: 100
Joined: Thu 2016-09-01 10:58

Re: SPI & SD works but no sound is to hear.

Post by Arek » Tue 2018-08-28 11:23

Hi Panu,

working with vs1010c

in my program directory I have two *.o files:
vs1010b1_romabs.o
vs1010fixedabs.o
and interesting text files:
vs1010b1_romabs.txt
vs1010c_romabs.txt

Problem during installation?

Arek
Senior User
Posts: 100
Joined: Thu 2016-09-01 10:58

Re: SPI & SD works but no sound is to hear.

Post by Arek » Tue 2018-08-28 13:50

Hi,

ok, I have found "vs1010c_romabs.o" "somewhere" in the forum. (Thanks to Hannu and his sinus generator cdac.zip!)

Attached new DacInfo listing. "Playing" right title in the loop. Duration of this soundtrack also correct. (And of course is nothing to hear)
With new PCB.

C#0d1d
VS1010C VSOS 4.02
Files:6. Buffers:3.
Runlevel 7
SPIF:c214, 2048K

SD:120 MiB
Patch v15

Runlevel 7 MyMP3
AMP3 START
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 1800, No analog/drivers enabled [L R GBUF DAC]: 0x0
DAC_SRC: 0x80000000, sample rate is about 0.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 0, .wr=0x0, .rd=0x0
Audio Buffer is not initialized!! Trying to bring it up..
Trying again..
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 1799, .wr=0x3000, .rd=0x3e0e
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
thanks and best regards
am

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2692
Joined: Tue 2010-06-22 13:43

Re: SPI & SD works but no sound is to hear.

Post by Panu » Tue 2018-08-28 16:21

Right, still the "impossible" value for the Write method can be seen:
Write=0x3040 (94c1 is AudioWrite)
But at least, we're armed with the right tools to find the problem!

In your config.txt, can you put S:DACINFO.DLX (or just DACINFO if you put dacinfo.dlx into the SYS folder) in the beginning (as the first line) and between every line that calls some other program. I'm thinking it "must" be correct (94c1) at SOME point, and then get corrupted after doing SOMEthing... this is all very strange, but at least with the dacinfo and this knowledge that 0x3040 is *wrong*, we must be able to find where the corruption happens.... right...?

Good that you found the romabs file, great that you got it compiled. I know, this is frustrating, but we're close to solving it, I think!

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

Arek
Senior User
Posts: 100
Joined: Thu 2016-09-01 10:58

Re: SPI & SD works but no sound is to hear.

Post by Arek » Tue 2018-08-28 17:21

ok. New listing.
Part of my config:
...
[7]
echo Runlevel 7 MyMP3
echo Start dacinfo in config
s:dacinfo.dlx
echo Start AM Proggy
s:MyMP3_01.dlx
[8]
...

and DacInfo:
C#0d1d
VS1010C VSOS 4.02
Files:6. Buffers:3.
Runlevel 7
SPIF:c214, 2048K

SD:120 MiB
Patch v15

Runlevel 7 MyMP3
Start dacinfo in config
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 1800, No analog/drivers enabled [L R GBUF DAC]: 0x0
DAC_SRC: 0x80000000, sample rate is about 0.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 0, .wr=0x0, .rd=0x0
Audio Buffer is not initialized!! Trying to bring it up..
Trying again..
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 1799, .wr=0x3000, .rd=0x3e0e
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe

Start AM Proggy
AMP3 START
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x3040 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
AudioBufFree: 2047, .wr=0x3000, .rd=0x3ffe
StageNr = 2
2_Aa.mp3

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2692
Joined: Tue 2010-06-22 13:43

Re: SPI & SD works but no sound is to hear.

Post by Panu » Tue 2018-08-28 23:21

Unbelieveable, it's the patch itself that is messed up. Try this new one:
Attachments
boot.dlx
Patch 17
(1.92 KiB) Downloaded 30 times
patch17.zip
Source code
(46.82 KiB) Downloaded 30 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Arek
Senior User
Posts: 100
Joined: Thu 2016-09-01 10:58

SOUND IS TO HEAR!!!

Post by Arek » Wed 2018-08-29 10:26

Hi Panu!

Many thanks. The silent player became loud!

Q. Have you also placed ReplayGain in this Patch?


Thank you and best regards

Arek

C#0d1d
VS1010C VSOS 4.02
Files:6. Buffers:3.
Runlevel 7
SPIF:c214, 2048K

SD:120 MiB
Patch v17

Runlevel 7 MyMP3
Start dacinfo in config
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 1800, No analog/drivers enabled [L R GBUF DAC]: 0x0
DAC_SRC: 0x80000000, sample rate is about 0.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 0, .wr=0x0, .rd=0x0
Audio Buffer is not initialized!! Trying to bring it up..
Trying again..
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 1799, .wr=0x3000, .rd=0x3e0e
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 1547, .wr=0x33e8, .rd=0x3ffe
AudioBufFree: 1720, .wr=0x33e8, .rd=0x3158

Start AM Proggy
AMP3 START
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x33e8, .rd=0x33e6
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 1547, .wr=0x37d0, .rd=0x33e6
AudioBufFree: 1720, .wr=0x37d0, .rd=0x3540
StageNr = 2
2_Aa.mp3
Start DacInfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 18f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x125555, sample rate is about 16000.0 Hz
stdaudioout=0x1019 (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 1223, .wr=0x3c00, .rd=0x358e
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 872, .wr=0x3fe8, .rd=0x36b8
AudioBufFree: 931, .wr=0x3fe8, .rd=0x372e
StageNr = 2
2_Aa.mp3

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2692
Joined: Tue 2010-06-22 13:43

Re: SPI & SD works but no sound is to hear.

Post by Panu » Mon 2018-09-03 9:15

Great that it works!

I'll see about including the ReplayGain into next patch version...

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

Post Reply