Other Parts Discussed in Thread: MSP430G2553
Hey guys,
I just installed CCS v6.0.1.00040 and chose to install the latest GNU GCC compiler for the msp430 during the installation setup. Version GNU v4.9.1 was installed. I'm using a MSP430-EXP430G2 Rev 1.4 Launchpad with a MSP430G2553.
I used a project which worked perfectly with the TI compiler and then switched to the GNU compiler. Compiling works like a charm, but I discovered something very interesting: the global variables are not initialized as written in the code.
More specifically, there are two global variables:
unsigned char matching=1;
volatile char ads_reset=1;
Compiling with the TI compiler sets both variables to 1(checked in "Expressions" window in Debug mode before running the program), whereas using the GNU v4.9.1 sets only ads_reset to 1 and matching is 0. Sometimes ads_reset is set to 67, I couldn't think of any reason why that happened.
I also tried the GNU v4.8.0 (Red Hat) compiler which works just fine, no problems there. Can you think of any reason for this problem?
Andreas