This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

save memory 文件头

请教下,通过CCS保存数据时,得到的.dat文件的第一行格式是怎样定义的?我想在自己的文件中加入这个文件头,从而将数据load memory.

  • 文件头为

    1651             1           80000000         0           10

    固定标识  数据格式     基地址           页类型       长度

    数据格式:1-十六进制  2-十进制  3-十进制长整型  4-十进制浮点型

    页类型:  0-数据   1-程序   ?

    长度:  装入数据的长度

  • 看这里,通过ccs->help content->Data File Formats

    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.

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