Board Memory Banks definitions

The board memory banks definitions tells the compiler what is the address of rom and ram. The linker uses this information to know where the program code and program data must be put in memory (ROM or RAM). The definitions is made in a file named memory.x. The memory.x file contains in general something like:

	MEMORY
	{
	   page0 (rwx) : ORIGIN = 0x0, LENGTH = 256

	   text  (rx)  : ORIGIN = 0x8000, LENGTH = 0x8000
		 
	   data        : ORIGIN = 0x1040, LENGTH = 0x8000-0x1040
	}
	PROVIDE (_stack = 0x8000 - 1);
   

The page0 definition should not be changed.

The text definition represents the memory area where the program code can be put.

The data definition represents the memory area for program data (initialized and uninitialized data).

The easiest way to adapt the examples for your board is probably to copy the m68hc11-32k directory to another directory and update the memory.x and optionally the make.defs file to define the characteristics of your board.