diff --git a/LD/gd32e23x_flash.ld b/LD/gd32e23x_flash.ld index e122724..6d606aa 100644 --- a/LD/gd32e23x_flash.ld +++ b/LD/gd32e23x_flash.ld @@ -12,7 +12,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ /* Memories definition */ MEMORY { - FLASH (rx) : ORIGIN = 0x08002000, LENGTH = 54K + FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 54K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K } diff --git a/Src/system_gd32e23x.c b/Src/system_gd32e23x.c index 55726bf..480e817 100644 --- a/Src/system_gd32e23x.c +++ b/Src/system_gd32e23x.c @@ -41,7 +41,7 @@ #define __HXTAL (HXTAL_VALUE) /* high speed crystal 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 */ //#define __SYSTEM_CLOCK_8M_HXTAL (__HXTAL)