Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The preffered and easiest way to debug an application is ActiveSync. This debug-transport is selected as default in the Keith & Koep SDK's and will be used by Visual-Studio and Embedded Visual C++ if you press F5 for debug. To establisch an ActiveSync connection, you need to install ActiveSync ( see Microsoft's download website at http://www.microsoft.com/download ) and connect the device to your PC using an USB-cable.
Another way to connect Visual-Studio to a target-device for debugging is an ethernet connection. This typically involves starting an application on the target-device and than connecting from Visual-Studio to this device.
The third possibility to debug an application is using the Platform-Builder Kitl-Interface. This is typically used, if the above debug-options don't give enough information or when debugging a driver. Kitl-debugging needs Microsoft Platform Builder and a special debug image to connect to. With a debug image you can step into most system calls. See the Getting Started Guides found in the Board Support Packages (Microsoft)-section for details.

How to debug an application running on Windows Embedded CE6 using Ethernet

...

  1. Keith & Koep offers a bootloader which is able to show a Slash Screen. With the Boot Picture the customer can stamp all display paramters with his *.bmp file into a bootable file. The bootloader is able to pass those paramters to the Keith & Koep display driver. These parameters include display-timings as well as the definition how the contrast and backlight is connected. Keith & Koep supports PWMs, i2C potentiometers, and eepots, a special FPGA solution or GPIO based switching functionality.

  2. All parameters can also be set by registry parameters. When the bootloader passes params, they can be read back via registry. So the customer can identify the display name and values.

...

A small region at the end of flash is used to store the permanent registry (see Flash Division of Trizeps I to VI). If this is not availlable, the default-registry stored in the Windows CE image is used.
To store the registry:

  • Run Start→Programs→KuK Tools→Kuk Tools: Store.

  • Use drvlib_app.dll function: Registry_Save

To erase the registry:

  • Use bootloader command ereg.

  • Run Start→Programs→KuK Tools→Kuk Tools: Erase.

  • Use drvlib_app.dll function: Registry_Clear

How to keep files copied to the device after a power-cycle

...

  1. a SD,MMC or Compact-Flash card using the autoboot.bat-mechanism. See Using Bootloader Autoboot Function.

  2. the bootloader command interpreter. This allows updates through storage-cards, tftp and the serial interface. See Bootloader Command Reference.

When using Windows CE, you may update the image while the OS is running, with the flashupdate or OS-Update-tool. On newer images, you can modify the image-file to have the extension .os. Double-Tap this file in the explorer and it will automatically start flashupdate with this files.

...

GPIO's are general-purpose pins, which may be configured as input, ouput or as special function pin. Most pins of the Trizeps-modules are GPIO's. Those pins can be used in application-programs, using Keith & Koep drvlib_app.dll ( see GPIO & SPin).

How to install a Program

...

http://www.microsoft.com/windowsembedded/en-us/downloads/download-windows-embedded-ce-6-trial.aspx ?

Abbreviations

BSP

Board Support Package. A Board-Support-Package contains drivers and software to build own OS-Images.

...