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 use ti-rtos? Step by step

Other Parts Discussed in Thread: CONTROLSUITE, SYSBIOS

I am using ccs6. I want to create new project for F28M35-M3 (I do not want to create project from example).  What I have to do?


1) File->New->CCS Project

I choosen Target, Project name... and choosen "Empty RTSC Project". Next... Choosen platform ti.platforms.concertoM3:F28M35H52C1 and clicked Finish.

2) File->New->Source File and create main.c

3) In the main.c made main function

void main()

{

for(;;);

}

4)File->New->CCS Project->RTSC Configuration File

5)????

What next? Where I can set up system clock (Clock sourse, PLL, ....)?

  • Hi,

    Did you go through this training material: www.ti.com/.../spruhu3d.pdf
    ?

    Regards,
    Gautam
  • Yes, I tried. But I don't understand how set up Clock Control in this project? How and where choose Clock Sources,  frequency of external crystal? Where is in this Empty project set up PLL? Where is startup_ccs.c with the vector table like ...\controlSUITE\device_support\f28m35x\v207\F28M35x_examples_Master\enet_uip\m3\startup_ccs.c?

  • Juvf,
    if you start from scratch the way you described, you end up with an empty CFG script. You can't really start configuring clock right away, you have to have to add a couple of modules first, and you also need to add a right linker command file. I think it's much easier if you start from an example and then delete most of what you automatically get in main.c and the CFG script. For example, if you choose the minimal SYS/BIOS project from the list of templates, you can edit the resulting main.c down to:

    #include <xdc/std.h>
    #include <ti/sysbios/BIOS.h>

    /*
    *  ======== main ========
    */

    Int main()
    {
       BIOS_start();    /* does not return */
       return(0);
    }

    This is a small enough file, but contains the basics of SYS/BIOS that you have to have in your C source. You have to invoke BIOS_start() to do anything with SYS/BIOS, and you have to have the included header files. Similarly for app.cfg, right click on it, open it with XDCscript Editor, and comment out everything except the following lines. I am recommending you to comment them out first, and then read the comments as the first quick guide what the instructions already in the script do. Then you can decide to either delete them or to uncomment them.

    var Defaults = xdc.useModule('xdc.runtime.Defaults');
    var BIOS = xdc.useModule('ti.sysbios.BIOS');

    This project builds without errors, but it doesn't do anything.
    Now to configure Clock, you'll need to use the module ti.catalog.arm.cortexm3.concertoInit.Boot. You get to it by right clicking on app.cfg and opening it with XGCONF. Click on Device Support, and then on Boot. Clock configuration is in the middle of that page. You can see changes made to app.cfg by switching from the SYS/BIOS tab to the cfgScript tab at the bottom of the page.

    This is just a short introduction. If you haven't already done so, please read Section "Timing Services" in SYS/BIOS User Guide, and http://processors.wiki.ti.com/index.php/Category:SYSBIOS, especially Section Training, and let me know if you have further questions.

  • Thank you for you replay.

    >Now to configure Clock

    Ok!

    Step 1

    >You get to it by right clicking on app.cfg and opening it with XGCONF.

    Ok!

    Step 2

    >Click on Device Support, and then on Boot.

    Where is button "Device Support"? I can not find such button or link.

    >you haven't already done so, please read Section "Timing Services" in SYS/BIOS User Guide, and http://processors.wiki.ti.com/index.php/Category:SYSBIOS

    I looked over Section "Timing Services" in SYS/BIOS User Guide and I did not find information about frequency of external oscillator and setting-up CPU clock.

    But I found at random these customizing.....  Double click on app.cfg. Next in Available Products window go to TI-RTOS->Products->SYSBIOS->BIOS. In editor click on link System Overview. Click on Boot module. Check Add Concerto M3 Boot managment to my configuration. The section Clock Configuration will be enable. Here you can set up input clock frequency and registers for tining clock (SPLLIMULT, SPLLFMULT, SYSBIVSEL, M3SSDIVSEL).

    The first thing, that have to do any programmer any processor - to adjust the system frequency. Too bad that there are no such manuals.
  • The registers and appropriate fields are documented in http://www.ti.com/lit/ds/symlink/f28m35h52c.pdf, Section 6.9.

    You can already found the page for the Clock configuration, but there should be "Device Support" on the first page when you open XGCONF. When I open XGCONF, this is the page I see, "Device Support" is circled.


  • Are you sure that this is the first page? You can see my first page in attach. Where is "Device support". I can open such page via TI-RTOS->Prodact->SYSBIOS->BIOS

  • I was using SYS/BIOS because I was describing a project based on a minimal SYS/BIOS, while your project is a TI-RTOS project, and that's the difference. You can get to the SYS/BIOS page by clicking on System Overview and then TI-RTOS Kernel.