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.

CSS 5.2, please help with the beginnig

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

 Is there any possibility to simuate in CSS v5.2, I would like to write a code and then simulate it wihout connecting to DSP, just to check if the structure and the whole code is ok. Please tell mi how to do it ....

My processor is TMS320F2812 and really I dont know how to do it. Thanks a lot for help.

  • Jarek:

    One place to start is http://processors.wiki.ti.com/index.php/C2000

    Scroll down and look at the archived workshops - you will find one specific to the F2812.

    Also, if you can install ControlSuite, it also contains F2812 starter code.

    Do you have a particular platform you are working with? (TI kit, or specific target...)

     

  • Todd,

    I have a kit and DSP but in the lab. I would like to just write a code and compile it, to make sure that it's ok without connecting my laptop and v5.2 to kit with physical DSP. Is there a possibility to do it in my way ?? just write and compile to check if it's ok

    regards,

    Jarek

  • Jarek:

    Yes, you can. When you open CCS5, go to View--> Target Configurations

    Highlight "User Defined" and right-click. Then select New Configuration. A new window will pop up.

    Usually, I pick a name like F28x_sim.ccxml - Remember to Keep the .ccxml

    You can then pick "Texas Instruments Simulator" from the list of available emulators.

    Remember, this will NOT simulate any of the peripherals, only the core. Even though "F283x CPU Cycle Accurate Simulator" was the only choice, I took it, and saved away the configuration.

    Next, I highlighted the configuration in the Target Configurations, right-clicked again and highlighted "Link File to Project" - then selected my project.

    Now, when I build and load, it will pick the simulator.

    For some test code, I typed in

    void main(void)

    {

        int test=1;

        while(1)

        {

              if (test == 1)

            {

                   asm(" nop");

             }

        }

    }

     

    When I loaded and ran, I was able to see the simulator in action, and yes, I did get to the NOP.  Hopefully, that helps.