| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 95 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 95 Page - ATMEL Corporation |
|
95 / 181 page ![]() 95 32001A–AVR32–06/06 AVR32 set (ADD R0,R0 in AVR32) and can be part of the software to be debugged. Therefore, the user must write the DC:TOZ (Trap Opcode Zero) bit to one to enable this feature. The DS:BOZ bit will be set if Debug Mode is entered due to a trapped 0x0000 instruction. The debugger must then identify whether this opcode belongs to the original object file or has been inserted by the debugger as a software breakpoint. If it was part of the object file, the debugger should use the Instruction Replacement to return to the program, and insert the 0x0000 opcode in DINST. 9.2.4.6 Single stepping The debugger will typically allow the user to step through the application source or object code, line by line. This single stepping can be either of step-into or step-over type. Step-into will exe- cute exactly one instruction and halt the CPU at the start of the next instruction, regardless of whether this instruction is part of the main program, subroutine, interrupt, or exception. Step- over will execute the current instruction and any lower-level events generated before the follow- ing instruction (including subroutines, interrupts, and exceptions). Step-over in the object code and all single stepping in the source code are implemented by con- figuring a program breakpoint on the address of the next object code instruction where the debugger expects to halt.s Step-into is implemented in OCD hardware and is controlled by the Single Step (SS) bit in the Development Control register. When Debug Mode is exited by retd, exactly one instruction from the program memory will be executed before Debug Mode is re-entered. This mechanism works identically for OCD and Monitor Mode. 9.2.4.7 Hardware Error The CPU might encounter problems which cannot be handled in software. This includes access- ing a memory area reserved for NanoTrace. These types of errors should never occur in a correctly written application, and will normally trigger a soft reset. To ease debugging of these types of errors, the debugger can write the DC:TSR (Trap Soft Reset) bit to one. The CPU will then enter Debug Mode if a soft reset occurs. This includes any kind of soft reset in the device, such as watchdog reset. The Hardware Error bit (HWE) in the Development Status register will be set to indicate that a trapped soft reset caused entry to OCD mode. Note that if OCD mode is disabled (i.a. also when Monitor Mode is enabled), the soft reset allows the software to restart in a defined manner. Since the soft reset causes may corrupt CPU execution, the RAR_DBG and RSR_DBG are undefined when Debug Mode is entered due to a hardware error. 9.2.4.8 Event on EVTI pin If the Event In Control (EIC) bits in DC are written to 0b01, a high-to-low transition on the EVTI pin will generate a breakpoint. EVTI must stay low for one CPU clock cycle to guarantee that the breakpoint will trigger. The External Breakpoint (EXB) bit in DS will be set when a breakpoint is entered due to an event on the EVTI pin. 9.2.4.9 NanoTrace buffer full When using NanoTrace to write trace information to memory, the user can configure a break- point when the buffer becomes full. This will set the NanoTrace Buffer Full (NTBF) bit in DS. RAR_DBG will point to the last non-executed 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 |