AnsweredAssumed Answered

value is behaving randomly

Question asked by rahul krishna on Jan 18, 2016
Latest reply on Jan 27, 2016 by lama

I am facing a very tricky scenario. I am using s21x i have found a code as follows

the definition as in file1.c

unsigned char value[12];

 

and the declaration as follows

extern unsigned char value[11];

clearly both do not match and it is wrong and i am facing an issue where the value modified in file2.c as

value[11] = some value; is behaving randomly that is it goes to some unexpected value. specifically value[11] is behaving randomly. Since the issue is difficult to reproduce can i assume that above mismatch can be a problem. How the code will behave in above cases. Please help.

Outcomes