FAA
Tester - PRO for PSoC
Reged: Jul 19 2007
Posts: 28
|
|
The project is based on a CY8C27443 with only one 256 bytes page of ram memory, but the linker reports 412 bytes of ram memory:
Quote:
Linking.. HI-TECH C COMPILER (Cypress PSOC) Pro candidate build 2249 V9.61PL1 Copyright (C) 1984-2008 HI-TECH SOFTWARE Memory Summary: Program space used 1581h ( 5505) of 4000h bytes ( 33.6%) Data space used 19Ch ( 412) of 100h bytes (160.9%) Comparative memory usage (excludes absolute areas and stack variables) ROM used: 4716 bytes RAM used: 332 bytes vera02ht - 0 error(s) 1 warning(s) 12:40:13
It seems the difference is in SSCParmBlk, which is declared in startup.as with only 8 bytes, but according to the map file there are 100H bytes reserved:
Quote:
CLASS RAM SSCParmBl 0 0 100 1
Is this normal?
Regards
FAA
|
clyde
HI-TECH team member
   
Reged: Oct 16 2003
Posts: 633
|
|
The flash library routines have an incorrect declaration for the ssc_parmblk ram area, which makes it appear to occupy 256 bytes instead of only 8. This declaration is never used by any of the flash code, so it doesn't affect the generated code, but it fools the compiler driver into thinking there is another 256 bytes in use. Subtract 248 (i.e. 256-8) bytes from the reported number to get the correct value.
Clyde
|
FAA
Tester - PRO for PSoC
Reged: Jul 19 2007
Posts: 28
|
|
Clyde:
Thank you for your fast reply.
Regards,
FAA
|