| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 121 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 121 Page - ATMEL Corporation |
|
121 / 181 page ![]() 121 32001A–AVR32–06/06 AVR32 The Watchpoint Message Generator (WMG) generates watchpoint messages for all breakpoint modules and data trace watchpoints. Optionally, a breakpoint or watchpoint can be signalled by a pulse on the EVTO pin. This requires DC:EOS bits to be set to 1 and EOC in the corresponding Breakpoint/Watchpoint Con- trol Register must be written to one. 9.4.2.1 Program Breakpoints In order to enable a simple program breakpoint the Breakpoint / Watchpoint Address (BWA) and Breakpoint / Watchpoint Control (BWC) registers for that breakpoint must be updated. The BWA register must be written with the address of the instruction where the debugger wants to halt. BWA operates on virtual addresses. In order to get a precise match on a virtual address if MMU is enabled, Address Space Identifier (ASID) matching must be enabled in the BWC, and the ASID must be written to the ASID field of the BWC. If the ASID to match on will be read from the current ASID in the MMU. The BWC must have the Breakpoint / Watchpoint Enable (BWE) field set to breakpoint. Program breakpoints break on the instruction pointed to by BWA. The instruction will cause a debug exception and the Debug Mode Return Address Register (RAR_DBG) and Debug Mode Return Status Register (RSR_DBG) will point to the instruction that caused the debug exception. The Development Status register will also be updated to indicate which breakpoint caused the exception. In OCD Mode the debug tool can then feed the CPU with debug code to ascertain the state of the processor. In OCD Mode the breakpoint modules are disabled. Upon return from Debug Mode, the PC and SR will be restored from the RAR_DBG and RSR_DBG and the instruction that caused the debug exception will be fetched again. If the pro- gram breakpoint has not been disabled in Debug Mode, the Ignore First Match (IFM) bit in the Development Control (DC) register must be written to one to avoid triggering another breakpoint on the first instruction after exiting Debug Mode. The IFM bit prevents any Program Breakpoint operation on the first instruction after exiting Debug Mode. The AME bit in the BWCA registers can be used to enable a bitwise address masking. When AME is enabled the BWA register in the B module is used as a noninverting bitwise mask that is applied to the PC and the value in BWA register in the A module. The A breakpoint will thus trig- ger when PC = BWAnA & BWAnB. The B breakpoint will never trigger when AME is enabled. 9.4.2.2 Watchpoints When enabled in the BWC, a watchpoint message is sent when the instruction address matches the address stored in BWA. If both a Trace watchpoint and a Watchpoint triggers at the same time, the Trace watchpoint will be ignored and only a Watchpoint Hit message will be generated. Note that Program, Data, and Trace watchpoints are generated at different pipeline stages and will not be synchronized when the messages are generated. A Program Watchpoint on a load store instruction will hit before a data watchpoint on the same instruction. |
|
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 |