Re: problem in downloading nk.bin



Chitra skrev:
Thank you for your reply.
Now the transfer rate is increased to 47kb/sec and it downloads till
13% i.e, 1.9MB and then gets disconnected.

OK. That's still slow. Are you flashing the image on-the-fly, or are
you just storing it to RAM?

I checked in ethereal during download process,
I found UDP packets sent by target and development workstation. The
development workstation sends UDP packet which has 516 bytes and then
target sends UDP packet which has 4 bytes of data alternately. I found

PB uses the TFTP protocol (on port 980) so if you want to you can let
ethereal map that protocol onto the frames. 512+4 out and 4 in is just
as expected. No resends indicate that the device atleast dosn't seem to
drop random frames.

that after downloading 1.9MB, my target doesn't send any packet,
whereas development workstation sends 4 UDP packet and then it stops
sending the UDP packets. I am not able to find out why the target
stopped sending packets. Can anybody help. Please reply.

Well, this is where it gets tricky. Had you provided any sort of debug
info it would be a lot easier. You could be overwriting someting
important (like the bootloader itself), you've got a rotten ethernet
lib, the watchdog kicks in etc, etc, etc. There are *endless*
possibilities!

You say you've developed the bootloader, so you must have a JTAG
debugger? Debug output over serial? LEDs?

Henrik Viklund
http://www.addlogic.se

Thanks & regards,
Chitra

Henrik Viklund wrote:
7 kb/s ?!? You got a *serious* performance issue here. Not knowing
exactly what your board is capable of, I'd expect at least a couple of
hundred kb/second download rates. Are you using a debug built
bootloader?

The syptom you describe may happen if PB thinks it lost contact with
the device. What happens is probably that PB don't get acks fast enough
(or that it did too many retries), or that your device has stopped
responding alltogether. Use a software ethernet analyzer such as
ethereal to see what communication takes place between the device and
host during download, if there are lots of resends, if the device is
allways slow to respond etc.

Henrik Viklund
http://www.addlogic.se

Chitra skrev:

Hi all,

I am developing BSP for MC9328MXL litekit. I have developed the
bootloader. I am not able to download nk.bin. The board has CS8900A
ethernet controller. Platform Builder recognizes the target device and
download window pops up and it displays downloading nk.bin at a rate of
7KB/SEC but after 7% is complete, the dialog box closes and in platform
builder I get the message as
The Kernel Debugger has been successfully disconnected.
I don't know what the problem could be. Please reply.

Thanks & Regards,
Chitra

.



Relevant Pages

  • Re: problem in downloading nk.bin
    ... Thank you very much, Now I can download the nk.bin, the problem was ... bootloader, or do you simply mean you've compiled and flashed it? ... target stops sending UDP packet and the development workstation also ... RESERVED1 80001000 0000F000 RESERVED ...
    (microsoft.public.windowsce.platbuilder)
  • Re: problem in downloading nk.bin
    ... According to me it won't overwrite the bootloader. ... I found UDP packets sent by target and development workstation. ... target sends UDP packet which has 4 bytes of data alternately. ... hundred kb/second download rates. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: udp packet loss even with large socket buffer
    ... Please download and install libosip before compiling. ... Please note that Windows Messenger is different from MSN Messenger. ... udp packet loss even with large socket buffer ...
    (Linux-Kernel)
  • Re: problem in downloading nk.bin
    ... I checked in ethereal during download process, ... I found UDP packets sent by target and development workstation. ... target sends UDP packet which has 4 bytes of data alternately. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Remote update
    ... Updating the bootloader is a risky operation. ... The bootloader can download an image of itself and, ... Windows CE, store it on flash and reboot the device to load it. ... Or to Execute files (i.e. cab). ...
    (microsoft.public.windowsce.platbuilder)

Loading