본문 바로가기
임베디드소프트웨어

[ARM Cortex-M3] 프로세서 모드

by Go! Jake 2022. 5. 30.

Processor operating Mode:

- Thread mode: Application Software 수행하는 데 사용된다. reset에서 벗어날 때 processor는 Thread mode로 진입. Priviledged와 User (Unprivileged) code가 Thread mode에서 실행될 수 있다.
- Handler mode: Exception을 처리하는 데 사용됨. exception processing을 종료할 때 processor는 Thread mode로 돌아간다. 모든 code는 Handler mode에서는 privileged이다.

Operating states

- Thumb state: 정상 실행 상태이다. 16-bit 32-bit halfword aligned된 Thumb instructions이 수행된다.
- Debug State: debug 상태이다.

교재: ARM Cortex-M3 시스템 프로그래밍 완전정복 I

댓글