Part Number: MCU-PLUS-SDK-AM243X
Hello,
after some hours of debugging I noticed CCS sometimes shows wrong values for a symbol. In my current case I have an uint8_t readStatus[2] = {0}; -array. This array always shows 0, even if it's in fact not since a check for [0] == 0x02 is done later on and that returns true. If I check the variable in CCS via hovering it just says "Debug Information" for every field.
I am using CCS 12.2 and LTS 2.1.3 as compiler. The Code part is a member-function of a C++-class.
Compiler-flags used are:
-Wno-gnu-variable-sized-type-not-at-end
-mcpu=cortex-r5
-mfloat-abi=hard
-mfpu=vfpv3-d16
-Wno-error=ti-macros
-Wno-unused-function
-Wno-invalid-command-line-argument
-fno-rtti
-ffunction-sections
-fdata-sections
-flto
-mno-unaligned-access
-Wall
-Wextra
-Og
-g
linker options:
-Wl,--reread_libs
-Wl,--ram_model
-Wl,--diag_suppress=10063
-Wl,-e_vectors
This is what CCS shows:
And the code in question:
You see a SUCCESS. This is only possible if the [0] field is 0x02 in our case.
Can this be fixed? Do I need to set other flags as well?
Best regards
Felix
