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.

TMS320F28377D: Generated assembly codes don't access the right address for some data in a structure

Part Number: TMS320F28377D

Hi team, 

Customer is using v15.12.3.LTS version compiler, and turn off the optimization, and the compiler configuration is summarized as following: 

In their codes, they defined a structure as following in a header file: 

and in CLA file, they defined a variable named "ctl_par": 

And in a C file, they do following operations: 

But they found that the Vpn_sep_co and id_n_lmt, id_p_lmt are not updated after those operations. 

So they changed to following, and all variables can be updated now. 

Compare the two codes' disassembly, I can find that the assembly codes don't access the right address for the Vpn_sep_co and id_n_lmt, id_p_lmt, for the first case. 

The address for Vpn_sep_co should be DP #0x203 and @0x3e, but in the first case, the assembly codes will access to DP #0x203 and @0x3e. 

Please check this issue in your side, do you think it is a compiler bug ? 

Thanks and Regards, 

Will