Microcontroller examples for VS1073, VS1063, VS1053, VS1003, VS1011

Writing software for systems that use VLSI Solution's devices as slave codecs to a host microcontroller.
User avatar
pasi
VLSI Staff
Posts: 2177
Joined: Thu 2010-07-15 16:04

Re: Microcontroller examples for VS1063, VS1053, VS1003, VS1011

Post by pasi »

The .plg file is standard C and can be #included in your .c file. Having vs1053b-patches-flac.plg in the same directory as your player1053.c should work most of the time.

You can import the whole file into your source file if nothing else works.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
btommo
User
Posts: 14
Joined: Tue 2019-05-21 11:41

Re: Microcontroller examples for VS1063, VS1053, VS1003, VS1011

Post by btommo »

Hi Pasi,

Thank you for your prompt reply, It's able to find the files now, I'm still having some issues with warning/errors that come up when building the project;

Code: Select all

CLEAN SUCCESSFUL (total time: 8ms)
make -f nbproject/Makefile-PIC18F46K22xc8.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/ben.thomas/Documents/Programs/VS1053AudioTestProgV1.00.X'
make  -f nbproject/Makefile-PIC18F46K22xc8.mk dist/PIC18F46K22xc8/production/VS1053AudioTestProgV1.00.X.production.hex
make[2]: Entering directory 'C:/Users/ben.thomas/Documents/Programs/VS1053AudioTestProgV1.00.X'
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=18F46K22 -c  -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_PIC18F46K22xc8=PIC18F46K22xc8  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits -mc90lib   -std=c90 -gdwarf-3 -mstack=compiled:auto:auto:auto     -o build/PIC18F46K22xc8/production/mcc_generated_files/pin_manager.p1 mcc_generated_files/pin_manager.c 
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=18F46K22 -c  -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_PIC18F46K22xc8=PIC18F46K22xc8  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits -mc90lib   -std=c90 -gdwarf-3 -mstack=compiled:auto:auto:auto     -o build/PIC18F46K22xc8/production/mcc_generated_files/mcc.p1 mcc_generated_files/mcc.c 
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=18F46K22 -c  -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_PIC18F46K22xc8=PIC18F46K22xc8  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits -mc90lib   -std=c90 -gdwarf-3 -mstack=compiled:auto:auto:auto     -o build/PIC18F46K22xc8/production/player1053.p1 player1053.c 
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=18F46K22 -c  -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_PIC18F46K22xc8=PIC18F46K22xc8  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits -mc90lib   -std=c90 -gdwarf-3 -mstack=compiled:auto:auto:auto     -o build/PIC18F46K22xc8/production/mcc_generated_files/device_config.p1 mcc_generated_files/device_config.c 
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=18F46K22 -c  -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_PIC18F46K22xc8=PIC18F46K22xc8  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits -mc90lib   -std=c90 -gdwarf-3 -mstack=compiled:auto:auto:auto     -o build/PIC18F46K22xc8/production/main.p1 main.c 
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=18F46K22 -c  -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_PIC18F46K22xc8=PIC18F46K22xc8  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits -mc90lib   -std=c90 -gdwarf-3 -mstack=compiled:auto:auto:auto     -o build/PIC18F46K22xc8/production/mcc_generated_files/tmr0.p1 mcc_generated_files/tmr0.c 
imafix.plg:43:22: warning: (111) redefining preprocessor macro "PLUGIN_SIZE" (vs1053b-patches-flac.plg: 1091)
player1053.c:199:22: warning: (373) implicit signed to unsigned conversion
player1053.c:202:11: warning: (373) implicit signed to unsigned conversion
player1053.c:219:13: warning: (373) implicit signed to unsigned conversion
player1053.c:275:26: error: (194) ")" expected
player1053.c:276:27: warning: (349) non-prototyped function declaration for "VS1053PlayFile"
player1053.c:276:27: error: (313) function body expected
player1053.c:281:37: error: (188) constant expression required
player1053.c:286:36: error: (188) constant expression required
player1053.c:292:14: warning: (371) missing basic type; int assumed
player1053.c:292:14: error: (984) type redeclared
player1053.c:292:14: error: (1098) conflicting declarations for variable "SaveUIState" (player1053.c:292)
(908) exit status = 1
nbproject/Makefile-PIC18F46K22xc8.mk:186: recipe for target 'build/PIC18F46K22xc8/production/player1053.p1' failed
make[2]: Leaving directory 'C:/Users/ben.thomas/Documents/Programs/VS1053AudioTestProgV1.00.X'
nbproject/Makefile-PIC18F46K22xc8.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/ben.thomas/Documents/Programs/VS1053AudioTestProgV1.00.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [build/PIC18F46K22xc8/production/player1053.p1] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 861ms)
Which are from the player1053.c and the imafix.plg files which haven't been altered yet.
User avatar
pasi
VLSI Staff
Posts: 2177
Joined: Thu 2010-07-15 16:04

Re: Microcontroller examples for VS1063, VS1053, VS1003, VS1011

Post by pasi »

You can't use both imafix and vs1053b-patches at the same time. In other words, you don't need imafix.plg . Remove that first and see what you get.

If you include more than one .plg file in your source, you have a name clash - the arrays are all named "plugin" (and multiple conflicting PLUGIN_SIZE definitions). you need to use the SKIP_PLUGIN_VARNAME define to include additions plugins as raw data.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
User avatar
Henrik
VLSI Staff
Posts: 1302
Joined: Tue 2010-06-22 14:10

Re: Microcontroller examples for VS1073, VS1063, VS1053, VS1003, VS1011

Post by Henrik »

Hello!

Our brand-new audio coprocessor, VS1073, has been added to the microcontroller examples.

The link to it is:
https://www.vlsi.fi/fileadmin/app_notes ... layrec.zip

The link to all the microcontroller examples is the same as before:
https://www.vlsi.fi/en/support/applicationnotes.html
Good signatures never die. They just fade away.
Post Reply