Freescale Semiconductor MCF51QE128RM manual Enter active background mode if enabled Non-intrusive

Models: MCF51QE128RM

1 424
Download 424 pages 63.71 Kb
Page 394
Image 394

Chapter 18 Version 1 ColdFire Debug (CF1_DEBUG)

18.4.1.5.4BACKGROUND

Enter active background mode (if enabled)

Non-intrusive

 

 

 

 

 

 

 

 

 

0x04

 

 

 

 

 

 

 

 

 

 

 

 

 

host

D

 

 

 

target

L

 

 

 

Y

 

Provided XCSR[ENBDM] is set (BDM enabled), the BACKGROUND command causes the target MCU to enter active background (halt) mode as soon as the current CPU instruction finishes. If ENBDM is cleared (its default value), the BACKGROUND command is ignored.

A delay of 16 BDC clock cycles is required after the BACKGROUND command to allow the target MCU to finish its current CPU instruction and enter active background mode before a new BDC command can be accepted.

After the target MCU is reset into a normal operating mode, the host debugger would send a WRITE_XCSR_BYTE command to set ENBDM before attempting to send the BACKGROUND command the first time. Normally, the development host would set ENBDM once at the beginning of a debug session or after a target system reset, and then leave the ENBDM bit set during debugging operations. During debugging, the host would use GO commands to move from active background mode to normal user program execution and would use BACKGROUND commands or breakpoints to return to active background mode.

18.4.1.5.5 DUMP_MEM.sz, DUMP_MEM.sz_WS

DUMP_MEM.sz

 

Read memory specified by debug address register, then

Non-intrusive

increment address

 

0x32

host

target

Memory data[7-0]

Dtarget

L

Y host

 

0x36

 

Memory

Memory

 

 

 

 

 

 

data[15-8]

data[7-0]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

host

D

target

target

 

 

 

 

 

target

L

host

host

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x3A

 

Memory

Memory

 

Memory

Memory

 

 

 

data[31-24]

data[23-16]

data[15-8]

data[7-0]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

host

D

target

target

 

target

target

 

target

L

host

host

 

host

host

 

Y

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

394

Freescale Semiconductor

Get the latest version from freescale.com

Page 394
Image 394
Freescale Semiconductor MCF51QE128RM manual Enter active background mode if enabled Non-intrusive, Data7-0, 0x3A Memory