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.

Couldn't compiling ECG_NonBIOS.pjt programme on ccs v4 with using evm5515 and ads1x98ecg fe

Other Parts Discussed in Thread: ADS1298, TMS320C5515

Hi,

I want to compile ECG_NonBIOS.pjt programme on ccs v4 with using evm5515 and ads1x98ecg fe boards, but i couldn't. Firstly i connected to target succesfully and after i debugged the programme but I have taken the below massages on the console.

**** Build of configuration Debug for project ECG_NonBIOS ****

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../src/ADS1298Init.c'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5515 -g --define="_DEBUG" --define="C55X" --include_path="/package/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="/packages/ti/xdais" --include_path="/include" --preinclude="C:/Program Files/Texas Instruments/bios_5_41_02_14/packages/ti/bios/include/tistdtypes.h" --diag_warning=225 --large_memory_model --ptrdiff_size=32 --algebraic --memory_model=huge --preproc_with_compile --preproc_dependency="src/ADS1298Init.pp" "../src/ADS1298Init.c"
>> WARNING: version specified in option -v5515 is unknown (ignored)
>> ERROR: Huge memory model not supported for CPU revisions 1 or 2
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [ADS1298Init.obj] Error 1
'Building file: ../src/ADS1298_Pacer.c'
'Invoking: Compiler'

I have readed the build properties and include options issue, so i have changed the include settings.

When i opened the ECG_NonBIOS.h programme, i right clicked the "psp_common.h" programme it coulnd't open and error displayed.

I'm very glad for your help, regards.

  • Change the memory model selection to "large" in Properties->Runtime Model Options.
    Regards.
  • Depending on the version of the C55x compiler (not the same as the CCS version), the -v5515 option may not be supported. It appears you have such a version of the compiler. Instead of -v5515, try -vcpu:3.3. If that doesn't work, tell us the version of the compiler. You can determine this by running "cl55 -version" from the command line.
  • Hi Archaeologist,

    Thank you for your quick reply.

    The version of the compiler (tool version) at the below picture, is that true?

    Within the TMS320C5515 DSP board they sent me Code Composer Studio v4.1 CD (EVM Tools for C5515). How can i get the -vcpu:3.3?

    Or could you please sent me,

    Regards.

  • Ok i found the code generation tool version 3.3 from "software_dl.ti.com" web site and i selected it while importing project. But an error displays at the below picture it says "nothing to build for the project".

      

    And migration log,

    I couldn't understand what the problem is,

    Regards.

  • You do not want to downgrade the compiler version to 3.3.0; it is quite old. If possible, you should upgrade to 4.4.2 instead. However, 4.3.5 should work just fine. In the project options, you should find an option box which currently says C5515; you want to change that to "cpu:3.3" without the quotation marks.
  • Hi Archaeologist,

    I import file legacy because of the old version and migrate the project. (My compile version 4.3.5). I set some options.

    But 25 errors display,

    I'm glad for your helps,

    Regards.

  • When you imported the project, you lost the definition of variable C5500_CSL_CG_ROOT. Make sure this variable is defined correctly and try again, please.
  • Hi Archaeologist,

    Thank you for your reply. Your reply helps me and i finally get 1 error :) (This time i used ccsv5.3 and compiler version 4.4.1)

    But i still got some problems such as;

    it only says "could not open std.h file.

    Regards.

  • I think you still need to check the definition of C5500_CSL_CG_ROOT. Your screenshot shows that C5500_CG_ROOT is defined, but that's a different variable. In your last screenshot, notice the warnings about C5500_CSL_CG_ROOT. Also notice that one of the command-line arguments to the compiler is --include_path="/include", which is unlikely to be correct, and probably comes from the line ${C5500_CSL_CG_ROOT}/include in your include search path.
  • Thank you for your reply.

    I understood that it is all about the project location. My project is located on workspace,  actually i select "copy projects into workspace" selection.

    And i had to use lots of paths, because i still got errors.

    Finally i compile it, but there were lots of warnings.

    Am i still wrong on somewhere? How can i fix it?

    Regards.

  • Those are all minor warnings; if your program runs correctly, you don't have to deal with them. However, you might still want to clean them up. You could start with C5500_CSL_CG_ROOT, which is still unset. Unfortunately, I don't know what its value should be, nor how to set it in CCSv4. It should have been set up automatically when CSL was installed. You might want to start a new project and copy your source files to the new project.
  • Hi Archaeologist, thank you for your reply,

    I compilled and after i loaded the program of ECG_.NonBIOS.out. 

    But i couldn't get the right signal.

    It says "Can't find a source file at "C:\WorkTI\SW\MDK\ECG_ADS1298\PG2\C5515EVM". 

    Regards.

  • I'm sorry, I believe you are now beyond my knowledge. You'll probably need to start a new thread to get the attention of someone who knows more about how to use EVMs. As for the "Can't find a source file" error, I suspect that is just because CCS can't find the source file to display the code corresponding to the PC the EVM is halted at; it is a non-fatal error.