VSIDE development for VS1053B

Installing and using VSIDE tools for VLSI Solution's devices that contain a VSDSP signal processor.
Post Reply
lorenzo318
User
Posts: 17
Joined: Mon 2021-03-01 23:01

VSIDE development for VS1053B

Post by lorenzo318 »

Hello

I would like to practice developing the VSIDE with the VS1053b codec.

Honestly, I find it really difficult to do without specific detailed documentation.

For example, what I would like to get is a software (application or plugin!?! I don't know, I would like to understand it) that acquires linear PCM samples but also does speech detection and generates an interrupt on a GPIO of the codec. Could I have some indications on which path is best to follow to get started?

BR,
Lorenzo
User avatar
Henrik
VLSI Staff
Posts: 1238
Joined: Tue 2010-06-22 14:10

Re: VSIDE development for VS1053B

Post by Henrik »

Hello Lorenzo,
lorenzo318 wrote: Thu 2021-09-16 18:27 I would like to practice developing the VSIDE with the VS1053b codec.

Honestly, I find it really difficult to do without specific detailed documentation.

For example, what I would like to get is a software (application or plugin!?! I don't know, I would like to understand it) that acquires linear PCM samples but also does speech detection and generates an interrupt on a GPIO of the codec. Could I have some indications on which path is best to follow to get started?
VS1053b is meant more as a slave processor for a microcontroller than as a stand-alone IC. As you have correctly noted, although what you described is possible to implement on the VS1053b, we don't have a huge amount of support for developing your own software. We have significantly better support for VS1005 (and to a slightly lesser extend the VS1010), which are both systems-on-a-chip and intended to be programmed by the user.

That being said, you could use some of our VS1053b templates as a starting point and see if you could implement the function you want. For example, you could try the following in VSIDE:

1) Choose menu "File" -> "New" -> "Project/Solution".
2) In Solution tab, choose "Create new solution based on template:" with "VS1053 Solution", and name the solution, e.g. SpeechTest, then "Next".
3) In Project tab, choose "Project templ." -> "VS10X3 Delay", then "Ok".

You can no remove all delay-related code, then you will have a basic "audio in -> audio out" -type program. For how to switch GPIOs on and off, have a look at the SET_LED_x_ON / SET_LED_x_OFF macros in board.h.

I hope this helps you to get to a starting point.

Kind regards,
- Henrik
Good signatures never die. They just fade away.
lorenzo318
User
Posts: 17
Joined: Mon 2021-03-01 23:01

Re: VSIDE development for VS1053B

Post by lorenzo318 »

Hello Henrik,

first of all, thanks a lot for your appreciated answer.

I will try your suggestion, of course!

BR,
Lorenzo.
lorenzo318
User
Posts: 17
Joined: Mon 2021-03-01 23:01

Re: VSIDE development for VS1053B

Post by lorenzo318 »

Hi.

What about integration of library for opus or ogg vorbis?

Thanks
Lorenzo
lorenzo318
User
Posts: 17
Joined: Mon 2021-03-01 23:01

Re: VSIDE development for VS1053B

Post by lorenzo318 »

No answer please?

Tranks
Lorenzo
Hannu
Senior User
Posts: 264
Joined: Mon 2016-05-30 11:54

Re: VSIDE development for VS1053B

Post by Hannu »

I am not codec expert, but I'll take a look.

A small summary of the memory consumption on VS1005 decoder:
I: 5538 words; 22152 bytes code memory
X: 10084 words; 20168 bytes X data memory
Y: 0 words; 0 bytes Y data memory

There is no other VLSI chip than VS1005 with that amount of usable memory. Unless some really revolutionary short cut is invented, only VS1005 will run opus.
Hannu
Senior User
Posts: 264
Joined: Mon 2016-05-30 11:54

Re: VSIDE development for VS1053B

Post by Hannu »

Just an addition. Ogg vorbis is supported out of box on vs1053.

However I suggest to consider VS1005 or if AD isn't required, VS1010. Both are much easier to program, have more everything. And with VS1005, you get opus too :D

Those chips have really nice development cycle: write the code, reboot VS1010 or VS11005 to USB mass storage mode, start building and VSIDE can automatically copy the program to your device. Then safely remove, reboot the chip and from UART shell start the program. And with noisy UART on start it

After that experience, all other development flows feel hard and tedious.
Post Reply