Shop OBEX P1 Docs P2 Docs Learn Events
Problem debugging on my laptop... — Parallax Forums

Problem debugging on my laptop...

BamseBamse Posts: 561
edited 2006-06-15 15:06 in General Discussion
I have a program that reads the temperature from a DS1624 and I'm trying to debug it.

This seem to work fine on my Desktop, I just hit debug and I can walk through the whole program...
However doing the same thing on my laptop (same software and SX Key), the debug window closes unexpectedly...
It seem to run for 2 to 3 minutes before closing the debug window...

Anyone seen this before ???
Would it help to use a USB to serial adapter in stead of the serial cable ???

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...

/Bamse

Comments

  • BeanBean Posts: 8,129
    edited 2006-06-13 16:31
    Bamse,
    Some notebooks do funny things with the serial port (like shut them down) to conserve power.
    Does it work if you have the notebook plugged into the charger ?
    You could try a USB adapter, but it's kinda expensive for a shot-in-the-dark fix.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • BamseBamse Posts: 561
    edited 2006-06-14 04:47
    Nope, it didn't work...

    I plugged in the charger and re-programmed the SX.
    The actual erase/programming part seem to go well.
    It's just the debugging...

    I'm going to see if I can find any switch to disable power management for the serial port...
    And unless I'm 100% sure I can get the whole thing working with a USB to serial, I'm not buying the adapter...

    Thanks Bean...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BamseBamse Posts: 561
    edited 2006-06-14 05:26
    Got it...roll.gif



    In the Device Manager, Ports (COM & LPT), Communications Port (COM1).

    Double click and select the Port Settings, click the Advanced... button.

    Set the Receive buffer and Transmit buffer to 1 under the FIFO buffers.

    Click OK and OK again to exit the settings...

    Here is the trick, DISABLE and then ENABLE the device... scool.gif

    Or reboot probably works as well...



    Anyway, I walked through my whole program and was able to debug in the same way as on my desktop...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • PJMontyPJMonty Posts: 983
    edited 2006-06-15 07:43
    Bamse,

    Changing the FIFO settings is the standard approach to fixing these sorts of problems. It doesn't always work, but it does work for a large number of cases. I was going to post the info to you, but didn't get on the forum until today. Just curious where you found out to try the FIFO adjuesment.
      Thanks, PeterM
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-15 14:20
    Bamse,

    ·· Rather than turning the FIFO buffers down, we usually recommend disabling them by unchecking the box labeled, "Use FIFO Buffers".· On some systems turning them down does not eliminate the symptoms caused by them being on.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • BamseBamse Posts: 561
    edited 2006-06-15 15:06
    I just tried all settings I could find for the Serial port... wink.gif

    Actually, turning the FIFO buffers off caused a "Transmission Stall" error during the programming cycle...
    However turning them down to 1 seem to work for me...

    Anyway, it works now and I'm converting my BS2 programs into SX/B...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
Sign In or Register to comment.