Re: Serial Boot Loader Download problem
From: Brian Price (brianp_at_appliedcs.com.au)
Date: 08/26/04
- Next message: HeWillIncrease: "windows media player localization"
- Previous message: George McCollister: "Re: DiskOnChip 2000 In Windows CE 5.0"
- In reply to: Sujith: "Re: Serial Boot Loader Download problem"
- Next in thread: Sujith: "Re: Serial Boot Loader Download problem"
- Reply: Sujith: "Re: Serial Boot Loader Download problem"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
- Next message: HeWillIncrease: "windows media player localization"
- Previous message: George McCollister: "Re: DiskOnChip 2000 In Windows CE 5.0"
- In reply to: Sujith: "Re: Serial Boot Loader Download problem"
- Next in thread: Sujith: "Re: Serial Boot Loader Download problem"
- Reply: Sujith: "Re: Serial Boot Loader Download problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|