Firmware Detection of Control/Store Memory Size
Original Publication Date: 2002-Jun-08
Included in the Prior Art Database: 2003-Jun-19
A coding procedure is disclosed that dynamically detects memory size. This is different from the more commonly utilized method where memory size is obtained by reading values from a hardware device. First program the memory controller for the smallest supported size of memory. The second step of this procedure is to initialize memory. The preferred initialization pattern is where the address of each 32bit word is written into the similarily addressed memory location to ensure data uniqueness. For example, location 0xA0000004 is initialized with the value 0xA0000004. The third step is to program the memory controller to the next supported memory size. Now initialize the memory again as previously done, however, use the same size as the smallest supported.