View Single Post
  #9   Spotlight this post!  
Unread 06-12-2004, 09:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Arrays on the PIC?

Quote:
Originally Posted by Mike Betts
Two possibilities come to mind. Your student may have been using a byte index in RAM and did not change it to a word for ROM. The other is that, if he or she was using pointers, the pointer had to change to ROM CONST also...

At any rate, it sounds like a moot point now. If anyone else has problems, let us know...
Both suggestions are possible. It only took 5 minutes to debug which is why I don't remember the details, just that it occurred. I was helping him fix other errors at the same time, too. It's the kind of thing that can drive a student bonkers, but is just fun for us mentors.

I have on my "to do" list an off-season debugging workshop where the more advanced student programmers have to find what's wrong with a collection of misbehaving projects and code ranging from obvious MPLAB issues to subtle code problems.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-12-2004 at 09:18.