Part Number: MSP430FR5969
Tool/software: TI C/C++ Compiler
When I compile w/ optimizer enabled, a variable passed to an inlined function from an ISR is incorrectly assumed to be 0.
The issue occurs at line 175 in USCII2C.cpp:
UCB0TXBUF = curCmd;
even if isWriInt == 1, the following line is not executed. If I turn off the optimizer, it works.
Your project builds with MSP430 GCC compiler version 4.6.3. This is a relatively old compiler. Is it practical for you to upgrade? Please do that by using the Apps Center feature in Code Composer Studio. I am not certain that upgrading will fix your specific problem, but I think your chances are good.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.