Hi,
I got the Error L107: space address overflow (Space: HCONST). I read all related threads in the forum, but can not find answer.
The structure of my project is: I use four banks for codes and the remaining four banks for HCONST(it can also use the free space in code banks). Use #define xx_yy 0/1 to decide if the xx_yy related functions and variables should be included by enclosing the functions and variables in compiling statment #if xx_yy ... #endif.
It works well when I set #define xx_yy 1. L107 occurs when #define xx_yy 0. I know for uncalled segments/functions, variables of that function will consume DATA and have its own set of DATA which is not overlayed.
But for my case, it is HCONST overflows and I do not think it is related with uncalled segments because I already exclude it with #define xx_yy 0 when compiling.
Could anyone give me a hand? Thanks very much
Henry