...
Preparation
Take a look at Building a Windows CE 5.0 Image for Trizeps4 from Scratch. This project will be used as starting point.
...
Every Platform-Builder-Workspace has two different configurations. The Release
-configuration which you have used in the Building a Windows CE 5.0 Image for Trizeps4 from Scratch-application note and the Debug
-configuration. In the Debug
-configuration all moudles modules are build with debugging-information. This and the fact that some optimizations are disabled increases the size of the output files.
...
Unlike the CoreMax
-project, which can be easily built for Release and Debug, the Demo
-project is far too big.
To be able to build a debug-image, we can use a trick:
Build OS –> Open Build Release Directory
will show you where the_FLATRELEASEDIRECTORY
resides.Change the name of this directory from
TR4CONXS_ARMV4I_Debug
toTR4CONXS_ARMV4I_FullDebug
.Make a copy of the
TR4CONXS_ARMV4I_Release
directory and name itTR4CONXS_ARMV4I_Debug
.Build OS –> Build Sysgen Current BSP
.Copy desired debug-DLL's and EXE to the debug directory.
Build OS –> Make Run-Time Image
This time Make Run-Time Image
will finish with success.
...
Now that you have a Windows CE5.0-Debug-Image, you can start to debug.
Select Target –> Connectivity Options
.
...
Now set:
Download
toNone
.Transport
toEthernet
.Debugger
toKdStub
.
Press Settings
-button next to the Transport
-box and power-up your device.
...
Now the kitl-debug-connection will be established and you may set breakpoints, use the Windows CE Shell
-extension or other powerfull powerful debug tools of the Windows CE Platform Builder.
Download
Demo-Project: demo_2008_10_09.zip
Debug-Image: nk_ram_debug_2008_10_10.nb0