ADDRESS SPACE OVERFLOW CONST | Cypress Semiconductor
ADDRESS SPACE OVERFLOW CONST
I'm looking for some memory optimization.
at one stage I build my project and it shows my memory mapping as
Program Size: data=22.0 xdata=3506 const=5803 code=16419
ERROR: L107: ADDRESS SPACE OVERFLOW CONST ?CO?MAIN 0000BEH
ERROR: L120: CONTENT BELONGS TO ERRONEOUS SEGMENT ?CO?MAIN
Now if I remove few lines from my code it reduces 18 BYTES as
Program Size: data=22.0 xdata=3506 const=5803 code=16401
Flash used: 22204 of 32768 bytes (67.8 %).
SRAM used: 3506 of 4096 bytes (85.6 %).
It means no change in memory other than code memory so why the error is overflow from const memory.
and if we consider about code memory then yet 10546 BYTES are free to use.
Is there any relation with no. of components used in topdesign and the flash memory we can use.