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.

CCS: CCS: I created a simulink model consist only of an input a unit delay and an output model and when i build it for ccs simulator ".out" file is not created.

Tool/software: Code Composer Studio

 I created a simulink model consist only of an input a unit delay and an output model and when i build it for ccs simulator ".out" file is not created.

  • Hi,

    The MathWorks code generation tools and workflow only creates C/C++ code. You would need to directly import that C/++ code into your own CCS project that you create; MathWorks does not create the project for you. This applies for C6000, and just about every other MCU/DSP for TI. In most cases, people have an existing project they are using, and can drop in the C Code of the algorithm from MathWorks tools into their CCS project and run with that project. if you don't have a project, you should be able to use an example project from CCS and work from there.

    The only exception to this is with R2017a and using MathWorks C2000 Support Package (which only works with C2000 devices). With this setup, we do create a CCS project (for CCSv5 and CCSv6). This is a special case, and only applies to this specific workflow. If you do have a C2000 CCS project, you can still grab and import the C code into that project like you normally would (you don't have to use the one we generate)

    -Brian
  • I directly import that C/++ code into my own CCS project that i create...

    then error has come.

    /*
     * File: Soumya1.c
     *
     * Code generated for Simulink model 'Soumya1'.
     *
     * Model version                  : 1.3
     * Simulink Coder version         : 8.8 (R2015a) 09-Feb-2015
     * C/C++ source code generated on : Thu May 18 12:57:19 2017
     *
     * Target selection: idelink_ert.tlc
     * Embedded hardware selection: Texas Instruments->C6000
     * Code generation objectives: Unspecified
     * Validation result: Not run
     */
    
    #include "Soumya1.h"
    #include "Soumya1_private.h"
    
    /* Real-time model */
    RT_MODEL_Soumya1_T Soumya1_M_;
    RT_MODEL_Soumya1_T *const Soumya1_M = &Soumya1_M_;
    
    /* Model step function */
    void Soumya1_step(void)
    {
      /* S-Function (c6713dsk_led): '<Root>/LED' */
      *(volatile uint8_T *)(0x90080000) = (unsigned char)(Soumya1_P.Constant_Value);
    }
    
    /* Model initialize function */
    void Soumya1_initialize(void)
    {
      /* Registration code */
    
      /* initialize error status */
      rtmSetErrorStatus(Soumya1_M, (NULL));
    }
    
    /* Model terminate function */
    void Soumya1_terminate(void)
    {
      /* (no terminate code required) */
    }
    
    /*
     * File trailer for generated code.
     *
     * [EOF]
     */
    

  • Hi,

    I don't see any obvious issues, but it is very hard to debug from 2 images. I would try and use an example CCS project that works and edit from there as opposed to starting a new one from scratch. It is unclear if this is a CCS import issue or MathWorks code gen issue. Please contact MathWorks Technical Support for assistance on the code generation aspects. 

    -Brian