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.

Memory configuration & Include directories - How does it know?

CCS4.1.13.00038, DSP/BIOS 6

1) I  created a new CCS project, with a new RTS Configuration Project, used the Hello World template, deleted hello.c and copied a file that defines an empty main() function.  After I build the project and look at the map file I see memory configuration for IROM, IRAM, L3_CBA_RAM, and DDR.  But, I do not see any addresses in the CFG file and I have not set up any memory.  How does it know?

2) Similar to 1), except I did not use the Hello World template.  The main.c file includes <xdc/std.h> and <xdc/runtime/System.h>.  When I try to build this project I get  'could not open source file "xdc/std.h"'.  The main.c file is the same as in 1) above.  I do not see what is different about 1) that finds <xdc/std.h>.  How does it know? 

  • Kurt Jensen said:

    CCS4.1.13.00038, DSP/BIOS 6

    1) I  created a new CCS project, with a new RTS Configuration Project, used the Hello World template, deleted hello.c and copied a file that defines an empty main() function.  After I build the project and look at the map file I see memory configuration for IROM, IRAM, L3_CBA_RAM, and DDR.  But, I do not see any addresses in the CFG file and I have not set up any memory.  How does it know?

    The memory map is specified in the RTSC platform that you have selected for your project. Note that this is a departure from what was done in BIOS5 where memory is specified in the configuration script itself. The platform is a RTSC package eg. ti.platforms.evmDA830 - which is specified in the pull down combo box titled RTSC Platform: in the RTSC Configuration Settings page of the new project wizard. You may also want to review the quickstart page for more background on RTSC and CCS4.  To define your own memory map, you may want to modify a existing platform using the platform wizard. You can take a look at this flash demo for more details.

     

    Kurt Jensen said:

    2) Similar to 1), except I did not use the Hello World template.  The main.c file includes <xdc/std.h> and <xdc/runtime/System.h>.  When I try to build this project I get  'could not open source file "xdc/std.h"'.  The main.c file is the same as in 1) above.  I do not see what is different about 1) that finds <xdc/std.h>.  How does it know? 

    You are getting the build error since you are not referring to an existing RTSC configuration project in your application project.

    A bit of background..

    The RTSC configuration project specifies details of the  target content (eg. BIOS6, PSP drivers, etc..) required by your application . This information is provided in  a RTSC confiiguration script (*.cfg) that specifies the software modules required by your application. The configuration script also allows you to tune  the modules for your application requirements.

    In order to consume RTSC content  you need to refer to a RTSC configuration project in your application project. The RTSC configuration project provides build artifacts that are required to build your application project. You are getting the compile errors because the build artifacts that define include paths are not available to your application project.

    Note that you can share one RTSC configuration among multiple application projects. Typically, you would want to create a RTSC configuration project containing one of the templates shipped with BIOS6 and then refer to them in your application project(s).

    You can refer to a RTSC configuration project in two ways:

    (a) If you are creating an application project from scratch then in the Referenced RTSC Configuration page of  the new project wizard you can select "Reference an existing RTSC Configuration project" radio button and then select an existing  RTSC configuration project. 

    (b) If you have an existing application project and want to add RTSC capabilities to it  you can refer to a RTSC configuration project in the following manner - right click on your project in the "C/C++  Projects" view and then select Build Properties -> CCS Build -> Dependencies. Click on the "Add" button and select an existing RTSC configuration project.

    Regards

    Amit

     

     

  • That answers my questions and some I had not yet formulated.  I really appreciate the background information.  Thank You!

    I followed the wizard to create a custom RTSC platform.  Can I edit this platform after it is created?