Part Number: CODECOMPOSER
Tool/software: TI C/C++ Compiler
Hi,
I'm developing a project with TM4c129 MCU and CCS 6.1.3, Compiler TI 15.12.1.LTS,
In this project, I2C, Ethernet are used, the system is working without any error ,
Now I have used a below statement which is already used in other module makes Fault ISR,
httpd.c (module 1)
data=fault.value[0];
user_i2c.c (module 2)
data=fault.value[0];
the variable "data" is a external variable (type:int)
the variable fault.value[0] is a structure variable, external (type: int)
Trials
I have tried with optimization settings, even off the optimization, but can't able to solve it,
I have changed both variable with "volatile", keyword, result no effect
if command that line (data=fault.value[0];) at any one of the module , the system is working fine without any fault ISR,
Opinions
i. is the same expressions at different module would be single by compiler optimization?
ii. is compiler optimization disturb the same expression?
Iet me know the problem, help to solve it.
Thanks in advance!.........