Skip to content

Commit 909c76f

Browse files
TomoYamanaka0xc0170
authored andcommitted
In IAR compile, change the sequence of the ROM section. (#1722)
we changed the sequence of ROM section to "<ro code> <ro data>" when compiled with the IAR. When the ROM area is large, PC could not jump properly in the program area. The other development environment of this sequence ("ro code, ro data").
1 parent 1d1f7ab commit 909c76f

File tree

1 file changed

+3
-2
lines changed
  • libraries/mbed/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR

1 file changed

+3
-2
lines changed

libraries/mbed/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/MBRZA1H.icf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ define region RetRAM_region = mem:[from __ICFEDIT_region_RetRAM_start__
3838
define region MirrorRAM_region = mem:[from __ICFEDIT_region_MirrorRAM_start__ to __ICFEDIT_region_MirrorRAM_end__];
3939
define region MirrorRetRAM_region = mem:[from __ICFEDIT_region_MirrorRetRAM_start__ to __ICFEDIT_region_MirrorRetRAM_end__];
4040

41+
define block ROM_FIXED_ORDER with fixed order { ro code, ro data };
4142
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
4243
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
4344
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
@@ -48,11 +49,11 @@ define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
4849

4950
initialize by copy { readwrite };
5051
do not initialize { section .noinit };
51-
do not initialize { section MMU_TT };
52+
do not initialize { section .retram };
5253

5354
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
5455

55-
place in ROM_region { readonly };
56+
place in ROM_region { readonly, block ROM_FIXED_ORDER };
5657
place in RAM_region { readwrite,
5758
block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
5859
block UND_STACK, block ABT_STACK, block HEAP };

0 commit comments

Comments
 (0)