C++에서의 Cortex-M 인터럽트 벡터

기술노트 85872

아키텍처:

ARM

컴포넌트:

compiler

업데이트:

2018-02-28 오전 1:47

Introduction

This Technical Note describes how to create an interrupt vector completely in C++ for use with a Cortex-M device.

Example

Download and open the example project: C++ interrupt vector project for IAR Embedded Workbench for ARM 6.21.zip.

Description

In the example project, the file called "cstartup_M_cpp.cpp" contains the interrupt vector for Cortex-M written in C++.

The main difference between this file and <installation directory>\arm\src\lib\thumb\cstartup_M.c (interrupt vector written in C), is that the interrupt handlers are written and compiled as C++ code, and that the startup functions (__iar_program_start, __cmain) have C linkage.

The example project is debuggable in the Simulator, but should easily be built and debugged on a specific Cortex-M3 hardware device.


All product names are trademarks or registered trademarks of their respective owners.

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.