Tool/software: Code Composer Studio
So running CCS v8.3.0.00009 with the following compilers installed:
- TI V18.12.1.LTS
- TI V18.1.4.LTS
- GNU v7.3.2.154
I get the following error:
Function '__delay_cycles' could not be resolved
In projects being compiled with GNU v7.3.2.154.
I found this forum post (https://e2e.ti.com/support/tools/ccs/f/81/t/680225?tisearch=e2e-sitesearch&keymatch=__delay_cycles
but it left me confused, and I don't think it actually resolved any problems.
I have this minimal example that shows the problem on my projects:
#include <msp430f5529.h> int main () { P1DIR |= BIT0; P1OUT |= BIT0; while (1) { P1OUT ^= BIT0; __delay_cycles(1000000); // @suppress("Function cannot be resolved") } return 0; }
Note that this code does work, the delay DOES work, but without the comment with the '@suppress' compilation will error.
Edit: Formatting, and somehow a sentence got left out