Hi Folks,
I have some structs that are stored in DRAM and would like to have all their members initialized to zero.
I note from SPRU514 that this needs to be done by initializing the memory section they are stored in to zero via the linker command file.
However, looking at SPRU514 and SPRU513, I have not been able to figure out the correct way to make this happen.
My project uses the TI support files cmd files "F2802x_Headers_nonBIOS.cmd" & "F28027.cmd" and I have attempted to modify the latter by inserting 'FILL = 0x0' as follows:
SECTIONS { /* ... */ .ebss : > DRAML0 PAGE = 1 FILL = 0x0 /* ... */ } SECTIONS { FOO_Struct : > DRAML0 PAGE = 1 /* ... */ }
Yet this does not seem to be having any effect... Am I completely on the wrong track here?