Expand description
A decoder for the ITM and DWT packet protocol as specifed in the ARMv7-M architecture reference manual, Appendix D4. Any references in this code base refers to this document.
Common abbreviations:
- ITM: instrumentation trace macrocell;
- PC: program counter;
- DWT: data watchpoint and trace unit;
- MSB: most significant bit;
- BE: big-endian;
Modules§
- cortex_
m - Re-exports for exception types of the
cortex-m
crate forserde
purposes.
Structs§
- Decoder
- ITM and DWT packet protocol decoder.
- Decoder
Options - Timestamp
- Combined timestamp generated from local and global timestamp packets. Field values relate to the target’s global timestamp clock. See (Appendix C1, page 713).
- Timestamped
Trace Packets - Association between a set of TracePackets and their Timestamp.
Enums§
- Exception
Action - Denotes the action taken by the processor by a given exception. (Table D4-6)
- Malformed
Packet - A header or payload byte failed to be decoded.
- Memory
Access Type - Denotes the type of memory access.
- Timestamp
Data Relation - Indicates the relationship between the generation of the local timestamp packet and the corresponding ITM or DWT data packet. (Appendix D4.2.4)
- Trace
Packet - The set of valid packet types that can be decoded.