Specifications
Sections:
Idx Name Size VMA LMA File off Algn
.
.
.
6 .isrs 000000c0 04000c00 04000c00 000000b4 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
.
.
.
9 .tightly_coupled_instruction_memory 00000000 04000000 04000000 00013778 2**0
CONTENTS
.
.
.
SYMBOL TABLE:
00000000 l d .entry 00000000
30000020 l d .exceptions 00000000
30000150 l d .text 00000000
30010e14 l d .rodata 00000000
30011788 l d .rwdata 00000000
30013624 l d .bss 00000000
04000c00 l d .isrs 00000000
00000020 l d .ext_flash 00000000
03200000 l d .epcs_controller 00000000
04000000 l d .tightly_coupled_instruction_memory 00000000
04004000 l d .tightly_coupled_data_memory 00000000
.
.
.
Excerpt from Linker.x
If you examine the linker script file, linker.x, you can see that linker.x places the new region isrs_region
in tightly-coupled instruction memory, adjacent to the tightly_coupled_instruction_memory region.
Example 4–4. Excerpt From linker.x
MEMORY
{
reset : ORIGIN = 0x0, LENGTH = 32
tightly_coupled_instruction_memory : ORIGIN = 0x4000000, LENGTH = 3072
isrs_region : ORIGIN = 0x4000c00, LENGTH = 1024
.
.
.
}
Changing the Default Linker Memory Region
The default Tcl script chooses the largest memory region connected to your Nios II processor as the
default region.
For more information about all default memory sections mapped to this default region, refer to the
previous chapter, "Creating a Custom Linker Section".
You can pass in a command-line option to the default Tcl script to override this default mapping. To map
all default sections to onchip_ram, type the following command:
nios2-bsp hal my_bsp --default_sections_mapping onchip_ramr
4-14
Excerpt from Linker.x
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools
Send Feedback