nrf5340之pm_static.yml文件分析

pm_static.yml文件内容举例:

app:
  address: 0xc200  
  region: flash_primary
  size: 0xE8E00
external_flash:
  address: 0
  region: external_flash
  size: 0xF17000 
mcuboot:
  address: 0x0  
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  size: 0x200
mcuboot_primary:
  address: 0xc000
  orig_span: &id001  
  - mcuboot_pad
  - app
  region: flash_primary
  size: 0xE9000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  orig_span: &id002
  - app
  region: flash_primary
  size: 0xE8E00
  span: *id002
mcuboot_secondary:
  address: 0xF17000
  device: MX25R64
  region: external_flash
  size: 0xE9000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
pcd_sram:
  address: 0x2007e000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x2000
sram_primary:
  address: 0x20000000
  end_address: 0x2007e000
  region: sram_primary
  size: 0x7e000
app_pad:
  address: 0xF5000
  region: flash_primary
  size: 0x1000
settings_storage:
  address: 0xF6000
  end_address: 0xFF000
  region: flash_primary
  size: 0x9000
cywee:
  address: 0xff000
  end_address: 0x100000
  region: flash_primary
  placement:
    before:
    - end  
  size: 0x1000

该文件经过python处理之后变成了build_nrf5340dk_nrf5340_cpuapp\zephyr\include\generated目录下面的pm_config.h 文件

pm_config.h文件内容如下:

/* File generated by E:/aw32001/NordicNCS/v1.5.1-dev/nrf/scripts/partition_manager_output.py, do not modify */
#ifndef PM_CONFIG_H__
#define PM_CONFIG_H__
#define PM_EXTERNAL_FLASH_ADDRESS 0x0
#define PM_EXTERNAL_FLASH_END_ADDRESS 0xf17000
#define PM_EXTERNAL_FLASH_SIZE 0xf17000
#define PM_EXTERNAL_FLASH_NAME external_flash
#define PM_EXTERNAL_FLASH_ID 0
#define PM_external_flash_ID PM_EXTERNAL_FLASH_ID
#define PM_external_flash_IS_ENABLED 1
#define PM_0_LABEL EXTERNAL_FLASH
#define PM_EXTERNAL_FLASH_DEV_NAME "MX25R64"
#define PM_MCUBOOT_ADDRESS 0x0
#define PM_MCUBOOT_END_ADDRESS 0xc000
#define PM_MCUBOOT_SIZE 0xc000
#define PM_MCUBOOT_NAME mcuboot
#define PM_MCUBOOT_ID 1
#define PM_mcuboot_ID PM_MCUBOOT_ID
#define PM_mcuboot_IS_ENABLED 1
#d
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值