feat(cproject): 移除CAN DMA相关代码并优化编译配置

- 移除了CAN模块中的DMA相关代码,包括can_dma_init函数、
  DMA中断处理函数以及相关的全局变量和头文件包含

- 更新了项目构建配置,将优化级别从balanced改为size以减小
  固件体积

- 添加了-fno-exceptions和-fno-rtti编译选项以进一步优化代码

- 升级了GD32C10x_DFP包版本至1.5.0

- 调整了OTA跳转逻辑,增加了更安全的中断和外设关闭处理

- 修复了Flash写入时的重复包处理逻辑,增加错误标志清理机制

- 将AES加密算法中的gf_mul函数标记为noinline属性
This commit is contained in:
cbb
2026-07-26 23:08:02 +08:00
parent c357a8af6f
commit 05069e3057
58 changed files with 1332 additions and 4191 deletions
@@ -1,5 +1,5 @@
build:
generated-by: csolution version 2.13.0+p3-g40b6564e
generated-by: csolution version 2.13.0
solution: ../../../../Robot_V2.csolution.yml
project: ../../../../Robot_V2/Robot_V2.cproject.yml
context: Robot_V2.Release+GD32C103CB
@@ -15,7 +15,7 @@ build:
path: ${CMSIS_PACK_ROOT}/ARM/CMSIS/4.5.0
- pack: GigaDevice::GD32C10x_DFP@1.5.0
path: ${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.5.0
optimize: balanced
optimize: size
debug: off
misc:
ASM:
@@ -27,6 +27,8 @@ build:
- -D__packed=packed
- -fshort-enums
- -fshort-wchar
- -fno-exceptions
- -fno-rtti
- -D__MICROLIB
- -Wno-register
- -gdwarf-5
@@ -38,6 +40,8 @@ build:
CPP:
- -fshort-enums
- -fshort-wchar
- -fno-exceptions
- -fno-rtti
- -D__MICROLIB
- -Wno-register
- -gdwarf-5
@@ -156,21 +160,6 @@ build:
base: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dbg.c.base@1.0.0
update: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dbg.c.update@1.3.0
status: update recommended
- component: GigaDevice::Device:GD32C10x_StdPeripherals:DMA@1.3.0
condition: GD32C10x STDPERIPHERALS RCU
from-pack: GigaDevice::GD32C10x_DFP@1.5.0
selected-by: Device:GD32C10x_StdPeripherals:DMA
files:
- file: ${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.5.0/Device/Firmware/Peripherals/inc/gd32c10x_dma.h
category: header
version: 1.3.0
- file: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dma.c
category: source
attr: config
version: 1.3.0
base: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dma.c.base@1.0.0
update: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dma.c.update@1.3.0
status: update recommended
- component: GigaDevice::Device:GD32C10x_StdPeripherals:EXTI@1.3.0
condition: GD32C10x STDPERIPHERALS RCU
from-pack: GigaDevice::GD32C10x_DFP@1.5.0
@@ -201,21 +190,6 @@ build:
base: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fmc.c.base@1.0.0
update: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fmc.c.update@1.3.0
status: update recommended
- component: GigaDevice::Device:GD32C10x_StdPeripherals:FWDGT@1.3.0
condition: GD32C10x STDPERIPHERALS RCU
from-pack: GigaDevice::GD32C10x_DFP@1.5.0
selected-by: Device:GD32C10x_StdPeripherals:FWDGT
files:
- file: ${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.5.0/Device/Firmware/Peripherals/inc/gd32c10x_fwdgt.h
category: header
version: 1.3.0
- file: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fwdgt.c
category: source
attr: config
version: 1.3.0
base: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fwdgt.c.base@1.0.0
update: ../../../../Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fwdgt.c.update@1.3.0
status: update recommended
- component: GigaDevice::Device:GD32C10x_StdPeripherals:GPIO@1.3.0
condition: GD32C10x STDPERIPHERALS RCU
from-pack: GigaDevice::GD32C10x_DFP@1.5.0
@@ -377,10 +351,8 @@ build:
- component: GigaDevice::Device:GD32C10x_StdPeripherals:CAN@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:CRC@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:DBG@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:DMA@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:EXTI@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:FMC@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:FWDGT@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:GPIO@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:MISC@1.3.0
- component: GigaDevice::Device:GD32C10x_StdPeripherals:PMU@1.3.0