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.

Interrupt Vector Warnings

Other Parts Discussed in Thread: MSP430G2553

I am using Code Composer Studio V5.  When I first compiled a program I would get warnings such as

 Interrupt vector "ADC10" does not have an interrupt handler routine.  

On some programs I get the warnings and some I don't.  I want the warnings to be on. Where do you turn this on and off? I have compared the ULP Advisor settings and they are the same for both programs.

  • Leo that tells me if I get the Interrupt vector warnings how to use a trap location to clear them.  My problem is some of my programs won't create the errors.  What I found after three days of working on the problem is the command file lnk_msp430g2553.cmd, when created by creating a new project using compiler 4.1.1, it creates a section in the file called " /* MSP430 INTERRUPT VECTORS       */".  After this section is the " .reset       : {}               > RESET  /* MSP430 RESET VECTOR         */".  In the older command files the .reset is  at the end of the SPECIFY THE SECTIONS ALLOCATION INTO MEMORY.  Even if you compile an older project with the new compiler it won't put the Interrupt Vector  Section  in the old cmd file, you have to copy that section from a new cmd file and paste it in the old one.  I am attaching two command files, one of an older version and a new one.  I had to rename the files .txt, it wouldn't let me upload a .cmd file.  It seems to me that the compiler should recognize this and add the MSP430 INTERRUPT VECTORS  section to the existing file.

    hx/__key/communityserver-discussions-components-files/166/2577.lnk_5F00_msp430g2553old.txt]

  • The interrupt vector warnings are a new compiler feature and only appear on newly created projects. You should be able to switch them off if you don't want them.
    They have been introduced together with the ULP advisor.

    MSPGCC was always filling unused interrupt vectors with the address of a RETI instruction since its first releases.

  • Where do you switch them off?  I have turned all of the ULP Advisor checks off and they still appear.

  • Donald Varela said:
    Where do you switch them off?  I have turned all of the ULP Advisor checks off and they still appear.

    The "warning #10374-D: Interrupt vector  <ID> does not have an interrupt handler routine" is produced by the linker, rather than ULP Advisor.

    To suppress them under CCS Project Properties -> CCS Build -> MSP430 Linker -> Advanced Options -> Diagnostics add 10374 to the "Suppress diagnostic <id> (--diag_suppress)" list.

  • Thanks that gets them to stop reporting.  My original problem was that they didn't report when using an older project.  The only way you can get them to report the unused vector is to use a .cmd file from a new project.  Your answer helped me if I want to suppress the warnings.

**Attention** This is a public forum