-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathw800sdk.conf
89 lines (76 loc) · 2.56 KB
/
w800sdk.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
########################################
# WinnerMicro W800 Configuration
########################################
##########################
# Firmware Configuration
##########################
#
# Flash Map:
# Bootloader[0x08000000-0x08010000]: 64 KB
# OTA_REGION[0x08010000-0x080D0000]: 768 KB
# IMG_REGION[0x080D0000-0x08200000]: Image Region, MAX 0x130000 Bytes
# - APP_IMG[0x080D0000-??????????]: App Code, Size: 1MB + 128KB (End: 0x081F0400)
# - USR_DAT[0x081F1000-0x081FB000]: User Data (Max Size: 40KB) (End: 0x081FB000)
# SYSTEM_DAT[0x081FB000-0x08200000]: System parameter defined in wm_internal_fls.c
#
CONFIG_W800_IMAGE_OTA_ADDR = 0x08010000
CONFIG_W800_IMAGE_HEADER_ADDR = 0x080D0000
CONFIG_W800_IMAGE_APP_ADDR = 0x080D0400
CONFIG_W800_IMAGE_APP_SIZE = 0x00120000
CONFIG_W800_IMAGE_USR_ADDR = 0x081F1000
CONFIG_W800_IMAGE_END_ADDR = 0x081FB000
# External P-SRAM Max Size
CONFIG_W800_EXT_PSRAM_SIZE = 0x00800000
#
# Firmware Security
#
# 固件类型
# 0x0:SECBOOT;
# 0x1:User Image
# 0xE:ft 测试程序
# 其它值:用户自定义
CONFIG_W800_IMAGE_TYPE = 1
# 固件签名
# 0:IMAGE 不包含签名部分;
# 1:IMAGE 包含 128bytes 签名
CONFIG_W800_IMAGE_SIGN = 1
# 固件签名所用RSA密钥对路径(为空则使用默认密钥)
CONFIG_W800_IMAGE_SIGN_PRIKEY_PATH = ""
CONFIG_W800_IMAGE_SIGN_PUBKEY_PATH = ""
# 固件加密
# 是否启用固件加密
CONFIG_W800_CODE_ENCRYPT = 1
# 芯片内置 8 组 RSA 私钥用于解密固件加密的秘钥,用户可任选一组使用,取值范围 0~7(目前只能选 0)
CONFIG_W800_PRIKEY_SEL = 0
# 固件加密的 key (16 字节 ascii 码值)
CONFIG_W800_CODE_ENCRYPT_KEY = "ffffffff62831853"
#########################
# Compile Configuration
#########################
CONFIG_W800_FIRMWARE_DEBUG = y
#####################
# Components Config
#####################
# 主任务栈大小(Bytes)
CONFIG_USER_MAIN_TASK_STACK_SIZE = 2048
# NIMBLE
MYNEWT_VAL_SYS_MEM_DYNAMIC = 0
MYNEWT_VAL_MSYS_1_BLOCK_COUNT = 24
# FreeRTOS
# =================
# 时间片频率(Hz)
FreeRTOS_configTICK_RATE_HZ = 500
# 栈最小大小(Word)
FreeRTOS_configMINIMAL_STACK_SIZE = 100
# 总内存池大小(KB)
FreeRTOS_configTOTAL_HEAP_SIZE = 100
# 信号量最大值
FreeRTOS_configSEMAPHORE_INIT_VALUE = 5
# 队列记录大小
FreeRTOS_configQUEUE_REGISTRY_SIZE = 0
# 定时器栈大小(Word)
FreeRTOS_configTIMER_TASK_STACK_DEPTH = 400
# 空闲钩子使能
FreeRTOS_configUSE_IDLE_HOOK = 1
# 时间片钩子使能
FreeRTOS_configUSE_TICK_HOOK = 0