There are two ways to generate a CMD file: one is hand writing, and the other is generated by the DSP/BIOS Configuration tool. CMD has many functions, but its most basic function is to describe and configure the bucket.
The following main functions of the CMD configuration routine are as follows:
1. The system consists of static on-chip RAM (isram, KB) and dynamic off-chip RAM (SDRAM, 32 MB). The starting address and length are...
2. Building a C project requires multiple segments. The section describes how to allocate these segments. It is certainly faster to put them in isram, but the project is too big to be put down. How can we weigh our own considerations.
3. Specify the System Heap and stack size.
-Heap 0x800000
-Stack 0x8000
Memory {
Isram: Origin = 0x0, Len = 0x40000
SDRAM: Origin = 0x80000000, Len = 0x2000000
}
Sections
{
. Vectors> isram
. Text> isram
. Satext> isram
. Wjpdata> isram
. Sadata> isram
. BSS> isram
. Cinit> isram
. Const> isram
. Far> isram
. Stack> isram
. CIO> SDRAM
. Switch> SDRAM
. Sysmem> SDRAM
. Wjpout> isram
}
The following sections (includingProgramStatic Data and dynamic data areas:
The segment where the vectors interrupt vector table is located;
. Text ProgramCodeSegment;
. Satext non-standard segment, where linear assembler code is placed;
. BSS non-initialization variable segment
. Cinit program initialization segments, often place some initialization values with initial variables that do not use const instructions.
. Const uses the variables and arrays declared by const
. Far cannot use the DP pointer, but must use the full address to access the variable's segment, which is related to the far keyword and compilation option.
. Stack System stack usage Section
The segment of the buffer used by input/output functions such as. CIO printf
Jump address table of the switch statement in the switch Program
. System Heap. This segment is used for dynamic memory development.
There are two ways to generate a CMD file: one is hand writing, and the other is generated by the DSP/BIOS Configuration tool. CMD has many functions, but its most basic function is to describe and configure the bucket.
The following main functions of the CMD configuration routine are as follows:
1. The system consists of static on-chip RAM (isram, KB) and dynamic off-chip RAM (SDRAM, 32 MB). The starting address and length are...
2. Building a C project requires multiple segments. The section describes how to allocate these segments. It is certainly faster to put them in isram, but the project is too big to be put down. How can we weigh our own considerations.
3. Specify the System Heap and stack size.
-Heap 0x800000
-Stack 0x8000
Memory {
Isram: Origin = 0x0, Len = 0x40000
SDRAM: Origin = 0x80000000, Len = 0x2000000
}
Sections
{
. Vectors> isram
. Text> isram
. Satext> isram
. Wjpdata> isram
. Sadata> isram
. BSS> isram
. Cinit> isram
. Const> isram
. Far> isram
. Stack> isram
. CIO> SDRAM
. Switch> SDRAM
. Sysmem> SDRAM
. Wjpout> isram
}
Note the following sections (including the program area, static data, and dynamic data area) as follows:
The segment where the vectors interrupt vector table is located;
The segment where the. Text program code is located;
. Satext non-standard segment, where linear assembler code is placed;
. BSS non-initialization variable segment
. Cinit program initialization segments, often place some initialization values with initial variables that do not use const instructions.
. Const uses the variables and arrays declared by const
. Far cannot use the DP pointer, but must use the full address to access the variable's segment, which is related to the far keyword and compilation option.
. Stack System stack usage Section
The segment of the buffer used by input/output functions such as. CIO printf
Jump address table of the switch statement in the switch Program
. System Heap. This segment is used for dynamic memory development.