| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 130 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 130 Page - ATMEL Corporation |
|
130 / 181 page ![]() 130 32001A–AVR32–06/06 AVR32 9.5 Program trace 9.5.1 Program trace overview The AVR32 OCD system provides program trace support via the debug port. The program trace feature implements a Program Flow Change Model in which the program trace is synchronized at each program flow discontinuity. This occurs at taken indirect branches and exceptions. A record of taken / not taken direct branches is included so that the complete program flow can be decoded. The development tool can then interpolate what transpires between each program trace mes- sage by correlating information from branch target messaging and static source or object code files. Self-modifying code cannot be traced with the Program Flow Change Model because the source code is not static. The TM[2] bit in the Development Control register must be set to enable program trace. 9.5.1.1 Branch message summary Five types of branch messages can be generated: 1. Program Trace, Indirect Branch is transmitted on most subroutine calls, returns, inter- rupts, exceptions, and any situation where the target address of a branch cannot be determined from the source code. This message contains the instruction count to iden- tify the branch and the target PC to identify the branch target. 2. Program Trace Synchronization is transmitted to indicate the current PC after starting trace or after trace synchronization is lost. 3. Program Trace, Indirect Branch messages with sync contain both instruction count and PC, and are transmitted instead of a Program Trace Synchronization message if a syn- chronization condition occurs and the current instruction is a taken direct/indirect branch. 4. Program Trace, Resource full messages is transmitted when an internal buffer over- flows. ICNT is transmitted whenever it overflows with this message. 5. Program Trace Correlation. This message is transmitted to synchonize the program trace with an event. Sent when trace is disabled, debug mode is entered or sleep mode is entered. The Nexus standard also specifies Program Trace Correction messages to correct for specula- tively transmitted trace messages, but these are not implemented in the AVR32, since program trace messages are only transmitted for actually executed instructions. Similarly, the Nexus- specified CANCEL packet of synchronized branch messages is not implemented in AVR32. Entry into Debug Mode will generate an program trace correlation message, while no trace mes- sages are generated while executing in Debug Mode. A Program Trace Synchronization message is transmitted when Debug Mode is exited. 9.5.2 Branch message packets The program trace messages contain packets which identify the address of the taken branch, the target of the branch, and the current program counter value. These packets are discussed below. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |