Tool/software: TI C/C++ Compiler
Hi,
it took me half a day to discover the following issue: I try to initialise a structure that crosses an AMODE = 0 page using inline functions, -O2 set. The structure starts at 0x809c, the element I want to set is at 0x80c0 = page 203, offset 0. Compiler sets 0x8080 = page 202, offset 0 instead (red 5.0).
I hope the CCS screenshot gives you enough additional information.
A
#pragma DATA_ALIGN(pctf, 0x40);
/* position controller as transfer function */
tdf2tf pctf;
provides a workaround.
Is this a known issue? If requested, I think I can build a test case for you.
Thanks,
Frank