Fujitsu F2MC-FR Series Application Note page 21

32-bit microcontroller
Hide thumbs Also See for F2MC-FR Series:
Table of Contents

Advertisement

The above dialog box can be reached as mentioned below...
Project -> Setup Project -> Linker -> Disposition Connection -> Set Section
b. In order to copy the section from Flash to RAM, I_RAM define in the
Start91460.asm should be set to ON.
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES.
/*
/*---------------------------------------------------------------------------*/
;===============================================================================
; 4.4
Copy code from Flash to I-RAM
;===============================================================================
;
#set
I_RAM
;
c. In order to link the function EraseSector() to RAM, the #pragma section
directive needs to be used as follows:
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES.
/*
/*---------------------------------------------------------------------------*/
#pragma
section CODE=IRAM
unsigned char
EraseSector
{
. . .
}
© Fujitsu Microelectronics Europe GmbH
INTERRUPTS
Chapter 3 Interrupt Recommendations and Examples
Figure 3-2: @IRAM Section Setting
(C) Fujitsu Microelectronics Europe GmbH
ON
; <<< select
should be copied
(C) Fujitsu Microelectronics Europe GmbH
(int
sec_num);
- 21 -
if
code
in
section IRAM
MCU-AN-300055-E-V10
*/
*/
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91460

Table of Contents