From cf6d3bc00fc9886bcfa29d27f7f50f553bca2289 Mon Sep 17 00:00:00 2001 From: ahu_gq <57164135+gq-hefei@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:08:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stm32fxxx_app/app/comm_manager.c | 3 +-- library/bsp/bsp_adbms1818.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/stm32fxxx_app/app/comm_manager.c b/app/stm32fxxx_app/app/comm_manager.c index aeba2d3..3a7b278 100644 --- a/app/stm32fxxx_app/app/comm_manager.c +++ b/app/stm32fxxx_app/app/comm_manager.c @@ -16,12 +16,11 @@ #include "bsp_hmi.h" #include "drv_w5500.h" #define APP_HMI_BUF_SIZE (1024 * 4) -uint8_t hmi_buf[4][APP_HMI_BUF_SIZE] __attribute__((section (".CCM_RAM"))); /************************************************ETH接口***************************************************/ static void w5500_rcv_call(uint8_t socket, uint8_t *buf, uint16_t len); -ModbusItem w5500_modbus_tcp_array[W5500_MODBUS_NUM]; +ModbusItem w5500_modbus_tcp_array[W5500_MODBUS_NUM] __attribute__((section (".ccmram"))); W5500_STATIC_INIT(w5500, kSpiDev_3, kGpioType_W5500Cs, w5500_rcv_call); uint8_t canID_devNumber = 0; diff --git a/library/bsp/bsp_adbms1818.c b/library/bsp/bsp_adbms1818.c index 83737f3..6aac68d 100644 --- a/library/bsp/bsp_adbms1818.c +++ b/library/bsp/bsp_adbms1818.c @@ -56,7 +56,7 @@ const uint8_t PRINT_PEC = DISABLED; //!< This is to ENABLED or DISABLED print register reads and the array lengths must be based on the number of ICs on the stack ******************************************************/ -cell_asic BMS_IC[TOTAL_IC]; //!< Global Battery Variable +cell_asic BMS_IC[TOTAL_IC] __attribute__((section (".ccmram"))); //!< Global Battery Variable /************************************************************************* Set configuration register. Refer to the data sheet