__ramfunc 사용의 함수를 특정 섹션에 위치시키기

기술노트 82175

아키텍처:

ARM

컴포넌트:

linker

업데이트:

2018-02-28 오전 2:53

Introduction

This Technical Note sorts out an issue in version 5.xx of IAR Embedded Workbench for ARM.

Background

The issue is that the documentation is unclear on this topic.

Information

The __ramfunc functions are placed in the section .textrw
The placement can be done as in this example. In the .icf file do:

define symbol __RAM_func_start__  = 0x00200000;
define symbol __RAM_func_end__ = 0x00207FFF;
define region RAM_func_region = mem:[from __RAM_func_start__ to __RAM_func_end__];

define block RamCode {section .textrw};
place in RAM_func_region { block RamCode };
initialize by copy {readwrite};

Note that...

...this Technical Note do not apply to IAR Embedded Workbench ARM versions 5.10 and 5.11, where the IAR ILINK Linker worked in another way.

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

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