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.

How to run example projects or any code for eZdsp in code composer studio v6 under LINUX

Hi, 

Sorry if similar enquiries have appeared on the forum previously but I am having a lot of trouble getting started with the eZdspC5535 from Spectrum Digital. Here is some summary:

First and foremost: My Host computer has Linux, Debian wheezy to be precise. I do not have any intention to switch to windows or anything just to develop on this board. Having said that, this is my problem:

I purchased the development board, which came with a CD with only executables for Windows (completely useless for me). I went to the TI page and tried to download code composer studio version 4 but i could not find a binary or package to install on linux. Hence I had no choice but to download the latest version, ccsv6. It downloaded and installed correctly. However, I don't have any example projects to get started, not even to blink a led.
So what I am asking for is the following:
I want to be able to run some example projects on code composer studio, and be able to download them to RAM (and eventually to flash) on the eZdsp board, and It would be nice to have some library support to be able to expand to my own projects, such as MACRO register definitions for the processor, APIs for simple use of peripherals such as UART, I2S, etc, the usual thing.

Can someone help me with this? Is there a way i can get ccsv4 for debian and use the chip support library (and example projects) provided by spectrum digital, or example projects and chip support library that i can use in ccsv6?

Thank you very much in advance, 

Agustin

PS: Just in case someone mentions it, I already saw a similar post linking to a pdf file explaining how to update the DSP/BIOS on ccsv6 to be able to import the old chip support library, but it was useless again, because it pointed to a download page with a binary that cannot be executed on linux.

  • Hi Agustin,

    Did you try the "Test code" package from here?

    Lali

  • Hi Lali,

    The test codeyou are referring to contains example projects for Code composer studio version 4.2, I have ccsv6. Those projects cannot be imported into code composer studio version 6. When i Import them and I try to build it complains that there is something wrong with DSP/BIOS and...


    PS: Just in case someone mentions it, I already saw a similar post linking to a pdf file explaining how to update the DSP/BIOS on ccsv6 to be able to import the old chip support library, but it was useless again, because it pointed to a download page with a binary that cannot be executed on linux.
  • Hi Agustin,

    Yes, I understand that you would see some DSP/BIOS version errors. You will have to manually install the packages and resolve any version errors.

    DSP/BIOS releases

    Code gen tools

    Lali

  • Hi,

    I was able to download and install the DSP/BIOS v5.42. On code composer studio i tried first importing from the chip support library provided by spectrum digital the library project that all the examples depend on "cslVC5505", but when i tried to build it gives me the following error:

    gmake: *** No rule to make target `clean'.

    **** Build Finished ****
    Buildfile generation error occurred..
    This project was created using a version of DSP/BIOS tools that is not currently installed: 5.41.0.06. Please install the DSP/BIOS tools of this version, or migrate the project to one of the supported versions.
    Build stopped..

    How do I indicate to code composer studio that i have DSP/BIOS installed so that it tries to use whatever it needs from it to build the project?

    Thanks,
    Agustin
  • Agustin,

    Try to install the 5.41.0.06 package in your \ti\ folder, restart CCS and see if it picks up the rev that you install. You installed BIOS ver 5.42?

    Lali
  • Hi,

    I had installed into my /ti folder and restarted but no idea why it didn't take it. Now after having closed and opening again it said that it found the BIOS and prompted to install. I had installed both version 5.41 and 5.42, i tried making ccs installing both but it said there were incompatibilities and so i only installed BIOS 5.41 into code composer. But there were still problems:

    After installing I imported the chip support library again from the projects provided by spectrum digital, and this time it imported without error, but with some warning. The main about the compiler version, and the project being built with an older compiler that i had not installed (TI4.3 i think it was the version), so it suggested migrating the the current one TI4.4.1. I did, but then the project kept having some warnings. Some were still there about XDAIS (but the pdf said that was to be expected and not a problem) , but also some like:

    Conversion from integer to smaller pointer
    shift count is too large

    I ignored for a bit and tried to see if i could now build one of the example projects so I imported one of the projects (CSL_GPIO_InputPinExample), but got the following error:

    Building target: CSL_GPIO_InputPinExample.out
    Invoking: C5500 Linker
    "/home/bone/ti/TI_CGT_C5500_4.4.1/bin/cl55" -v5505 -g --define="_DEBUG" --diag_warning=225 --large_memory_model --algebraic --asm_source=algebraic -z -m"CSL_GPIO_InputPinExample.map" --warn_sections -i"/home/bone/ti/TI_CGT_C5500_4.4.1/lib" -i"/home/bone/ti/TI_CGT_C5500_4.4.1/include" -i"/home/bone/ti/bios_5_41_00_06/packages/ti/rtdx/lib/c5500" -i"/home/bone/ti/bios_5_41_00_06/packages/ti/bios/lib" -i"/home/bone/dsp-C5535/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/cslVC5505" -i"/home/bone/dsp-C5535/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/gpio/CSL_GPIO_InputPinExample" -i"/lib" --reread_libs --xml_link_info="CSL_GPIO_InputPinExample_linkInfo.xml" --rom_model -o "CSL_GPIO_InputPinExample.out" "./gpio_Input_Pin_Example.obj" "../VC5505.cmd" -l"Debug/cslVC5505.lib" -l"rts55x.lib" -l"rts55h.lib"
    <Linking>
    fatal error: file
    "/home/bone/dsp-C5535/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/cslVC5505/Deb
    ug/cslVC5505.lib<csl_gpio.obj>" has a Tag_Memory_Model attribute value of
    "1" that is different than one previously seen ("2"); combining incompatible
    files

    >> Compilation failure
    gmake: *** [CSL_GPIO_InputPinExample.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    here /home/bone/ti is installation path for code composer studio, and /home/bone/dsp-C5535/ezdsp5535_v1 is where the chip support library from spectrum digital is located.

    What do I change to get rid of this error? It doesn't seem correct to be trying to migrate everything and getting all this problems. Isn't there any easier way to get some examples running on the eZdsp?

    thank you very much in advance for your help
    Agustin
  • Agustin,

    Sorry for the trouble you are having in getting this going.
    For the Tag_memory_model attribute error that you are seeing,  please try to change the memory model by setting the Build Properties->Tool Setting->Runtime Model Options->Specify Memory Model to "small" instead of "large".

    A previous post on this issue:
    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/48121/170288#170288

    I will also check with some of my colleagues here to ensure that the procedures we are trying indeed are correct, and not trying something that fundamentally does not work in Linux. Thanks for your patience.

    Lali

  • Hi Lali, 

    Yes now i was able to build the project. I still have some doubts about how to make the project debug automatically on the board. Now i have to go to the target configurations, launch the eZdsp configuration manually, connect the target, wait until it gives an error about not finding code, and then manually going to run->Load->Load program, and select the *.out file in the project i want. It is a bit time consuming but for now is fine. I will mark your last answer as accepted. If i get stuck while reading the documentation i will open a new thread.

    Thanks for your help!

    Agustin

  • Hi Agustin,

    Fantastic! I'm glad that you got it working in your DebianWheezy environment.

    Lali