打印
[MCU]

CCS导出的.dat文件格式说明

[复制链接]
652|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xyz549040622|  楼主 | 2019-9-14 09:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
网上找到的CCS .dat文件中的第二位数据格式的说明,都是说数据格式是1-4,没有9的说明,这是我的CCS帮助文档中找到的最新说明。

Code Composer data file
A text file that contains one line of header information and stores the data as one sample per line. The legacy file format supported these formats :
  • Hexadecimal
  • Integer
  • Long
  • Float

The new scheme which is backwards compatible supports a larger set of data types. GEL_MemoryListSupportedTypes()  GEL API could be used to list complete set of supported data types in the new scheme
The header information for data files uses this syntax:
MagicNumber  Format StartingAddress PageNum Length [NewFormat]
   
  • MagicNumber—fixed at 1651.

  • Format—a number from 1 to 4, indicating the format of the samples in the file.
            This number represents a data format: (1) hexadecimal, (2) integer, (3) long, (4) float, or (9) Use new scheme

  • StartingAddress—starting address of the block that was saved.

  • PageNum—page number the block was taken from.

  • Length—number of samples in the block.

  • NewFormat—Format (9); the new scheme. This is optional when usign the legacy formats 1 - 4

Format 9) indicates usage of the new scheme. This was added to achieve consistency in the formats available in the memory browser and the formats available with load/save feature. The memory browser supports a larger set of data formats which vary slightly across each target. The old load/save header is based on a fixed set of data formats. In order to maintain backwards compatibility the existing fixed data format is still supported. However, an additional data format ( 9) was introduced which acts as a switch to use the new scheme. The last extra parameter (NewFormat) is the actual format chosen in the new scheme .    
All header values are assumed to be TI-style hexadecimal values.
This is an example of a Code Composer data file:
1651 1 800 1 100x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
Note: Code Composer expects five-digit numbers of information to read in 4-digit values. While the data is known to be hexadecimal, Code Composer expects the  first digit to be a zero. Code Composer does this so that hexadecimal numbers beginning with letters (that is, F800) are not misread as labels. For example, when reading data in hexadecimal format from a data file, the first digit may be truncated.
Look at this input data:
0022002200338AC  FC9413895AB9 ...
When reading this data, Code Composer actually reads data as:
0022003308AC0C940003009500B9 ...
But if you test Code Composer IDE with five-digit data input, (by adding zeroes at the beginning where necessary), the output is consistent with the input:
0002200033018AC0FC94000130089500AB9

使用特权

评论回复

相关帖子

沙发
zhangmangui| | 2019-9-14 16:18 | 只看该作者
不错不错   那UE等编辑器打开比较整齐

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:qq群: 嵌入式系统arm初学者 224636155←← +→→点击-->小 i 精品课全集,21ic公开课~~←←→→点击-->小 i 精品课全集,给你全方位的技能策划~~←←

2810

主题

19297

帖子

104

粉丝