First of all, ignore the previously posted code for future reference to this thread. It has been fixed and besides the few errors (a result of cleaning the code up for the post), it is not the problem.
We have torn apart and rebuilt our project several times, adding each verified function or set of verified functions piece by piece. into the new project, confirming functionality at each step.
The problem that consistently stops our progress is that it seems to get to large. and we get warnings: L1912: Object <obj> overlaps with another (last addr: <addr>, object address: <objadr>)
(the object is usually _vectab)
I am completely unfamiliar with most things related to solving this problem and we only have a few days left (I remember the meaning banked memory from it's mention in class, but that's about it), so I have a series of questions:
I am using the special edition of code warrior, which should give me 32k to run my program without messing with changing my "#pragma CODE_SEG __NEAR_SEG NON_BANKED" statements right?
– 512K byte Flash EEPROM
– 4K byte EEPROM
– 32K byte RAM
These are the specs of my controller, but I can't seem to figure out what is saved where. and what numbers mean what.
When I comment out a large sections of logical tests, my program runs correctly, and I can find 3 numbers that relate to size:
At the bottom of the project:
code: 11k, data: 8k
In the bin folder:
Full_Chip_Simulation.abs 296KB
Full_Chip_Simulation.abs.glo 10KB
Full_Chip_Simulation.abs.s19 10KB
Full_Chip_Simulation.map 219KB
When I uncomment all the code that works independently (it is I can comment out different parts and the other parts will work, but not all of them in one) I get total, or almost total non-functioning including code before the overlapping objects are used:
At the bottom of the project:
code: 12k, data: 8k
In the bin folder:
Full_Chip_Simulation.abs 297KB
Full_Chip_Simulation.abs.glo 11KB
Full_Chip_Simulation.abs.s19 11KB
Full_Chip_Simulation.map 220KB
I can't seem to find anything that relates this increase in these numbers to why my code loses functionality.
What is significant about this specific increase?
What can I do to avoid this apparent running out of space without reducing the size of my code (which still needs to get bigger)?
Also, I talked to a grad student experienced in this sort of thing briefly, who dismissed this and said I had plenty of space, and based on the numbers I see, he appears to be right, but based on the problems I'm getting, he appears to be wrong. We're totally stuck.
Thanks to everyone for your help.