10-20-2005 10:13 AM
if (Tasr_Vi == 0) // Tasr_Vi currently has a value of 0x228360{/* BUG: We got here!! */}
10-20-2005 01:42 PM
Ken,
First off, I would be more than happy to look at your code and work on figuring out what is going on.
However, based on looking at your attached screenshot, there is something else I think we can try first. The watch on the Tasr_Vi variable is local to SR192_Proj.c, while the other watch expressions are local to uutcsc02.c. Depending on how this variable is scoped, this could explain the difference in the values (which could be correct). This could be caused by Tasr_Vi being a static global variable defined in both files, etc. Try changing the file context for Tasr_Vi to be in uutcsc02.c and see if it then shows the value as being zero (this would be my guess). If this is not the case, let me know and we can look into this further.
Thanks,
-alex
10-20-2005 02:46 PM
10-20-2005 02:53 PM
10-20-2005 03:06 PM
10-21-2005 09:47 AM
You can solve it as well when you define one of the two as an extern.
With #ifdef you could switch back and forth between extern and static whenever a module was used by itself.
Zero can have quite a large actual value if it is used in a political or military context, btw... but that's another forum 🙂