Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 Apr 2004 02:43 PM by  joseph.fitzgerald@aflglobal.com
Reconnect issues Windows CE
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
reade6@hotmail.com
New Member
New Member
Posts:


--
10 Feb 2004 04:40 PM
    Basically my issue is this: I have built a platform on Windows CE .net PB and an application, all which succesfully loads and runs on the target device with kernel debugging (I am using the ethernet port). However, after stopping the debugger and disconnecting, I cannot reconnect at all. I have to reset the device and reload the image.

    I have installed the patch that I thought was supposed to fix this issue or a similar one.

    Here is the command I enter onto the target device before loading the image: source /dev/serial_7a400_2;
    ifconfig sm0 10.0.0.7 255.255.255.0 10.0.0.6;ifconfig sm0 up;bootme &

    and here is the command that runs the OS after the image is loaded:
    source /dev/serial_7a400_2;
    exec dbg_serial:A400_UART:dbg_enet:91C111:dbg_enet_base:0x70000000:share_eth:1

    One more thing, when I click stop debugging while the kernel debugger is running I get a warning saying that I should stop the target-side debugger, kdstub, first. Is this the key? What should I do? What am I missing?
    Thaks for your help.
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    11 Feb 2004 02:12 PM
    Reader,

    Unfortunately, you aren't doing anything wrong. The patch issued by Microsoft seems to fix the problem on some systems, and not on others.

    I am at Microsoft right now and will be here until Friday. My sincere hope is to have this issue resolved once and for all by the end of the week.

    For now, please continue to reboot Platform Builder when you have issues.

    Regards,
    --mikee
    joseph.fitzgerald@aflglobal.com
    New Member
    New Member
    Posts:


    --
    23 Apr 2004 02:02 PM
    Has this issue been resolved yet? The link on the support page takes you to the QFE page. Is the fix in the latest QFE?

    Thanks
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    23 Apr 2004 02:24 PM
    jjfitzy,

    Thanks for the post.

    If you install the Microsoft QFE 031017_KB830089, you shouldn't have any problems.

    Note, you _should_ disconnect from the device in between downloads. Platform Builder behaves much better if you treat it like a baby. To disconnect, use "Targe t=> Disconnect."

    My development cycle typically goes something like this:

    1) LOSH> ifconfig sm0 dhcp
    2) LOSH> bootme &
    3) Platform Builder: "Target => Download / Initialize"
    4) Do whatever I have to do.
    5) Platform Builder: "Target => Disconnect"
    6) Return to set 1.

    If you start having problems, shutting down Platform Builder will normally kill the CE-manager thread that is responsible for communications. That typically does the trick.

    However, I have seen Platform Builder orphan a CE-manager thread or two. At that point, your better off deleting your connection and creating a new one. If you always specifically disconnect from the device though, you should be fine.

    Finally, Platform Builder will _always_ try and connect its debugger to your device. It does this regardless of whether or not you have even included a debugger in your image. So, if you aren't using a debugger, and your also not using KITL or WCESHELL, then I highly recommend using "Target => Disconnect" as soon as your download is complete. This seems to keep Platform Builder happy.

    Best regards,

    --mikee
    joseph.fitzgerald@aflglobal.com
    New Member
    New Member
    Posts:


    --
    23 Apr 2004 02:43 PM
    Mikee,

    Thanks for your prompt reply. I'll give it a go and let you know if it works.

    Thanks again
    You are not authorized to post a reply.