generated from hulk/gd32e23x_template_cmake_vscode
build: 调试阶段 APP 临时链接 0x08000000(VECT_TAB_OFFSET=0,脱离 bootloader 直接运行)
正式发布仍用 V1.0.2 tag 处的 0x08002000/54K Bootloader 布局打包(见 Release V1.0.2)
This commit is contained in:
@@ -12,7 +12,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
|
|||||||
/* Memories definition */
|
/* Memories definition */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08002000, LENGTH = 54K
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 54K
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
#define __HXTAL (HXTAL_VALUE) /* high speed crystal oscillator frequency */
|
#define __HXTAL (HXTAL_VALUE) /* high speed crystal oscillator frequency */
|
||||||
#define __SYS_OSC_CLK (__IRC8M) /* main oscillator frequency */
|
#define __SYS_OSC_CLK (__IRC8M) /* main oscillator frequency */
|
||||||
|
|
||||||
#define VECT_TAB_OFFSET (uint32_t)0x2000 /* vector table base offset */
|
#define VECT_TAB_OFFSET (uint32_t)0x00 /* vector table base offset */
|
||||||
|
|
||||||
/* select a system clock by uncommenting the following line */
|
/* select a system clock by uncommenting the following line */
|
||||||
//#define __SYSTEM_CLOCK_8M_HXTAL (__HXTAL)
|
//#define __SYSTEM_CLOCK_8M_HXTAL (__HXTAL)
|
||||||
|
|||||||
Reference in New Issue
Block a user