View Single Post
  #11   Spotlight this post!  
Unread 09-10-2007, 06:01
FoleyEngineer's Avatar
FoleyEngineer FoleyEngineer is offline
Registered User
AKA: John Crombe
FRC #0910 (Foley Freeze)
Team Role: Coach
 
Join Date: Jul 2006
Rookie Year: 2005
Location: Madison Heights, MI
Posts: 108
FoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond reputeFoleyEngineer has a reputation beyond repute
Re: Error in code light on, trouble finding error

If the default code compiles, downloads and runs fine, then you can solve this by trial and error in pretty short order.

Just add in your "new" code one section at a time, compiling and downloading after each new "section". As soon as it quits working you've found a problem. Split that section in half and repeat. Before long you should have it figured out. The whole process really shouldn't take very long.

Good luck!

P.S. I remember not initializing one of the serial ports (as I wasn't using it) and that caused me untold problems (including the red light). I did what I suggest above and tracked it down right to the line at fault. Dividing by 2 makes pretty quick work of a problem when used recursively.
__________________

2014 Buckeye Champions - thanks 846 & 639, Troy Champions - thanks 33 & 5193, Imagery, Entrepreneurship & Industrial Design Awards
2013 Kettering Champions - thanks 70 & 862, Three Imagery Awards
2012 Western Mich Finalist - thanks 1918 & 85
2011 Trav. City Web Site, Troy Xerox, Mich State Semi Finalist & Judges Awards
2010 Kettering Champion - thanks 67 & 70, Kettering Rockwell Innovation 2010 Troy Finalists - thanks 33 & 288, and Rockwell Innovation
2009 Kettering QF, Detroit Finalists Detroit Creativity Award, Troy Semi-Finalists Troy Creativity Award
2008 WMRI Finalists - thanks 1243 and 904, 2008 Kettering Champion - thanks 67, 1075 and 2619
2008 IRI Judges Award Winner, Great Lakes Finalists - thanks 66 & 217, Western Mich
2007 Curie Division Champions - thanks 330 & 1270

Last edited by FoleyEngineer : 09-10-2007 at 06:05.