| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 94 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 94 Page - ATMEL Corporation |
|
94 / 181 page ![]() 94 32001A–AVR32–06/06 AVR32 The Ignore First Match (IFM) bit in the Development Control (DC) register should be written to one before exiting Debug Mode, to avoid re-triggering the program breakpoint. This bit only pre- vents program breakpoints from re-triggering. If the instruction causes a breakpoint for another reason (e.g. a breakpoint instruction or a data breakpoint), Debug Mode will be re-entered. 9.2.4.3 Data address or value breakpoint CPU memory accesses can be monitored by data breakpoint comparators in the OCD system. If the access matches a set of predefined conditions (e.g. address, value, or access type), Debug Mode is entered after the memory operation completes, but before the next instruction is executed. Data breakpoints are precise, halting on the instruction immediately after the memory operation which caused the breakpoint. The CPU will return to the first non-executed instruction when a retd is executed. 9.2.4.4 breakpoint instruction The breakpoint instruction is programmed along with the object code into the program memory or instruction cache, and is decoded by the CPU. When this instruction is scheduled for execu- tion and Debug Mode is enabled, the CPU will enter Debug Mode. If Debug Mode is disabled (e.g. masked by the DM bit in the Status Register, or DBE in DC is zero), the breakpoint instruc- tion will execute as a nop (no operation). For devices based on volatile program memory, the breakpoint instruction can be dynamically inserted into the code by the debug tool, enabling an unlimited number of program breakpoints in the code. This involves replacing an existing opcode with a breakpoint instruction. The replaced opcode has to be re-inserted before exiting Debug Mode. Note that this is only possible in OCD Mode. For devices based on non-volatile program memory, the breakpoint instruction can be statically compiled or linked into the code before downloading, marking all points the program can be halted. Debug Mode will be entered for all breakpoints (if Debug Mode is enabled), and the debugger would return immediately if it does not want to halt at a particular breakpoint location in the code. Alternatively, the Instruction Cache memory can be directly written by the debugger through the JTAG port. The page containing the software breakpoint can be programmed into a cache page and locked, to prevent it from being flushed. Every time the CPU executes the breakpointed sec- tion of the code, it fetches these instructions from the cache instead of the program memory. This method can only be used to insert software breakpoints in cacheable regions of the mem- ory space, as defined by the Memory Management Unit. The breakpoint will be taken before the breakpoint instruction is actually executed. This has the effect that the CPU will return from Debug Mode to the same breakpoint instruction, re-entering Debug Mode immediately, unless the OCD system is configured to modify the return address or replace the breakpoint instruction from the instruction flow. The IFM bit does not have an effect when Debug Mode returns to a breakpoint instruction. 9.2.4.5 Trapping opcode 0x0000 In Flash-based microcontrollers, the opcode 0x0000 can overwrite any other opcode without having to erase and reprogram the Flash. Therefore this instruction can enter Debug Mode, as for the breakpoint instruction. However, the opcode 0x0000 is also a valid part of the 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 |