More debugging tips

From Mech
Revision as of 13:44, 19 January 2008 by LIMS (talk | contribs)
Jump to navigationJump to search

Use your LEDs

  • Indicate phases of program operation by illuminating LEDs. In particular a lot of electrical faults cause the PIC to resst. The first thing your code should do is illuminate a "startup LED" for 100mS. If you see that flashing repeatedly, you'll know your PIC is reseting.


Runs with ICD unit attached, only

  • Make sure you are not in debugger mode. Try adding the NOBROWNOUT fuse at the top of your code.