找回密码
 立即注册

使用微信账号登录

只需一步,快速开始

查看: 3170|回复: 1

[QCC3系列] ptn文件说明

[复制链接]
连续签到天数:2天
签到总天数:2314天
签到总奖励:64346金币
发表于 2018-2-25 14:42:52 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册  

×
CSR关于PTN格式说明The partition table file formatThis tool understands files in the partition table file format (with an extension of .PTN). These are the rules for the syntax of a .PTN file:
  • The '#' character denotes a comment from that point until the end of the line.
  • Lines may be empty, but if they contain any non-comment information, the syntax must be correct.
  • Each line contains four pieces of information, each separated by a single comma ',' character.
  • The first item on a line is the index number.
    • The first index in the file must be zero.
    • Each subsequent index must be one more than the previous one.
  • The second item on a line is the size reserved for the partition.
    • This is in units of 16-bit words.
    • If the number is followed (without any space) by a single 'K' character (in upper or lower case), the number denotes KWords (i.e. the number multiplied by 1,024). For example 3K means 3 * 1024 * 2 = 6,144 bytes.
    • If the number is followed (without any space) by a single 'M' character (in upper or lower case), the number denotes MWords (i.e. the number multiplied by 1,048,576). For example 3M means 3 * 1024 * 1024 * 2 = 6,291,456 bytes.
    • The last partition in the file may contain a single '*' character in place of the size to signify 'until the end of the flash'.
  • The third item on a line is the type of the partition.
    • Use the text PS (in upper or lower case) to denote a "Persistent Store" partition.
    • Use the text RO (in upper or lower case) to denote a "Read Only File System" partition.
    • Use the text RS (in upper or lower case) to denote a "Rewriteable Serial Data" partition.
  • The fourth item on a line is the filename.
    • There may be no spaces, tabs, commas or '#' characters in the filename.
    • Use the text (none) (in upper or lower case, including the parentheses) to denote that there is no file to be read, in other words leave the space reserved/unmodified.
    • Use the text (erase) (in upper or lower case, including the parentheses) to denote that the partition contents should be erased (but leave the table entry intact).
    • If the filename is specified, it must be a .XUV file (in the correct .XUV format).
Please note that because partitions are moved around inside the flash for alignment purposes, the sum of all the sizes specified must be less than the total size of the flash. Indeed, these overheads will vary depending on the number, size and order of partitions specified.

楼主热帖
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则

小黑屋|手机版|我爱蓝牙网 - 52Bluetooth

GMT+8, 2024-4-25 12:18 , Processed in 0.162076 second(s), 18 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表