This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430FR5969: Expected an expression, identifier "i" is undefined error.

Part Number: MSP430FR5969


Tool/software: Code Composer Studio

I was utilizing this line of code to display an output:

125               for(int i = 0; i < sizeof buffer; ++i) {
126                     printf("%02x", buffer[i]);};

and received the following errors, 

"../main.c", line 125: error #29: expected an expression
"../main.c", line 125: error #20: identifier "i" is undefined
"../main.c", line 126: error #2632: Modifiers are not allowed in printf_support=minimal mode 

Of course when I remove the modifier the error from line 126 is amended but is there a different way to modify the output then? 

Thank you :)