Part Number: TMS320F28034
Hello,
I am working with Matlab 2016b with the Embedded Code Support package for TI C2000 Processors, v16.2.6.
We use this environment to build Simulink model code into auto-generated c code that then gets build into the .map .a2l .out and .hex files we use.
The code is compiled by the TI compiler for the CCS5 toolchain.
My question is regarding the change in size of one of my static variables in the map file.
In the attached SW_11340_1_withBuffer.h, you can find the structure D_Work_SW_11340_1, which has a Uint32 Buffer[300] on line 375. This buffer has been removed from the project, as seen in SW_11340_1_noBuffer.h.
However, the map file shows the variable SW_11340_1_DWork ( the only instance of this structure) has a size of 0x231 in SW_11340_1_withBuffer.map (line 1019), and of 0x21e in SW_11340_1_noBuffer.map (line 1016).
This size difference is only 19 uint16 spaces, if I am understanding my map file correctly.
Why does removing the 302 Uint32s from the sturcture (Buffer, Index, and Buffer_Sum) not change the structure size in the map file by this much? If the space for SW_11340_1_DWork in the map file does not contain the buffer element, where is the buffer element reserved and how do I determine this?
Please note that this buffer removal (and the simple function around the buffer) should be the only difference capture between these two map files.
Thank you for any assistance in understanding how the map file works,
Neal