A method for debugging a ROM in a wireless target device. After a wireless
communication link is established with the target device by a host
computer, a debug mode change command is transmitted to the target device
by the host computer. The debug mode change command is received by the
target device and a monitor program is enabled to parse the serial port.
A debug instruction from a debugger in the host computer is then received
by the monitor program where, the debug instruction includes an entry
address and a jump address. The application program jumps to the received
jump address upon reaching the entry address location in the application
program. An acknowledgement package is transmitted to the debugger in the
host computer, and a second debug instruction is received from the
debugger, responsive to the acknowledgement package.