Chapter 5 Background Debug Controller (S12ZBDCV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
Freescale Semiconductor
165
This command can be used to dynamically access the PC for performance monitoring as the execution of
this command is considerably less intrusive to the real-time operation of an application than a
BACKGROUND/read-PC/GO command sequence. Whilst the BDC is not in active BDM, SYNC_PC
returns the PC address of the instruction currently being executed by the CPU. In active BDM, SYNC_PC
returns the address of the next instruction to be executed on returning from active BDM. Thus following
a write to the PC in active BDM, a SYNC_PC returns that written value.
5.4.4.16
WRITE_MEM.sz, WRITE_MEM.sz_WS
Write data to the specified memory address. The address is transmitted as three 8-bit packets (msb to lsb)
immediately after the command.
If the with-status option is specified, the status byte contained in BDCCSRL is returned after the write data.
This status byte reflects the state after the memory write was performed. The examples show the
WRITE_MEM.sz
Write memory at the specified address
Non-intrusive
0x10
Address[23-0]
Data[7–0]
host
target
host
target
host
target
D
A
C
K
0x14
Address[23-0]
Data[15–8]
Data[7–0]
host
target
host
target
host
target
host
target
D
A
C
K
0x18
Address[23-0]
Data[31–24] Data[23–16]
Data[15–8]
Data[7–0]
host
target
host
target
host
target
host
target
host
target
host
target
D
A
C
K
WRITE_MEM.sz_WS
Write memory at the specified address with status
Non-intrusive
0x11
Address[23-0]
Data[7–0]
BDCCSRL
host
target
host
target
host
target
D
L
Y
target
host
0x15
Address[23-0]
Data[15–8]
Data[7–0]
BDCCSRL
host
target
host
target
host
target
host
target
D
L
Y
target
host
0x19
Address[23-0]
Data[31–24] Data[23–16]
Data[15–8]
Data[7–0]
BDCCSRL
host
target
host
target
host
target
host
target
host
target
host
target
D
L
Y
target
host