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/MSP432P401R: Will the interrupt function return to the main() function after completion

Part Number: MSP432P401R
Other Parts Discussed in Thread: LM95071

Tool/software: Code Composer Studio

I'm using the the eUSCIB to communicate with LM95071 by SPI mode. While the main() function is implemented and and successfully entering the EUSCIB0_IRQHandler(), it won't return to the main() function.  In the EUSCIB0_IRQHandler() function I've commented all the commands except the interrupt flag clear. Could you help to check and instruct where I should set to let the interrupt function return to the main() function? Thank you!

  • One way to produce that symptom is using "Interrupt_enableSleepOnIsrExit()". If you are using that, remove it.

    Another way is to enable an interrupt condition but not clear it. (E.g. enabling the TXIE but your ISR only deals with RXIFG.)

  • Hi Bruce, thank you so much! Your provided method works!

    I do use Interrupt_enableSleepOnIsrExit(), so the processor goes to sleep after return from the interrupt function. Then it seems not return.

    I found that in debug mode and execute step by step, even with the command Interrupt_enableSleepOnIsrExit(), the processor won't go to sleep and can return from the interrupt function to the main() function.

    Thank you again!

**Attention** This is a public forum