HOWTO: Debug Applications on an Embedded Device Using Visual C++ 6.0 with PPP as Transport Layer

ID: Q230757


SUMMARY

Visual C++ version 6.0 allows application developers to debug their applications using the platform manager for any custom embedded device that they are developing.


MORE INFORMATION

To debug applications using Visual C++ with PPP as a transport layer complete the following steps:

  1. Configure Platform Manager on host to use PPP as transport layer.


  2. Create a CESH connection between the host and target computer.


  3. Establish a PPP connection using a NULL modem cable from the target device.


  4. Connect to the device and start debugging using Visual C++.


Configure Platform Manager
  1. Select Configure Platform Manager under the Tools Menu.


  2. Choose PPP Transport for Windows CE as your transport layer.


  3. Go to Advanced and choose CESH Server for Windows CE as your server.

    NOTE: Do not choose Windows CE Services because it is intended only for retail devices. For devices that are built using the ETK you can choose either CESH server for Windows CE or Manual Server. Currently, Manual Server is broken and does not work. Microsoft will fix Mansrv.dll and ship the updated version of Mansrv.dll in the next release of Platform Builder.


  4. Configure the CESH server to point to the \WINCE211\Release directory.


Create a CESH Connection

Establish a PPP Connection From the Target Device
  1. Connect the serial ports of the target device and host device with a NULL modem cable.


  2. Create a connectoid on target using Remnet.exe.


  3. Start Remote Access Service on the host computer.

    NOTE: Make sure that the baud rate for both the serial ports on the host and target computer are equal. Failure to do this will result in no PPP connection.


  4. Create an account in User Manager so that the target device user can log in.


  5. Establish a PPP connection using the connectoid you just created.


Connect to the Target Device and Start Debugging
  1. Build your application for the target device using the exported SDK for the device.


  2. Make sure that a PPP connection is established between the target and host computer.


  3. Execute Update Remote Output File. This will transfer the application to the target.


  4. Start using Visual C++ debugging commands.


Additional query words: Debug winceetk etk


Keywords          : 
Version           : 
Platform          : 
Issue type        : kbhowto 

Last Reviewed: August 12, 1999