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.
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
Wayne,
I suspect Byte vs. 16-bit word. The .map file is showing bytes. But everything in the processor is in 16-bit words. Did you check that the memory is properly initialized to zero?
Regards,
David
Wayne Huang said:please help show us where the user might be wrong
I don't think the customer made an error. I can reproduce the problem with a simple test case. I filed the entry CODEGEN-6456 in the SDOWP system to have this investigated. You are welcome to follow it with the SDOWP link below in my signature.
Thanks and regards,
-George
Hello George,
I just wanted to let you know that I'm encountering the exact same problem on the F28388 using the exact same versions of CCS and Code Generation Tools.
Regards,
Pierre
Thank you. I noted your situation in the same SDOWP entry.
Thanks and regards,
-George