Shop OBEX P1 Docs P2 Docs Learn Events
trouble programming — Parallax Forums

trouble programming

richlrichl Posts: 3
edited 2004-08-19 20:22 in General Discussion
When using the SX-key to program the SX28 Ubicom chip, programming is successful about 1 in 4 times.· The progress bar hangs at some random amount of completion. To get out of this requires ending the task and restarting the program.

Also, when walking or stepping through the code, the SX-key V2.02 program will hang randomly.

The operating system is win2k

·

Comments

  • KenMKenM Posts: 657
    edited 2004-08-17 19:28
    Rich,

    I don't have any good news for the problem of the program hanging up during debug. When it does hang up, does the program jump to some random address, or simply stop?

    I used to have a problem single stepping where the program would jump to a random address with no instructions, and for some unknown reason I no longer have that problem. The only thing different between when the problem used to happen and now is the date. ??? (all equipment same)

    Ken
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2004-08-17 20:37
    Rich,

    sometimes, I have the same effects here - the "Programming" progress bar shows up, it "lives" for a while, and then seems to hang. Interestingly, I found out that the device has been correctly programmed though because a subsequent "Run" - "Device" - "Verify" worked fine, and also cleared the progress bar window as a side-effect. So this is my method to close "sticking" progress bar windows smile.gif.

    As I have similar effects with other applications when I run them under WinXP, I don't blame the SX-Key software for now, but my XP installation instead. When running SX-Key under WinMe, I never have such problems.

    It also sometimes happens to me that when launching the debugger, not all of the windows show up. When I close the debugger, and hit Ctrl-Alt-D for a restart everything is fine, and all windows are visible.

    Maybe, there is some incompatibility between WinXP/Win2K and the SX-Key software. I think Peter will have a look at it.

    Greetings from Germany,

    G
  • PJMontyPJMonty Posts: 983
    edited 2004-08-17 21:38
    Rich,

    The most common way of fixing hangups, etc under Win2K/XP is to change the settings on the FIFO buffers of the serial port. Open up the Device manager, double click on "Ports" and then double click on the particular serial port you're using. When the properties page opens, click on the tab that says, "Port Settings," and then click the button labeled "Advanced..." Set your receive and transmit buffers to something low like 2, or 4. See if that helps solve the problem.

    Thanks,
    PeterM
  • richlrichl Posts: 3
    edited 2004-08-18 15:02
    Thanks,

    Setting port FIFO buffers to their minimums improved things.· It still hangs but much less frequently.

    - rich
  • edited 2004-08-19 20:22
    I too get the Programming bar stuck sometimes on Windows XP. However, for me it only happens if this window looses focus while in the process of programming the device. For example, when I am having my SX communicate to some code on the PC side, I occassionally try to switch to the PC side to clean it up before running my next test. If I switch over to this application while in the process of programming the SX chip, it will always cause the Programming window to stick. The quickest solution is to do exactly what Guenther mentioned, Quit the debugger and restart the programming session since the latest code has always been uploaded to the SX chip when this happens and there is no need to wait for the upload again.
Sign In or Register to comment.