新增:串口通讯避障功能
1、Launcher中的串口只使用串口0(调试串口)、串口2(主动RS485端口);串口1与串口3不使用,且不初始化。将串口通讯缓冲区修改为1100Byte。 目的:CH564由于将Launcher代码搬运到RAM中运行,因此可使用的变量大小只有32Kbyte。不使用的串口将不初始化,同时使用的通讯缓冲区将节约出来,否则RAM空间不够使用。 2、串口2 - 增加RS485使能,同时通讯增加避障功能。
This commit is contained in:
@@ -38,9 +38,9 @@ MEMORY
|
||||
RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 64K
|
||||
*/
|
||||
|
||||
FLASH (rx) : ORIGIN = 0x00000000 , LENGTH = 80K
|
||||
FLASH (rx) : ORIGIN = 0x20000000 , LENGTH = 32K
|
||||
FLASH1 (rx) : ORIGIN = 0x00014000 , LENGTH = 448K - 80K
|
||||
RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 64K
|
||||
RAM (xrw) : ORIGIN = 0x20008000 , LENGTH = 32K
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ SECTIONS
|
||||
|
||||
.vector :
|
||||
{
|
||||
*(.vector);
|
||||
KEEP(*(.vector));
|
||||
_endof_Vector = .;
|
||||
ASSERT(_endof_Vector < ORIGIN(FLASH1), "The vector must maintain in 0-wait zone");
|
||||
. = ALIGN(4);
|
||||
@@ -80,6 +80,7 @@ SECTIONS
|
||||
*(.rodata)
|
||||
*(.rodata*)
|
||||
*(.gnu.linkonce.t.*)
|
||||
*(.project_info)
|
||||
. = ALIGN(4);
|
||||
} >FLASH AT>FLASH
|
||||
|
||||
|
||||
Reference in New Issue
Block a user