cancel
Showing results for 
Search instead for 
Did you mean: 

Cortex M7 Operating Modes

Lisha_Sweetha
Associate II

Hii,

 

In ARM cortex M7 Architecture, Two modes are there one is Thread Mode and Handler Mode. Here, What is my query is How to switch Thread mode to Handler Mode? What Instruction we have to write example, msr xpsr in Assembly?

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
Uwe Bonnes
Principal III

W/o any special setup, interrupts switch to handler mode and return from interrupt to thread mode.

View solution in original post

4 REPLIES 4
Uwe Bonnes
Principal III

W/o any special setup, interrupts switch to handler mode and return from interrupt to thread mode.

Yeah, Exceptions are specified as Handler mode.

You should definitely get a copy of Joseph Yiu's Definitive Guide to ARM Cortex-M3 and Cortex-M4 Processors:

 

AndrewNeil_1-1731064580627.png

https://shop.elsevier.com/books/the-definitive-guide-to-arm-cortex-m3-and-cortex-m4-processors/yiu/978-0-12-408082-9

Yiu himself says this has sufficient commonality with the M7 to be worthwhile:

https://community.arm.com/support-forums/f/architectures-and-processors-forum/6195/when-will-be-the-release-of-the-definitive-guide-to-cortex-m7/20288

See also:

https://community.st.com/t5/stm32-mcus-products/is-there-a-quot-definitive-guide-to-arm-cortex-m7-quot-book/m-p/336771

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.