From 032d18c0863f911ac91fca71a0231e6133cd14d3 Mon Sep 17 00:00:00 2001 From: yelvlab Date: Tue, 19 Aug 2025 23:33:06 +0800 Subject: [PATCH] change to gd32e230f8 --- Inc/board_config.h | 6 +++--- LD/gd32e23x_flash.ld | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Inc/board_config.h b/Inc/board_config.h index 47b3c6e..a341040 100644 --- a/Inc/board_config.h +++ b/Inc/board_config.h @@ -36,15 +36,15 @@ /******************************************************************************/ -#define RS485_RCU RCU_USART0 +#define RS485_RCU RCU_USART1 #define RS485_GPIO_RCU RCU_GPIOA #define RS485_GPIO_PORT GPIOA #define RS485_TX_PIN GPIO_PIN_2 #define RS485_RX_PIN GPIO_PIN_3 -#define RS485_PHY USART0 +#define RS485_PHY USART1 #define RS485_BAUDRATE 115200U #define RS485_EN_PIN GPIO_PIN_1 -#define RS485_IRQ USART0_IRQn +#define RS485_IRQ USART1_IRQn /******************************************************************************/ diff --git a/LD/gd32e23x_flash.ld b/LD/gd32e23x_flash.ld index 405de65..f48d452 100644 --- a/LD/gd32e23x_flash.ld +++ b/LD/gd32e23x_flash.ld @@ -12,8 +12,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ /* Memories definition */ MEMORY { - FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 16K - RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K + FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64K + RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K } /* Sections */