Skip to main content
Myasu.1
Associate III
June 1, 2022
Solved

PendSV interrupt does not occur

・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?

This topic has been closed for replies.
Myasu.1
Myasu.1Best answer
Associate III
June 1, 2022

sorry, this problem is soleved.

the above code is executed in SVC interrupt.

SVC interrupt is done , then PendSV interrupt occures.

1 reply

Myasu.1
Myasu.1AuthorBest answer
Associate III
June 1, 2022

sorry, this problem is soleved.

the above code is executed in SVC interrupt.

SVC interrupt is done , then PendSV interrupt occures.