feat(app): 使用传感器驱动重构电池和模式切换模块
- 将电池模块从ADC直接采样改为使用sensor子系统,通过battery_sense传感器获取电压 - 将模式切换模块从ADC采样改为使用mode_sense传感器获取模式电压 - 移除GPIO控制的电池使能脚,改用传感器的PM管理机制 - 更新DTS配置,移除大量设备状态设置,添加boot-mode保留内存支持 perf(pm): 调整分区大小以支持单应用引导模式 - 将mcuboot分区从0xc000扩大到0x100,为单应用模式提供更大空间 - 相应调整app分区地址布局,确保内存分配合理 - 移除secondary镜像相关配置,优化flash使用 refactor(boot): 添加MCUBOOT单应用模式配置 - 在sysbuild中启用单应用模式支持 - 为引导加载程序添加保留内存和启动模式配置 - 配置CDC ACM串口用于引导模式通信
This commit is contained in:
@@ -1,37 +1,31 @@
|
||||
mcuboot:
|
||||
address: 0x0
|
||||
end_address: 0xc000
|
||||
end_address: 0x10000
|
||||
region: flash_primary
|
||||
size: 0xc000
|
||||
size: 0x10000
|
||||
|
||||
mcuboot_pad:
|
||||
address: 0xc000
|
||||
end_address: 0xc200
|
||||
address: 0x10000
|
||||
end_address: 0x10200
|
||||
region: flash_primary
|
||||
size: 0x200
|
||||
|
||||
app:
|
||||
address: 0xc200
|
||||
end_address: 0x82000
|
||||
address: 0x10200
|
||||
end_address: 0xf8000
|
||||
region: flash_primary
|
||||
size: 0x75e00
|
||||
size: 0xe7e00
|
||||
|
||||
mcuboot_primary:
|
||||
address: 0xc000
|
||||
end_address: 0x82000
|
||||
address: 0x10000
|
||||
end_address: 0xf8000
|
||||
orig_span: &id001
|
||||
- mcuboot_pad
|
||||
- app
|
||||
region: flash_primary
|
||||
size: 0x76000
|
||||
size: 0xe8000
|
||||
span: *id001
|
||||
|
||||
mcuboot_secondary:
|
||||
address: 0x82000
|
||||
end_address: 0xf8000
|
||||
region: flash_primary
|
||||
size: 0x76000
|
||||
|
||||
settings_storage:
|
||||
address: 0xf8000
|
||||
end_address: 0x100000
|
||||
|
||||
Reference in New Issue
Block a user