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 V 4.2 changing the target

Other Parts Discussed in Thread: MSP430F2013

I have a quick question about code composer studio v 4.2

 

In IAR, if I want to change the target; I would right click on the project, then click on options, and change the target from  there. 

I wanna know how I can change the target in CCS v 4.2. 

During the set up of the environment, or workbench, one of the things a programmer would have to give the IDE would be the target name. Say I have given the target name, and after I have typed out my program, I want to change the target, without having to create another project, how do I do it?

 

  • In CCSv4, View->Target Configurations.  Then right click on the approriate .ccxml file (even make a new one if you need to) and Launch.  You will then have to Target->Connect Target

    This is the "manual" way of connecting to targets (sort of like CCS3.3 or IAR).

     

     

  • My recommendation would be to change the target MCU in Project Properties (under Code Composer Studio v4.2.1):

    Changing the target MCU in Project Properties will automatically load the corresponding Target configuration file (.ccxml) and the Linker Command File (.cmd), similar to IAR. 

    Hope that helps,
    Abhi

  • Thanks a lot Joe and Abhi!!!

  • Hi guys, is there a datasheet for CCS. Not the user guide, but a more extensive document. The user guide is more of a quick start.

    #include "msp430f2013.h"

    #include "stdio.h"

     

    void main ()

    {

    unsigned long i;

    P1DIR = 0x01; //set direction of pin 1.0 to output

    while (1)

    {

    P1OUT &=0x00;  //turn LED off

    for (i=0; i<=5000; i++)

    {

    }

    P1OUT ^=0x01;  //toggle

    }

    }

     

    I have this code in CCS v 4.2. When I have i assigned to 3000, i can get my LED to blink as I intended. But when i is 5000, the control doesn't pass the for loop. Why? I have i assigned as unsigned long. In theory this should work right? Optimization is 0 else even 3000 wouldnt work. 

    Please help me understand what the problem is.

  • What is the state of the Watchdog Timer? I bet it's still running in the background, timing out and resetting the processor. And from your observations, it seems that 3000 loops are not enough but 5000 loops are enough for it to reset.

    The following statement should do the trick:

    WDTCTL = WDTPW + WDTHOLD;             // Halt watchdog timer

    Also check out the Wiki page for CCS with lots of resources and links: http://processors.wiki.ti.com/index.php/CCSv4

    Regards,
    Abhi


  • Oh yes, your right, how could I forget the WDT!

    Thx Abhi!

**Attention** This is a public forum