Hey everyone. I write code for an introductory programming course
using microcontrollers.
I wrote some code for an address book of sorts. In the code, I
declared a variable...
char names[10][16]={" ",....};
The rest of my code consisted of different ways to access, edit and
display the entries, etc.
FACTS:
1. The code compiled without a problem.
2. My code was well under the size limit imposed by codewarrior
(uggg...codewarrior)
PROBLEM:
The code wouldn't work at all! I walked the code through the
debugger, and it wouldn't even enter my main function.
TEMPORARY FIX:
I found that my code worked flawlessly if I redefined my variable
as...
char names[10][8]={" ",....};
DISCUSSION:
The only thing I can think of is that somehow the board could not find
a contiguous 160 Bytes to store my original 2d array. What do you all
think of this hypothesis?
EXTRA INFO:
Using HCS12DG256B
Using Serial Monitor
PS: I'm a graduate student in mechanical engineering. I have a
limited background in programming, but I seem to be a natural...as it
were. I'm really interested in learning more about the memory models
used on the HCS12(X) series...if anyone could point me to a good
source or give me some pointers to help me understand the manual (it's
a little confusing and all this learning gets crammed into my free
time...as if I had any of that!)
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )