Must Run C-code to Install Plugin?

Writing software that inputs and/or outputs audio and performs DSP algorithms such as filters, new codecs or audio effects.
Post Reply
bayviewboom
Senior User
Posts: 53
Joined: Wed 2019-11-27 9:49

Must Run C-code to Install Plugin?

Post by bayviewboom » Fri 2020-09-04 11:16

Chapter 12 in equalizer document provides C code to load a plugin.
http://www.vlsi.fi/fileadmin/software/V ... alizer.pdf

So, is executing code the ONLY way to install a plugin?

If i use the C code provided, then i'll need to create the WriteSci function, to work with my serial connection, correct? Does there exist any sample WriteSci code?

Is there any other way to load a plugin?

thx

Hannu
Senior User
Posts: 88
Joined: Mon 2016-05-30 11:54

Re: Must Run C-code to Install Plugin?

Post by Hannu » Fri 2020-09-04 13:03

plugin is uploaded through SCI interface accessing WRAM and WRAMADDR registers. The program in the plugin array is transferred to the memories of VS1053 and then executed.

So. If you connect your MCU with SPI to SCI (and SDI which isn't used for upload) interface and write the plugin to VS1053 it would work. I took a quick look at the Adafruit's VS1053 library in github and it provides SciWrite(Addr,data) and SciRead(addr) functions.

Also the plugin has to be loaded every time the after VS1053 resets.
And one trick to get the plugin data to fit inside Arduino AVR MCU is to use PROGMEM feature.

bayviewboom
Senior User
Posts: 53
Joined: Wed 2019-11-27 9:49

Re: Must Run C-code to Install Plugin?

Post by bayviewboom » Fri 2020-09-04 14:08


Post Reply