Hi guys,
I've developed a PCB base on your 1005 evaluation board in order to made a product as per subject.
Now I'm facing with the firmware and I've some problems.
When I start using the eval board I was using an oldest version of kernel with SD as S: device; so any audio, software and whatever else was inside the SD. Now I've tried to move my kernel to a newest version 3.50, but I'm not able to configure SD as S: device.
So my first question: is the best way set SD as S: device and then load all from that or is better load kernel in an internal/external flash and use the SD just to store MP3 files?
Thanks for your help.
Patrick
MP3 Player / Recorder & Audio "Matrix"
Re: MP3 Player / Recorder & Audio "Matrix"
Definitely better to use the flash as S: and the SD card as D:. Because otherwise you cannot change the SD card when the unit is active. Running from SD card is good only for development purposes, and it was the only way to do development before I wrote the kernel USB handlers.
-Panu
-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo
Panu-Kristian Poiksalo
-
- User
- Posts: 14
- Joined: Mon 2018-03-19 11:02
Re: MP3 Player / Recorder & Audio "Matrix"
Hi Panu,
I've made "double" post, sorry for this, I've not see it on the list and I were thinking I've made some mistake.
Could you merge this with my other one?
So, effectively, what I want to do is a simple MP3 player based on my specific HW with audio matrix manager.
To explain better what I mean for "audio matrix" I have connected 3 different audio signal on the 3 line inputs and I want to decide which one needs to send out accordingly to my logic.
As I wrote in the other post I'm be able to use SD as S: if the only problem of this is the possibility to swap the SD that is definitely not a problem; the final device will be placed in a closed box a nobody will change the SD until problems or faults.
Considering that I've wrote the attached INIT.ap3, but it looks not loading the library properly and give me this error in the debug serial window: E'ParamSpl not found'.
Thanks
Patrick
I've made "double" post, sorry for this, I've not see it on the list and I were thinking I've made some mistake.
Could you merge this with my other one?
So, effectively, what I want to do is a simple MP3 player based on my specific HW with audio matrix manager.
To explain better what I mean for "audio matrix" I have connected 3 different audio signal on the 3 line inputs and I want to decide which one needs to send out accordingly to my logic.
As I wrote in the other post I'm be able to use SD as S: if the only problem of this is the possibility to swap the SD that is definitely not a problem; the final device will be placed in a closed box a nobody will change the SD until problems or faults.
Considering that I've wrote the attached INIT.ap3, but it looks not loading the library properly and give me this error in the debug serial window: E'ParamSpl not found'.
Thanks
Patrick
- Attachments
-
- AudioManager.zip
- (42.62 KiB) Downloaded 190 times
-
- User
- Posts: 14
- Joined: Mon 2018-03-19 11:02
Re: MP3 Player / Recorder & Audio "Matrix"
Additional information to my previous post.
Locking inside the kernel code I found that this message could be generated by this part of code:
Not sure if this is true or not because I call the LoadLibrary in this way:
Also looks the app doesn't enter in the if, it doesn't print any error string, so my supposition is that this library is loaded properly, maybe.
I attach also the SD file system to give you an idea.
Thanks
Patrick
Locking inside the kernel code I found that this message could be generated by this part of code:
Code: Select all
void *LoadLibraryP(char *filename, void *parameters) {
void *lib;
FILE *f;
char s[25];
if (kernelDebugLevel) {
fprintf(vo_stderr,"%s... ",filename);
}
if (filename[1] != ':') {
sprintf(s,"S:SYS/%s.DL3",filename);
f = fopen(s,"rb");
} else {
f = fopen(filename,"rb");
}
if (!f) {
//SysError(filename);
//SysError("noLibF");
[b]SysError("%s not found",filename);[/b]
return 0;
}
lib = LoadLibraryFile(f,parameters);
fclose(f);
if (!lib) {
SysError("lib");
return 0;
}
PERIP(ANA_CF1) |= ANA_CF1_BTNDIS; //Disable power button reset
//SysError("ok");
return lib;
}
Code: Select all
if(!(pui16_AuDecLib = LoadLibrary("audiodec"))) {
i_Result = S_ERROR;
printf("Error %d\n", S_ERROR);
goto Finally;
}//End if
I attach also the SD file system to give you an idea.
Thanks
Patrick
- Attachments
-
- SD.zip
- (23.82 KiB) Downloaded 175 times