Properties Window Screen Layout

The Configuration Tool 257 in Chapter 10. Version 1.3.net is used to graphically manipulate memory configurations. The other alternative is to edit the memory configuration files by hand. The mEmory Layout window is a graphical view of the memory configuration based on the currently selected hardware architecture, platform, and Startup Type configuration option. A horizontal bar that is divided into a number of blocks for each memory section represents the memory layout for a region. The name of the memory region is above the horizontal bar along with the address range covered by that region. For example, in Figure 11.4 we see the MLT’s graphical representation of the memory configuration for the Motorola PowerPC MBX860 plat- form with a ROM Startup Type. The Memory Layout window can be enabled or disabled by selecting View – Memory Layout from the menu bar or using the hot-key combination Alt+4. In version 1.3.net of the Configuration Tool, the memory layout tool bar can be used to modify memory configurations. This tool bar can be enabled or disabled by selecting View – Toolbars – Memory Layout from the menu bar. Right-clicking in the Memory Layout window allows you to view the properties of the selected region or section of memory.

11.2.1.9 Memory Layout Manipulation

There are default memory layouts provided for all supported platforms that do not need to be modified to begin developing using eCos. Modifying the memory layout is necessary when porting eCos to your own platform, which probably differs from any supported platform, or if memory is added to or removed from an evaluation board. Modifications can be made in the Memory Layout window or using the memory layout tool bar. The memory layout files for each platform are found under the include\pkgconf sub- directory within the HAL platform directory structure. Typically, each platform includes RAM and ROM memory layout files that are used by the Configuration Tool based on the Startup Type configuration option selection. Some platforms also contain ROMRAM memory layout files for applications that start in ROM but are copied to RAM for execution. For each Startup Type sup- ported by the platform, there are three different memory layout files. The first type of memory layout file contains a .h extension, which contains C macro def- initions of the memory region. The .ldi files are linker script files that define region and sec- tion locations. Finally, the .mlt files contain the description of the memory layout for use by the MLT. When editing the memory layout files by hand, only the .h and .ldi files need to be modified; the .mlt file is only used by the MLT. Figure 11.4 shows the Memory Layout window for the Motorola PowerPC MBX860 platform with a ROM Startup Type configuration option selected. There are two region names in this memory layout, ram and rom. We can see that the ram region includes the address range 0x0000_0000 to 0x003F_FFFF, and the rom region includes the address range 0xFE00_0000 to 0xFE7F_FFFF. The different memory sections, such as reserved_vectors in the ram region and text in the rom section, are shown in Figure 11.4. Within each memory section is a short description about that section, which might include the size, alignment, and whether the section