Re: Serial Boot Loader Download problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Price (brianp_at_appliedcs.com.au)
Date: 08/26/04


Date: 26 Aug 2004 16:35:32 -0700

Hi Sujith,

Make sure that the data flow is going through the UART that you
expect.
For example, debug output (and input) should go through UART 1, and
the downloader/debugger only through UART 2.

In your code below, OEMSerialRecvRaw() should be using a different
port to EdbgOutputDebugString().

Also, with this set up, if you do manage to download correctly, the
image can not have two serial ports configured. If it does, the driver
for the serial port will reset the hardware when it loads and you will
lose you debugger connection.

Hope this helps
Brian Price
brianprice_AT_appliedcs_DOT_com_DOT_au

"Sujith" <sujithnospam@nospam.com> wrote in message news:<e1PdJXliEHA.2664@TK2MSFTNGP11.phx.gbl>...
> hi,
> yes. the baud rate is 115200.
> and I have a problem also..
> while(i< HEADER_SIG_BYTES)
> {
> if(!OEMSerialRecvRaw((PBYTE)&(pHeader->headerSig[i]), &cbRead) ||
> sizeof(UCHAR) != cbRead)
> {
> EdbgOutputDebugString("failed to receive header signature\r\n");
> return FALSE;
> }
> if(pHeader->headerSig[i] == packetHeaderSig[i])
> i++;
> else
> i = 0;
> }
> this goes on an infinite loop... so what happens is, when platform builder
> tries to
> connect, target is waiting for ack.. from PB after sending the BOOTME..
> if I comment these code, it works, but every time I am getting a non
> download
> packet, ....., since I didn't stated the download/intialize. but immediately
> when I do
> download/initialize, all the debug messages also stops!!!!
> what went wrong?
> regards
> sujith
>
> "Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in message
> news:%23R%23l2sfiEHA.3348@TK2MSFTNGP12.phx.gbl...
> > Are you sure the baud rates match correctly? The protocol is pretty simple
> > and as long as you've got working serial port hardware and code on both
> ends
> > it should be pretty straight forward to make work. Are you certain the
> > serial ports hardware and code on the target device are working?
> >
> > --
> > Steve Maillet
> > EmbeddedFusion
> > www.EmbeddedFusion.com
> >
> > Do have an opinion on the effectiveness of Microsoft Windows Mobile and
> > Embedded newsgroups? Let us know!
> > https://www.windowsembeddedeval.com/community/newsgroups
> >
> >



Relevant Pages

  • Re: Serial Boot Loader Download problem
    ... Make sure that the data flow is going through the UART that you ... For example, debug output should go through UART 1, and ... Also, with this set up, if you do manage to download correctly, the ... image can not have two serial ports configured. ...
    (microsoft.public.windowsce.embedded)
  • Re: sharc serial port sru config problem
    ... to take audio input from the ADC and SPORT2 is used to output the ... My second program implements a UART receive on serial port 3B, ... serial ports and different DAI pins I didn't think there would be a ... Clark's Law Reboot: ...
    (comp.dsp)
  • Re: Program to test a serial Port on WinCE 5.0
    ... I am writing to UART using wrtie file but I am not able to see anytrhing on ... I've managed to get my own code working, but I'm far from an expert on ... serial ports. ... "Dick Grier" wrote: ...
    (microsoft.public.windowsce.app.development)
  • KITL, Edbg and serial debug
    ... In Eboot I use Ethernet to download my image ... from PB 4.2 and I use my serial ports for printing output ... Shell and can print to my other debug window in PB ... USB Client to download images, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: eboot
    ... This depends on your hardware. ... bootloader that could be used to download a new bootloader in flash ... If you already have a bootloader that can download an image via UART ...
    (microsoft.public.windowsce.platbuilder)