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.

MSP430FR2355: #pragma vector location

Part Number: MSP430FR2355


Tool/software:

In Code Composer I am trying to locate where the possible interrupt vectors are located. I have code that works fine, I was just curious to poke around and I tied to do a search for:

#pragma vector=PORT2_VECTOR.

My code works, but I cannot find in Code Composer where is the Text "PORT2_VECTOR" located?

or another example is

"#pragma vector=USCI_B0_VECTOR"

where is the Text  "USCI_B0_VECTOR" located?

  • Hi Jim,

    Try looking in the device's .h file. msp430fr2355.h

  • Adresses of various things including vectors were moved to the linker scripts a long time ago. For example from msp430fr2355.ld:

      VECT43           : ORIGIN = 0xFFF8, LENGTH = 0x0002
      VECT44           : ORIGIN = 0xFFFA, LENGTH = 0x0002
      VECT45           : ORIGIN = 0xFFFC, LENGTH = 0x0002
      RESETVEC         : ORIGIN = 0xFFFE, LENGTH = 0x0002
    
    
    
     
    

    Structured that way because each vector gets its very own two byte section.

    Or you could just look at the device data sheet. Which has a table full of vector addresses.

  • I had tried to find the .h file. Code Composer is not friendly in such quests. I have found what I was looking for. It would have been better if in Code Composer the search find the info and display it from the .h file.

  • While it is cranky sometimes, generally if you go to the '#include' command and right click on the file name, it gives you the choice to "goto" various options like "declaration". If the indexing and stars are right, and you sacrifice a goat,  it will open the include file and go right there

**Attention** This is a public forum