Fujitsu F2MC-FR Series Application Note page 20

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

Advertisement

The following are the preconditions for the relocation discussed above for MB96340 Series:
1. The entire application including the interrupt vector is available in the Flash.
2. The space equivalent to the entire vector table or the required vectors is reserved in the
memory other than Flash. For ease of understanding, we would consider that space in
RAM would be reserved for the required vectors.
a. The below code indicates that space for relocated CAN0 vector is reserved at
RAM address 0x0003233C (vector number 48, offset from TBR = 0x33C) and
space for relocated UART0-RX vector is reserved at the RAM address
0x00032324 (vector number 54, offset from TBR = 0x324)
later the vector table is relocated to RAM starting from address 0x00032000.
/* 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
segment DATA=INTVECT2_CAN,locate=0x0003233C
__interrupt
void
#pragma
segment DATA=DATA
#pragma
segment DATA=INTVECT2_UART,locate=0x00032324
__interrupt
void
#pragma
segment DATA=DATA
3. The routine or the function which actually erases / programs the sector of the flash
should be available in the memory other than the Main Flash. For ease of understanding,
we would consider that the routine is mapped to RAM.
a. In order to achieve the above, section IRAM can be used (which is defined in the
standard project template 91460_template_91467d).
MCU-AN-300055-E-V10
INTERRUPTS
Chapter 3 Interrupt Recommendations and Examples
(C) Fujitsu Microelectronics Europe GmbH
(*CAN0_ptr)(void);
(*UART0_RX_ptr)(void);
Figure 3-1: IRAM Section Setting
- 20 -
© Fujitsu Microelectronics Europe GmbH
This is considering
.
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91460

Table of Contents