wm_param. c 定义了 flash_param 和 sram_param 两个全局变量, 数据都是来源于 flash, 为什么要在内存里保存两份变量?
查看更多
将 flash 中参数加载到 sram 内存中.
flash_param 和 sram_param 不都是在 sram 中吗? 为什么要加载两份?
发布 问题
分享 好友
手机 浏览
回到 顶部
默认并未同时加载两份呀?
最近放出来的 SDK 没有宏控制, 跟你们的版本不一样:
include string. h
include "wm_debug. h"
include "wm_efuse. h"
include "wm_flash. h"
include "wm_internal_flash. h"
include "wm_params. h"
include "wm_param. h"
include "wm_mem. h"
include "utils. h"
include "wm_flash_map. h"
static struct tls_param_flash flash_param;
static struct tls_sys_param sram_param;
struct tls_sys_param user_default_param;
static tls_os_sem_t *sys_param_lock = NULL;
static const u8 factory_default_hardware[8] = {'H', 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
u8 updp_mode; //upadate default parameters mode, 0: not updating or up finish; 1: updating
目前我看到是官网最新 SDK
wm_sdk_w800_20211203. rar
好的, 谢谢