| 数据搜索系统,热门电子元器件搜索 |
|
AN4035 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4035 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 42 page ![]() AN4035 On-Chip Emulation (OnCE) Doc ID 022669 Rev 2 21/41 entering debug mode, the OCR[DR] bit should be cleared leaving the OCR[WKUP] bit set. OCR[FDB] should also then be set to enable recognition of software breakpoints. The steps required for entering debug mode during reset assuming the OnCE TAP controller has been enabled are listed below: 1. Assert RESET. 2. Set the OCR[DR] and OCR[WKUP] bits. 3. De-assert RESET. 4. Verify debug mode via the DEBUG bit in the OnCE status register. 5. Clear the OCR[DR] bit while leaving OCR[WKUP] set and set OCR[FDB]. 3.6 Enabling external debug mode and other initialization Before enabling external debug mode, the CPU should be placed into debug mode via the method outlined in the previous section. The external tool should then write the DBCR0[EDM] bit to enable external debug mode. Note that the first write to DBCR0 only affects the EDM bit. All other bits in that register require DBCR0[EDM] to be set prior to writing them. After enabling external debug mode, the DBSR status bits should be cleared by writing 0xFFFFFFFF to DBSR. The register definition of DBSR is shown in Figure 16. Figure 16. Debug Status Register (DBSR) 3.7 CPU Status and Control Scan Chain Register (CPUSCR) CPU information is accessible via the OnCE module through a single scan chain register named the CPUSCR. The CPUSCR provides access to this CPU information and a mechanism for an external tool to set the CPU to a desired state before exiting debug mode. The CPUSCR also provides the ability to access register and memory contents. Figure 3-13 shows the CPUSCR. Once debug mode has been entered, it is required to scan in and update the CPUSCR prior to exiting debug mode or single stepping. Access to the CPUSCR is controlled by the OCMD. 01234 56789 10 11 12 13 14 15 R IDE UDE MRR ICMP BRT IRPT TRAP IAC1 IAC2 IAC3 IAC4 DAC 1R DAC 1W DAC 2R DAC 2W W Reset 00010 0000000 00 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 R RET 0000 DEVT 1 DEV T2 DCNT 1 DCNT 2 CIRPT CRET 00 0 0 CNT 1RG W Reset 00000 0000000 00 0 0 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |