CMSIS-View  
Record program events, display status information, and analyze execution faults
 
Loading...
Searching...
No Matches
Data types

Scalar Data Types

The following scalar data types are supported and can be used in read, typedef, and var elements. read and var also support arrays based on scalar data types.

Table with supported scalar types:

Data Type Description
uint8_t unsigned char (8-bit)
int8_t signed char (8-bit)
uint16_t unsigned short (16-bit)
int16_t signed short (16-bit)
uint32_t unsigned int (32-bit)
int32_t signed int (32-bit)
uint64_t unsigned long long (64-bit)
int64_t signed long long (64-bit)
float single precision floating number (32-bit)
double double precision floating number (64-bit)

Code Example

<read name="main" type="uint8_t" symbol="main" size="64" const="1" />
<var name="ObjSum" type="uint32_t" value="0" />
<var name="i" type="int32_t" value="0" /> <!-- helper -->
<!-- sum up object code bytes starting from main() with the given size in <read main>: -->
<list name="i" start="0" limit="main._count" >
<calc>
ObjSum += main[i];
</calc>
</list>

Complex Data Types

Complex data types are defined using a typedef element and can be used in read, readlist, and var elements.

var and read define a single variable or array based on a data type.

readlist defines a list of variables or arrays. The first instance of <readlist name="var"> will define 'var', the following use of <readlist name="var"> will use the definition.