In my DSP/BIOS application I need to be able to create devices at runtime. But calling SIO_create on a dynamically created device causes the following error message:
SYS_error called: error id = 0x6
In my real application, this is always the case. However I also have a small example project (see attached file) in which the error occurs only under certain conditions. It is based on the audio example from the DDK, but with dynamically created devices. If you comment out the line
int i = 0;
in the function createStreams, everything works fine. But if you uncomment this line, the error occurs.
What I found out so far (in my real application where i included the sources of the device drivers to the project) is that the mdCreatChan functions of the underlying device never gets called when the error occurs. So the error really comes from SIO_create itself and not from the device. And since the code works under certain conditions, I assume that my code is not completely wrong.
I hope that someone from TI who has access to the sources can step through SIO_create to see whats going wrong. I really have no idea how to solve this.
Robert