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: Code Composer Studio
I'm writing an assembly language program and building it through CCSv8.
I'm initialising variables as :
"
.data
a: .word 0xC000
b: .word 0x4000
"
This should initialise the variables a and b with values 0xc000 and 0x4000 respectively.
However, when I'm looking at their respective values in memory, it's showing FFFF and FFFF for both.
Why is it happening?
Disassemble your final executable final with a command similar to ...
% dis2000 --all final_executable.out
The output you see for the .data section should be similar to ...
DATA Section .data (Little Endian), 0x2 words at 0x00000040 00000040 a: 00000040 ___data__: 00000040 c000 .word 0xc000 00000041 b: 00000041 b000 .word 0xb000
Is that the case?
Thanks and regards,
-George
This proves the assembler and linker work correctly. The problem must be in how the code is loaded (perhaps flashed?) into the system. Those details are beyond my expertise. I'll notify the C2000 experts about this thread.
Thanks and regards,
-George