This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Static Creation of DSP/BIOS Objects without Configuration File

Hi,

We're looking at using code generated by MATLAB/Simulink/Real-time Workshop.

These tools can create a DSP/BIOS project but do not provide a way to customise the DSP/BIOS configuration file that they create. This is a bit of a restriction because MATLAB/Simulink/Real-time Workshop only provides access to a limited amount of DSP/BIOS functionality.

I can add custom code to a project created by the tools and in this custom code I could probably dynamically create DSP/BIOS objects using XXX_create but this seems like a bit of a waste given that I do not need dynamic behaviour.

I noticed that there is a semaphore initialisation function, SEM_new, and I've seen this used with a semaphore object that was created statically in C code, i.e. struct SEM_Obj mySem;.

Can something like this be done with other object types? I guess not but I wondered if anyone had any ideas.

Any thoughts about this or the use of MATLAB/Simulink/Real-time Workshop to generate DSP/BIOS projects greatly appreciated!

Thanks

Matt

  • BIOS5 does not provide XXX_new() calls across the board for all its different objects.  It seems like adding the code dynamically would be a good way to go, although I guess if you can generate runtime code, you *could* also generate configuration script code as well...

  • David Friedland said:
    BIOS5 does not provide XXX_new() calls across the board for all its different objects.

    Yeah, okay, never mind!

    David Friedland said:
    although I guess if you can generate runtime code, you *could* also generate configuration script code as well...

    Yeah, that's what I thought at first but as far as I can tell the .tcf file is generated by a closed process with that doesn't have any hooks or extensions i.e. it's not quite like the way the C is generated. I can create dynamic objects if I have to.

    Thanks,

    Matt