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.

Building an executable from generated c code with CCS v5.2 for the beagleboard-xm DSP?!

Other Parts Discussed in Thread: OMAP3530

Hi there,

i need to run a matlab/simulink model on the beagleboards DSP, if its possible? I found out that there its possible to generate code from simulink models for the code composer studio and special for the beagleboard DSP.

I already setup a ubuntu linux distribution with TI DSPlink running on it. So how do i compile generated Code from matlab/simulink (or any other) for the beagleboard DSP with CCSv5.2? And is it possible to execute that code native on my ubuntu distribution?

Maybe someone has already done this before or have some good advice for me?

Greetings,

Janek Rathjen.

  • Janek,

    In principle any code generated with Matlab/Simulink can be loaded to a compatible core (C64x+ in your case), provided the memory information and the initialization of the core is performed correctly. 

    I am not sure if you have Ubuntu installed in your host PC or in your target. If Ubuntu is installed in your host PC and you want to simply load and run the code generated by Matlab/Simulink to the DSP of the OMAP3530, then this is possible and requires CCS and a JTAG emulator installed in your system.

    The CCSv5 Getting Started Guide and the section Advanced Topics will help you accomplish this:

    http://processors.wiki.ti.com/index.php/CCSv5_Getting_Started_Guide

    However, if you are running Ubuntu on the Cortex A8 core, installed and loaded the DSP/Link module to it, and created a Linux application that will load and run code on the DSP core of the OMAP3530, then you need to check the DSP/Link documentation on how exactly to do this.

    Also, a few links may help:

    http://processors.wiki.ti.com/index.php/Creating_CCS_Project_for_SysLink_samples

    http://processors.wiki.ti.com/index.php/Debugging_the_DSP_side_of_a_CE_application_using_CCS (older page, but the concepts still apply)

    http://processors.wiki.ti.com/index.php/Debugging_the_DSP_side_of_a_DSPLink_application_on_OMAP_using_CCS (older page, but the concepts still apply)

    Great help can also be obtained from the experts in the BIOS forum.

    Hope this helps,

    Rafael

  • First of all, thanks for your fast and detailed answer!

    You said its possible to compile generated code for the beagleboards DSP using the CCSv5? Because iam not able to compile Matlab/Simulink Generated Code in CCS at all. Is there any wiki or tutorial dealing with this issue? Iam able to generate c-code of my simulink model, but if i try to compile this code in CCS, there are like 100 different errors, even if i'am set up the include path from matlab. So I need to know how to compile the generated simulink code using CCS right.

    Greetings,

    Janek Rathjen.

  • Janek,

    What I said was that you can use CCSv5 to load code that was generated by Matlab/Simulink - instead of code I probably should have said a DSP executable (a file with .out extension).

    Unfortunately I haven't used Matlab for a long while now and really don't know what is required to build code that was auto-generated by it... Matlab used to interact directly with CCSv3.3, but over the years they started supporting Eclipse and, since CCSv5 is Eclipse-based, there is a good chance they have documentation for it (we don't, unfortunately).

    I found something at their page about the Embedded Coder, and there is even a link to an Eclipse tutorial that it may be worth investigating.

    http://www.mathworks.com/products/embedded-coder/index.html?s_cid=0909_webg_9b_ccslink_trans_268513

    Apart from that, I hope that other people with more up-to-date information may jump and provide additional suggestions.

    Hope this helps,

    Rafael