This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F280049: Uninitialized section initialization during COFF to EABI

Part Number: TMS320F280049

Tool/software: TI C/C++ Compiler

Dear Champs,

I am asking this for our customer.

The user is trying to convert COFF to EABI, but he has problems in uninitialized section.

He has referred to 

http://processors.wiki.ti.com/index.php/C2000_EABI_Migration#C28x_EABI_Sections

But still have this problem.

The environment is:

CCS: 9.0.1.00004

Compiler: v18.12.2

The linker command is set:

(1)    –zero_init=on

(2)    –cinit_compression=off

Below figure is the map file related to cinit table

where .data is initialized section

.CLAData, .StackCLA abd .bss are uninitialized sections.

These are confirmed to be correct and expected.

Below figure are the memory data when it was loaded onto the target.

By cinit table 0x8F050

(1)    Initialized section : the data and initialization result are correct.

(2)    Uninitialized section:

the number of the memory to be 0 is only half of that of the map file

the initialization is not correct. Only half of them is cleared. 

 


Why the uninitialized section seemed correct in the map file by the linker, but it was wrong after the code was loaded onto the target? 

Would you please help show us where the user might be wrong? Eg, in the setting or else?

Wayne Huang