Shop OBEX P1 Docs P2 Docs Learn Events
Lesson learned: Debugging random crashes. — Parallax Forums

Lesson learned: Debugging random crashes.

__red____red__ Posts: 470
edited 2014-08-04 15:16 in General Discussion
Spent 3 or so hours writing a device driver for a new SPI device.
Spent 4 or so hours trying to debug random crashes.

Spent 15 seconds replacing the battery.


Lesson Learned: Always develop on a power-supply.

Comments

  • idbruceidbruce Posts: 6,197
    edited 2014-08-04 07:49
    That is a very good tip :)
  • ElectrodudeElectrodude Posts: 1,658
    edited 2014-08-04 11:09
    I once thought I had fried the BS2 on my BOE-Bot but I didn't discover until after I got a BS2PX to replace the BS2 that the BS2 still worked and the batteries were just dead.
  • GadgetmanGadgetman Posts: 2,436
    edited 2014-08-04 12:32
    There are no random crashes...

    But sometimes the reason behind them can't be readily found....
  • Heater.Heater. Posts: 21,230
    edited 2014-08-04 13:40
    Good grief, I recently spent some hours wondering why my new hand made Propeller on a proto board did not work. It programmed OK according to propeller-load. Everything in the circuit checked out OK, power, ground, reset, etc.

    Turned out the LED I was expecting to flash was dead. WTF? I have never killed a LED, except back in '82 when I stress tested a red LED to death just to see what it's limits were.

    Lesson learned: No matter what you do Murphy is out to get you.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2014-08-04 14:37
    Heater. wrote: »
    Good grief, I recently spent some hours wondering why my new hand made Propeller on a proto board did not work. It programmed OK according to propeller-load. Everything in the circuit checked out OK, power, ground, reset, etc.

    Turned out the LED I was expecting to flash was dead. WTF? I have never killed a LED, except back in '82 when I stress tested a red LED to death just to see what it's limits were.

    Lesson learned: No matter what you do Murphy is out to get you.

    Methinks you overheated the LED during your overzealous soldering, some of these packages are just plastic and the leg moves a bit breaking the internal bond wire. Or maybe it just LED you astray :smile:
  • Heater.Heater. Posts: 21,230
    edited 2014-08-04 15:16
    Err, yep and yep.

    I am easily LED astray.
Sign In or Register to comment.