4.1. Debugging Windows CE images

To begin debugging a Windows CE image:

  1. In Platform Builder, select Connectivity Options... from the Target menu. The Target Device Connectivity Options dialog appears. See Figure 6.

    Figure 6. Target Device Connectivity Options

    Target Device Connectivity Options
  2. Set the Download and Transport options as None. Access the Debugger option drop-down menu, and select the eXDI2RVI option as shown. Click Apply and Close.

  3. Select Attach Device from the Target menu to attach the debugger to the target. The eXDI Console dialog appears. See Figure 7.

    Figure 7. eXDI Console dialog

    eXDI Console dialog

The user-configurable options in the eXDI Console are:

Note

Pre-configuration script supports only memory write commands.

Figure 9 shows an example of a completed eXDI console dialog.

Figure 9. Example eXDI Console dialog

Example eXDI Console dialog

When you are ready to proceed, click the Connect button to connect to the current target system, and to invoke the debugger. See Figure 10.

Figure 10. eXDI Console showing download progress

eXDI Console showing download progress

Downloading starts, and an Image Download dialog displays. See Figure 11.

Figure 11. Image download progress

Image download progress

When downloading is completed, the image starts booting if the D/L and BOOT radio box is checked. To debug the image running on the target, select Break from the Debug menu. If you want to view the debug features and manipulate debug processes, select Debug Windows from the View menu, followed by any of the available options. For example, these are Breakpoint List, Processes, Threads and Modules and Symbols. See Figure 12.

Figure 12. Debug features

Debug features

How to generate NK.nb0

If Nk.nb0 is not present under the Path variable mentioned in Debugging Windows CE images, you can use one of the Platform Builder inbuilt tools, Cvrtbin.exe, to generate it. To do this:

  1. Select Open Release Directory from the Build OS menu.

  2. Input Cvrtbin with appropriate command line options.

    For example, Cvrtbin -r -a <startaddress> -w(width 8, 16, 32) -l(length) Nk.bin

    Press Enter.

Copyright © 2007, 2008. All rights reserved.ARM DAI 0192A