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.

IMPORTING SIMULINK CODE TO CCS4

Hi everyone,

I´m a newbie with the ezdsp usb stick. I´m trying to match a C code generated by simulink into CCS4. Has anyone  more info about this? I´ve followed the link: http://www.mathworks.com/company/newsletters/digest/2006/jan/simdsp.html that is developed by the 5510 DSK, and i don´t understand clearly the POINTERS topic. Thanks for your replies.

  • Hi Nemanya,

    Poniter is a varible which contents the addresse of another varible. In C,

    int *intPtr

    int i

    intPtr is a pointer varible and i is a integer varible. When you do

    intPtr = &i

    It gives the address of  i to intPtr.

    Read/write to *intPtr is actually read/write to i.

    In the weblink, they want to use the external pointer to link subsystem to the external code. Of course you can use the external varible too.

     

    Ming  

  •  

    Hi Nemanya,

    The MathWorks tools currently don't suppor the newer C5505 processor out of the box; we are looking into it, and should have a support for generating code from MATLAB and Simulink for this processor. Once the basic code generation support is enabled for this processors, you'd be able to follow the same steps provided in the article you refer to.

    -Arvind

  • Thanks a lot for your replies, you are great.