Tool/software: TI C/C++ Compiler
Hello,
I'm working on the controlcard F2837xD.
TO prepare a future Bootlader, I need to have in my code a constante which contains the total size taken by itself in the FLASH
In my case, the flash contains many section:
codestart : > BEGIN, PAGE = 0
.text : > FLASH, PAGE = 0, ALIGN(4)
.cinit : > FLASH, PAGE = 0, ALIGN(4)
.binit : > FLASH, PAGE = 0, ALIGN(4)
.pinit : > FLASH, PAGE = 0, ALIGN(4)
...
/* Initalized sections go in Flash */
.econst : > FLASH, PAGE = 0, ALIGN(4)
.switch : > FLASH, PAGE = 0, ALIGN(4)
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
So the code should be able to copy itself in an external SPI NOR flash. Then I need to know the size of data to copy from begin of FLASH Section.
First solution will be to copy all FLASH but this is not optimal. I'm really interested by copy only the number of data really present in the µC Flash..
How know this size?
Thank