| Electronic Components Datasheet Search |
|
UM0470 Datasheet(PDF) 20 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0470 Datasheet(HTML) 20 Page - STMicroelectronics |
|
20 / 37 page ![]() Debug module (DM) UM0470 20/37 To restart the program execution, the STALL bit in DM_CSR2 must be cleared using the WOTF command of the SWIM protocol. 4.3.3 Abort To use the Abort function, the host must write the STALL bit in the DM_CSR2 using the SWIM WOTF command. No interrupt is generated. The core is stalled in the current state. Using the SWIM commands, the host can read and modify the status of the MCU. If the CPU registers must be modified, the procedure described in Section 3.7: CPU register access has to be used. The host can restart the program execution by resetting the STALL bit using the SWIM commands. 4.3.4 Watchdog control Using the WDGOFF bit in the DM control register 1 (DM_CR1) you can configure the Window Watchdog and Independent Watchdog counters to be stopped while the CPU is stalled by the Debug Module. This bit must be set before the watchdogs are activated. If a watchdog is enabled by Hardware Watchdog option bit, the WDGOFF bit has no effect on it. 4.3.5 Interaction with SWIM The SWIM sends the status bit which indicates the SWIM is active or not. When SWIM is not active, the DM will not generate any break/stall request to the CPU. 4.4 Breakpoint decoding table Table 4. Decoding table for breakpoint interrupt generation DM_CR1 BREAK CONDITIONS DM_CSR1 BC2 BC1 BC0 BIR BIW BK1F BK2F BRW 0000 0 Disabled (RESET state) 0 0 x 0000 1 Data Write on @=BK1 and Data=BK2L 1 0 0 0001 0 Data Read on @=BK1 and Data=BK2L 1 0 1 0001 1 Data R/W on @=BK1 and Data=BK2L 1 0 0/1 0010 0 Instruction fetch BK1<=@<=BK2 1 0 x 0010 1 Data Write on BK1<=@<=BK2 1 0 0 0011 0 Data Read on BK1<=@<=BK2 1 0 1 0011 1 Data R/W on BK1<=@<=BK2 1 0 0/1 0100 0 Instruction fetch on @<= BK1 or BK2<=@ 1 0 x 0100 1 Data Write on @<= BK1 or BK2<=@ 1 0 0 0101 0 Data Read on @<= BK1 or BK2<=@ 1 0 1 0101 1 Data R/W on @<= BK1 or BK2<=@ 1 0 0/1 011 X X Disabled 0 0 x 1000 0 Instruction fetch on @=BK1 then on @=BK2 0 1 x 1000 1 Data Write on @=BK1 or @=BK2 10 or 01 or 11 0 |
|
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 |