English
Language : 

AN4035 Datasheet, PDF (14/42 Pages) STMicroelectronics – Flash programming through
On-Chip Emulation (OnCE)
AN4035
TEST/IDLE state. The state machine is returned to the RUN-TEST/IDLE state when the
write is complete.
Figure 5. Steps for enabling the OnCE TAP controller
TCK tick
TMS
TDI
Resulting state
1
1
X
SELECT-DR-SCAN
2
1
X
SELECT-IR-SCAN
3
0
X
CAPTURE-IR
4
0
X
SHIFT-IR
5
0
1
SHIFT-IR
6
0
0
SHIFT-IR
7
0
0
SHIFT-IR
8
0
0
SHIFT-IR
9
1
1
SHIFT-IR
10
1
X
UPDATE-IR
11
0
X
RUN-TEST/IDLE
Figure 6. Signal transitions for enabling the OnCE TAP controller
3.2
OnCE register access
The OnCE module provides several registers for static debug support. The OnCE command
register (OCMD) is a special register and acts as the IR for the TAP controller state machine
and is used to access other OnCE resources.
3.3
OnCE command register
The OnCE command register (OCMD) is a 10-bit shift register that receives its serial data
from the TDI pin and acts as the IR register of the TAP controller state machine. The OCMD
is updated when the TAP controller enters the UPDATE-IR state. It contains fields for
14/41
Doc ID 022669 Rev 2