Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

16.5.2.54. update_memory_region

Usage

update_memory_region <name> <slave_desc> <offset> <span>

Options

  • <name>: String with the name of the memory region to update.
  • <slave_desc>: String with the slave descriptor of the memory device for this region.
  • <offset>: String with the byte offset of the memory region from the memory device base address.
  • <span>: String with the span of the memory region in bytes.

Description

Updates an existing memory region for the linker script. This memory region must not overlap with any other memory region and must be within the memory range of the associated slave descriptor. The offset and span are decimal numbers unless prefixed with 0x.

Example

update_memory_region onchip_ram0 onchip_ram0 0 0x100000