Re: This is not a .BIN file FF FF FF FF FF FF FF

From: Sujith (sujithss_at_hotmail.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 11:42:36 +0530

oops NOT.. the problem is still there..
the problem started once I started running from SDRAM..
when it was in the SRAM.. it was working properly..
even I made these as global.. but not initializing at all..to zero.but some
junk values..
how do I call the __CTORS__ which does the C Library initialization..? is
that is the problem?
regards
Sujith

"Sujith" <sujithss@hotmail.com> wrote in message
news:OGTA3aqpEHA.4008@TK2MSFTNGP14.phx.gbl...
> Thanks Dean..
> It worked with some changes...
> I have changed it like this.
> unsigned dwBlockNumber = 0;
>
> unsigned cbDataBuffer = 0;
> unsigned char dataBuffer[KITL_MTU] = {0};
> now it is working.. but again.. after....5-6 seconds.. I am getting an
error
> message that download failed, review your download selection and
> configuration..
> what went wrong?
> how do I do this?
> regards
> Sujith
>
> "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> news:eM5u5DjpEHA.868@TK2MSFTNGP10.phx.gbl...
> > Shouldn't be. What happens if you make them global variables?
> >
> > --
> > Dean Ramsier - eMVP
> >
> >
> > "Sujith" <sujithss@nospam.hotmail.com> wrote in message
> > news:ezqAfcdpEHA.1988@TK2MSFTNGP09.phx.gbl...
> > > Hi Dean,
> > > the KernelRelocate (pTOC) is already called in the BootloaderMain()...
> > > and that is the first function ever called in the BootloaderMain()...
> > > anything more do need to do?
> > > Regards
> > > Sujith
> > >
> > >
> > >
> > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> > > news:%23r1NzeXpEHA.4008@TK2MSFTNGP14.phx.gbl...
> > > > Are you calling kernel relocate before doing any of this stuff?
> Sounds
> > > like
> > > > you're not, and global variables are not being initialized.
> > > >
> > > > --
> > > > Dean Ramsier - eMVP
> > > >
> > > >
> > > > "Sujith" <sujithss@nospam.hotmail.com> wrote in message
> > > > news:emceQ3WpEHA.1084@TK2MSFTNGP10.phx.gbl...
> > > > > No,
> > > > > the problem is that, it is not at all entering to the loop which
> > > receives
> > > > > the packet.
> > > > > so some junk values make the output..
> > > > > but one thing is very strange, that,
> > > > > static DWORD dwBlockNumber = 0;
> > > > >
> > > > > static USHORT cbDataBuffer = 0; are not getting initialized
to
> 0
> > > and
> > > > > have some junk value!!! in the starting of the program.....
> > > > > if I remove the static keyword, it does it, still I need the
values
> to
> > > be
> > > > > retained..
> > > > >
> > > > > regards
> > > > > Sujith
> > > > >
> > > > > "Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in
> > > message
> > > > > news:OivSMPWpEHA.1084@TK2MSFTNGP10.phx.gbl...
> > > > > > "received non-download packet type" this indicates that PB is
> > sending
> > > > > > commands to jump to an existing image without downloading. Check
> > your
> > > > > > settings in PB to make sure you are using "download always or
> > Download
> > > > > when
> > > > > > changed..."
> > > > > >
> > > > > > --
> > > > > > 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: This is not a .BIN file FF FF FF FF FF FF FF
    ... when it was in the SRAM.. ... but not initializing at all..to zero.but some ... > message that download failed, ... What happens if you make them global variables? ...
    (microsoft.public.windowsce.embedded)
  • ActiveX sharing its global variables ?????
    ... I created an ATL-based ActiveX which is used to download a file, ... This ActiveX uses some global variables, for example a DownloadStatus which is modified in several places of the DownloadFile, and can be returned to the web page which instanciated it. ... new instance of the object increments the variable not from 0 but from the value it had in the previous instance ... ...
    (microsoft.public.vc.atl)