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 the Example codes for MSP430?

Other Parts Discussed in Thread: MSP430F1611

Hi,

I am new to MSP430 and CCSv4 (had been using CCSv3.3 on DSP).

How do you use the example codes given at the website below?:

http://focus.ti.com/mcu/docs/mcuflashtools.tsp?sectionId=95&tabId=1538&familyId=342

There is not much instruction to read.

I am using CCSv4.  The sample codes did not come with project file.

It seems that I have to create my own project and add the sample c files into it.

I had problem when trying to compile with one of the UART files.

Compilation error at "#pragma vector=USART0RX_VECTOR"

                                        "USART0RX_VECTOR is undeclared."

How do I specify the interrupt vectors,etc. in CCSv4? .cmd?

A complete sample project would really help.

Appreciate if someone is kind to provide that.

(CCS v3.3 examples always comes as a project).

Thank you.

 

MSP430 Newbie

 

  • The vector you use is for the USART (and therefore the demo I guess). Newer MSPs have an USCI module. Different handling, different vector names.
    You didn' t state the MSP you're working with (or want to compile for).

    Usually, the examples are only usable on the exact MSP they were written for. sing them on other MSPs often requires changes (pin mapping) or sometimes major code changes if specifics are used without explicitely telling (e.g. signals shared on one pin which are on different pins for other MSPs).

  •  

      Hi Jens-Michael,

      I am using MSP430F1611.

      I managed to compile the project, if I mask off the Interrupt Service Routine (for serial read).

      The project ran properly with button, LED and serial send.

      Now, I realized that I do not have the following file.

            #include <io430x16x.h>

       Where can I get this file?

       I will try to look at the detail register settings as well.

       Thank you for your advice.

     

     

  • "IOxxx" and "MSPxxx" are basically the same file(s). The difference is that one set belongs to one compiler and the other set belongs to another one. However, I think the naming has been unified during recend version updates.

    if you have MSP30x16x.h in your toolchain, use it instead.

**Attention** This is a public forum