Hi! I have rather a program running on a ADuc 824 (256Bytes DATA RAM?). When I link I get the following errors: ERROR L107: ADDRESS SPACE OVERFLOW SPACe: DATA SEGMENT: ?DT?FNCAPTUREDATA?PTSC_UH LENGTH: 000005H ERROR L107: ADDRESS SPACE OVERFLOW SPACe: DATA SEGMENT: ?DT?FNFLASHREAD?PTSC_UH LENGTH: 000004H ERROR L107: ADDRESS SPACE OVERFLOW SPACe: DATA SEGMENT: ?DT?FNDELAY?PTSC_UH LENGTH: 000004H All the segments are Functions. The memory map gives: data =151.0 xdata =49152 const=0 code=3403 If I reduce data to 117 by removing some variables I do not get this error. How do I use these functions AND keep my variables? All the best Andrew
If they won't fit, they won't fit - so you'll have to get rid of something! Or, rather, move it/them somewhere else. Are you keeping your variables local, so that they can be overlaid? Have you enabled overlaying?
Hi! The local variables only take up 65bytes by themselves (hand counting them). So do functions actually use some of the local memory too? How do I enabled overlaying? All the best Andrew
If you are using optimisation level 2 or greater then data overlaying is enabled. I think you should take a look at the .map file to find out exactly what is going where in your data space.