Re: Help with debugging techinques

From: Dean Ramsier (ramsiernospam_at_nospam.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 09:02:30 -0500

Nothing stopping you from continuing to use the DEBUGMSG/RETAILMSG macros.
The key is to ensure that your debug port (serial) is still enabled, and not
being used as a system serial port. If the debugger is not included, the
messages will still come out of the serial port without requiring a kitl
link to be established. Note that retail builds will cause the DEBUGMSG
macro to evaluate to null, so only RETAILMSG macros will work.

-- 
Dean Ramsier - eMVP
"Ten" <nospam@nospam.net> wrote in message
news:uQTgMEs5EHA.3840@tk2msftngp13.phx.gbl...
> Hi,
>
> I have a PXA255 based SBC created under 4.2.  I have a platform that works
> good under PB Debug and Release modes.  I have recently burned the retail
OS
> image to FLASH and booted from it (only Full Kernel and Images > 32MB are
> selected in configuration).  Comparing test runs from the PB and non-PB
> boots, I see that the non-PB session exhibits some different behavior and
I
> want to capture what is happening so I can fix the bug.
>
> 1. I am used to using DEBUGMSG in the driver.  Is there a compliment to
this
> method in the application layer?
> 2. I am thinking of creating my own API for collecting and displaying
debug
> messages to an application running on CE.  Does something like this exist?
> 3. I can always dump trace information to a file, but I want to avoid this
> method if I can.
>
> I'd like to hear of any other suggestions or techniques that have been
used
> to debug a retail image untethered from PB.
>
> Thanks,
> Nick.
>
>


Relevant Pages

  • Re: Cant open Serial port
    ... serial port is opened, then start the debug output again when it closes. ... are you actually loading a serial driver ... After boot, I find my test program, double click it to run. ...
    (microsoft.public.windowsce.platbuilder)
  • [PATCH 09/12] i386/x86_64: EHCI usb debug port early printk support.
    ... With legacy free systems serial ports have stopped being an option ... to get early boot traces and other debug information out of a machine. ... EHCI USB controllers provide a relatively simple debug interface ... When the special feature of the EHCI is not enabled the port ...
    (Linux-Kernel)
  • Re: Capturing debug messages using CeLog on a release terminal
    ... Don't set the shipbuild flag in your retail kernel (because it will #define RETAILMSG and DEBUGMSG into nirvana) and don't set Enable CE Target control and don't set Enable Kernel Debugger. ... I'm not entirely sure if DEBUGMSGs (as opposed to RETAILMSGs) still work when replacing dll's in a retail build with their debug counterparts. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: BIOS Bootloader - Help required
    ... The debug output will help us to identify the problem. ... to another COM port. ... >> nbesson AT adeneo DOT adetelgroup DOT com ... >>> I copied my OS image to the target device over serial port. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Serial driver changes from v5 to v7
    ... Better to have a "robust" printcap entry. ... I didn't mean that you are the only one who can debug a serial port ...
    (comp.unix.bsd.freebsd.misc)