我看到CCS的教程上讲通过设置断点,然后改变断点的action属性,选择“read data from file”,可以从主机文件向程序的buffer输入数据。我试了教程上的例子,的确可行。我的问题是,输入文件的格式是什么?我打开例子附带的文件,sine.dat,看到第一行有一串数字"1651 1 0 0 0",我想知道这些是什么意思。如果我自己要构造输入文件,应该怎么写。
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.
你好:
Code Composer data file
A text file that contains one line of header information and stores the data as one sample per line. The memory data can be in any of these formats:
Hexadecimal
Integer
Long
Float
The header information for data files uses this syntax:
MagicNumber Format StartingAddress PageNum Length
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, or (4) float.
StartingAddress—starting address of the block that was saved.
PageNum—page number the block was taken from.
Length—number of samples in the block.