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.

CCS/TMS320F28377D: Debugger information, wrong address of pointers

Part Number: TMS320F28377D


Tool/software: Code Composer Studio

Hi

Please check previous thread.

In the mean time I installed CCS8.3 and tried with a new workspace. -> Same issue.

I created a small test project based on the blinky example of c200Ware and finally found out that it is an optimization issue. 

I have following function:

Assambly code without optimization:

Assambly code with optimization: Optimization Level 0 (Register Optimizations)

With optimization the address of the pointer is not copied on to stack and stays in the auxilary register XAR4.

But the debugger points to the memory address of XAR4L which is only the lower 16bit of the address.

The structure "DebugStruct" is at memory location 0x0001 0006 and not 0x0000 0006