Professional Documents
Culture Documents
ESD - CS4 - Introduction To ARMv7M Architecture
ESD - CS4 - Introduction To ARMv7M Architecture
ESZG512/MELZG526/SEZG516
Embedded System Design
Contact Session 4
CS5 : (Introduction to ARMv7M Architecture)
Introduction to Cortex M4
Architecture
The setup of the MSP is necessary because some exceptions such as the NMI or
HardFault handler could potentially occur shortly after the reset, and the stack
memory and hence the MSP will then be needed to push some of the processor
status to the stack before exception handling.
Because the stack operations in the Cortex-M3 or Cortex-M4 processors are
based on full descending stack (SP decrement before store), the initial SP value
should be set to the first memory after the top of the stack region. For example,
if you have a stack memory range from 0x20007C00 to 0x20007FFF
(1Kbytes), the initial stack value should be set to 0x20008000
THANK YOU!!!!!