The header information for data files uses the following 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: hexadecimal, integer, long, or float.
StartingAddress The
starting address of the block that was saved.
PageNum The page number
the block was taken from.
Length The number of samples in the
block.
All header values are assumed to be TI-style hexadecimal values.
The
following is an example of a Code Composer Studio data file:
1651 1 800 1 10
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
Note that CCS expects 5 digit numbers of information to read in 4-digit
values. While the data is known to be hexadecimal, CCS expects the
first digit to be a zero. CCS does this so that hex numbers beginning with
letters (ie. 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:
0022
0022
0033
8AC
FC94
13
895
AB9 ...
When reading this data, CCS will actually read it as:
0022
0033
08AC
0C94
0003
0095
00B9 ...
But if you test Code Composer Studio with five-digit data input, (by adding zeroes at the beginning where necessary), the output will be consistent with the input:
00022
00033
018AC
0FC94
00013
00895
00AB9
Note: Header values specify only the default address and length. When
you use the File®Data
®Load command to load a file into memory, the
Code Composer Studio debugger gives you a chance to override these values. When
using the Code Composer Studio data file format with file I/O capabilities, any
information you enter in the File I/O dialog box (Address and Length)
automatically overrides the Code Composer Studio data file header information.
You do not need to set the header information for each file as long as the
header includes the following value: 1651 1 0 0 0.
HI, DSP friends
This is first time I am using probe in my code. A problem confused me.
I want to prepare a data file for my application, and use this file with a
probe point to input data to a buffer. My code will be like following. I
prepared a data set including 8 integer, but by running the code I found
only the secod 2 data and last 2 data is inputted into buffer, the code is
running with 2 loops instead of 4. Anybod can give me some hint?
int in_buffer[2];
static void dataIO( );
void main(void)
{
while (1)
{
dataIO( ); /*probe point set here */
/* my other code below */
}
}
static void dataIO( )
{
return;
}
[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---
--
-------------------------------
"I've missed more than 9000 shots in my career.
I've lost almost 300 games. 26 times I've been trusted to take the game winning shot and missed.
I've failed over and over again in my life.
And that is why I succeed."
-- Michael Jordan
--------------------------------