- 在DCU_APP项目中添加cpu_load.h和cpu_load.cpp模块用于CPU负载率监测 - 修改csolution配置将构建目标从Debug切换为Release - 在EtherCAT PDO协议栈中新增段5诊断区(632-639字节),包含负载率和序列号 - 在所有关键中断服务程序中添加CpuLoad::isrEnter()/isrExit()钩子用于准确统计中断占用 - 增强EtherCAT同步中断处理,改进AL事件掩码守护机制,修复OP状态下PDI中断门控问题 - 解决SSC源码中指针地址对齐警告和打包成员访问警告问题 - 在主循环中集成CPU负载率采样tick()调用,实现1秒滚动窗口统计 BREAKING CHANGE: 构建配置从Debug改为Release,EtherCAT协议栈增加新的诊断数据区
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
# A solution is a collection of related projects that share same base configuration.
|
|
solution:
|
|
created-for: CMSIS-Toolbox@2.12.0
|
|
cdefault: # use CMSIS-Toolbox default Compiler options
|
|
|
|
# Compilers that can be selected
|
|
select-compiler:
|
|
- compiler: AC6
|
|
- compiler: GCC
|
|
- compiler: IAR
|
|
- compiler: CLANG
|
|
|
|
# List of miscellaneous tool-specific controls
|
|
misc:
|
|
- for-compiler: AC6 # GDB requires DWARF 5, remove when using uVision Debugger
|
|
C-CPP:
|
|
- -gdwarf-5
|
|
ASM:
|
|
- -gdwarf-5
|
|
|
|
# List the packs that define the device and/or board.
|
|
packs:
|
|
- pack: GigaDevice::GD32E50x_DFP
|
|
- pack: ARM::CMSIS
|
|
|
|
# List different hardware targets that are used to deploy the solution.
|
|
target-types:
|
|
- type: GD32E508VE
|
|
device: GD32E508VE
|
|
target-set:
|
|
- set:
|
|
images:
|
|
- project-context: GD32E508_DCU_APP.Release
|
|
debugger:
|
|
name: ST-Link@pyOCD
|
|
clock: 4000000
|
|
protocol: swd
|
|
|
|
# List of different build configurations.
|
|
build-types:
|
|
- type: Debug
|
|
debug: on
|
|
optimize: none
|
|
|
|
- type: Release
|
|
debug: off
|
|
optimize: size
|
|
|
|
# List related projects.
|
|
projects:
|
|
- project: GD32E508_DCU_APP/GD32E508_DCU_APP.cproject.yml
|
|
compiler: AC6
|