Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 217036

Forum Post: RE: TMS320F28379D: v22.6.1.LTS compiler not catching variable redefinitions in the same source file

$
0
0
In my actual code, I am using the #pragma LOCATION and RETAIN directives with over 7000 variables. Example code with #pragma LOCATION and RETAIN directives is shown below. The compiler doe sn't catch the variable redefinition for this situation. int xyz; #define BASE 0xB000 #pragma LOCATION(abc,BASE+7000) #pragma RETAIN(abc) int abc; #pragma LOCATION(abc,BASE+8000) #pragma RETAIN(abc) int abc; int main(void) { abc++; xyz = abc; return 0; }

Viewing all articles
Browse latest Browse all 217036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>