EasyManuals Logo

ST STM32C0 Series Programming Manual

ST STM32C0 Series
262 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #43 background imageLoading...
Page #43 background image
PM0214 Rev 9 43/262
PM0214 The Cortex-M4 processor
261
stack frame is the same as that of Armv7-M implementations without an FPU. Figure 12 on
page 43 also shows this stack frame.
Figure 12. Cortex-M4 stack frame layout
Immediately after stacking, the stack pointer indicates the lowest address in the stack frame.
The alignment of the stack frame is controlled via the STKALIGN bit of the Configuration
Control Register (CCR).
The stack frame includes the return address. This is the address of the next instruction in
the interrupted program. This value is restored to the PC at exception return so that the
interrupted program resumes.
In parallel to the stacking operation, the processor performs a vector fetch that reads the
exception handler start address from the vector table. When stacking is complete, the
processor starts executing the exception handler. At the same time, the processor writes an
EXC_RETURN value to the LR. This indicates which stack pointer corresponds to the stack
frame and what operation mode the was processor was in before the entry occurred.
If no higher priority exception occurs during exception entry, the processor starts executing
the exception handler and automatically changes the status of the corresponding pending
interrupt to active.
If another higher priority exception occurs during exception entry, the processor starts
executing the exception handler for this exception and does not change the pending status
of the earlier exception. This is the late arrival case.
3UH,54WRSRIVWDFN
[365
3&
/5
5
5
5
5
5
^DOLJQHU`
,54WRSRIVWDFN
'HFUHDVLQJ
PHPRU\
DGGUHVV
[365
3&
/5
5
5
5
5
5
6
6
6
6
6
6
6
6
6
6
)36&5
6
6
6
6
6
6
^DOLJQHU`
,54WRSRIVWDFN

([FHSWLRQIUDPHZLWK
IORDWLQJSRLQWVWRUDJH
([FHSWLRQIUDPHZLWKRXW
IORDWLQJSRLQWVWRUDJH
3UH,54WRSRIVWDFN

-36

Table of Contents

Other manuals for ST STM32C0 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32C0 Series and is the answer not in the manual?

ST STM32C0 Series Specifications

General IconGeneral
BrandST
ModelSTM32C0 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals