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.
Hello,
Local static variable's value was wrong in express window. It's struct variable and when declared as file scope showed right value.
And I checked symbol address in module window. It shows different address with map file.
I'm guessing that wrong symbol address caused wrong value display.
M4 core and CCS5 is in use. Compiler is TI arm compiler 5.2.4.
Is there patch for this?
Best regards,
Wilson.
You may be encountering a problem where the compiler generates the incorrect address in the debugging information for a local static variable. See https://e2e.ti.com/support/development_tools/compiler/f/343/t/335888 for a potential work-around of compiling with --common=offWilson Choi said:I'm guessing that wrong symbol address caused wrong value display.
Hi all,
I have the same issue using a TIC5545 wit compiler version V4.4.1. i tried to include the flag --common=off to the build process but this is not supported by the compiler, is there another falg i can use?
Jorge,
Thanks in advance for your help.
Can you post an example project which demonstrates the problem?Jorge Ortega said:I have the same issue using a TIC5545 wit compiler version V4.4.1. i tried to include the flag --common=off to the build process but this is not supported by the compiler, is there another falg i can use?
I think you are encountering a different problem, since I ported my examples for the MSP430 v4.2.3 and ARM v5.1.5 compilers to the C5500 v4.4.1 compiler and haven't been able to re-create the problem.
Attached are the example projects for a TMS320VC5505 device VC5505_static_variables.zip
The CCS 7.0.0.00042 debugger showing the correct values for local static variables in the VC5505_static_variables and VC5505_class_allocation example projects: