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