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: Interrupt Issue.



Tool/software: Code Composer Studio

Hi,

The control  get to  this below message repeatedly,why?

This is the code that gets called when the processor receives an unexpected */
/* interrupt. This simply enters an infinite loop, preserving the system state */
/* for examination by a debugger.

Thanks&regards

praveen

  • praveen kumar55 said:
    The control  get to  this below message repeatedly,why?

    Based upon the comment, the program is entering the Default_Handler() function in the startup_msp432p401r_ccs.c source file. This is due to an (unexpected) interrupt being generated for which no user interrupt handler has been entered in the interruptVectors table.

    Can you describe your program, and is the program designed to handle one or more interrupts?

    When the program is halted in the IntDefaultHandler() function the lower 8 bits of the xPSR register give the interrupt vector number. Subtracting 16 from the interrupt vector number gives the IRQ number, and Table 6-39. NVIC Interrupts in the MSP432P401R datasheet identifies the source of the interrupt for each IRQ number.