cancel
Showing results for 
Search instead for 
Did you mean: 

PendSV interrupt does not occur

Myasu.1
Senior

・environment

use board : STM32F1 Value Line Discovery Kit

use debugger : TrueStudio(v9.3.0)

・question

I would like to use PendSV interrupt.

To do so, I have executed the code below, but the interrupt does not occur.

SCB->ICSR |= SCB_ICSR_PENDSVSET_Msk;

※SCB_ICSR_PENDSVSET_Msk is (​1UL << 28)

The SCB when the following code is executed is shown below.

0693W00000Nr22iQAB.pngIn the initialization, the interrupt handler is set to the vector table. No other special processing is done.

Is there something missing in the procedure?

1 ACCEPTED SOLUTION

Accepted Solutions
Myasu.1
Senior

sorry, this problem is soleved.

the above code is executed in SVC interrupt.

SVC interrupt is done , then PendSV interrupt occures.

View solution in original post

1 REPLY 1
Myasu.1
Senior

sorry, this problem is soleved.

the above code is executed in SVC interrupt.

SVC interrupt is done , then PendSV interrupt occures.