Hello, i might have found a problem with code generation and optimization. .
I use the command: msp430-gcc -mmcu=msp430x1132 -g -O2 -Wall -c -o Merten_Argus.o Merten_Argus.c This shows insight im mixed View: <<MA_get_brigtness.mix>> Here are the *.i and *.s files: <<Merten_Argus.i>> <<Merten_Argus.s>> In Funktion MA_get_brightness, the statement: buff *= im_SegA.im.MA_gain_multipier; is not compiled correctly. But when I delete the irrelevant line buff = (U32)(MA_brightness & 0x07ff ); or switch off the optimization, everything works as desired. I have already made a workaround for my problem, but maybe my report helps to improve mspgcc. Kind regards Daniel Schürmann
MA_get_brigtness.mix
Description: Binary data
Merten_Argus.i
Description: Binary data
Merten_Argus.s
Description: Binary data