Everything
19.15 Variable-sized Memory Pool Information (variable_memorypool[])
Here, each variable-sized memory pool is defined.
Format
Parentheses < >show the user input part.
1 ) ID number
- Description
Define the variable-sized memory pool ID number.
- Definition format
Numeric value
- Definition range
From 1 to 255
- When omitting
The cfg600 assigns the ID number automatically.
- Note
The ID numbers must be assigned without an omission beginning with 1. Therefore, when specifying an ID number, be sure that the specified value is equal to or less than the number of objects defined.
2 ) ID name (name)
- Description
Define the ID name. The specified ID name is output to the system information header file (kernel_id.h) in the form of the following.
 #define   <ID name>   <ID number>
- Definition format
Symbol
- Definition range
-
- When omitting
Cannot be omitted.
3 ) The size of the variable-sized memory pool (heap_size)
- Description
Define the size of the variable-sized memory pool area in bytes.
- Definition format
Numeric value
- Definition range
From 24 to 0x10000000
- When omitting
The set value in the default system configuration file (factory setting: 1024) applied.
4 ) Upper limit of the variable-sized memory block (max_memsize)
- Description
Define the upper limit of an acquirable memory block size in bytes.
- Definition format
Numeric value
- Definition range
From 1 to 0xBFFFFF4
- When omitting
The set value in the default system configuration file (factory setting: 36) applied.
- Note
Refer to "7.3.2 Size of Variable-sized memory block" for the size of the variable-sized memory blocks.
5 ) Section name assigned to the memory pool area (mpl_section)
- Description
Define the section name to be assigned to the variable-sized memory pool area.
The cfg600 generates the variable-sized memory pool area with the size specified by heap_size to the section specified by mpl_section. The section attribute is "DATA", and the alignment number is 4.
When linking, be sure to locate this section in the RAM area. Note, this section must not be located to address 0.
- Definition format
Symbol
- Definition range
-
- When omitting
The set value in the default system configuration file (factory setting: BRI_HEAP) applied.