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.

MSP430F5529: error: #41 expected an identifier

Guru 18605 points
Part Number: MSP430F5529


Hi all,

I just inherited an ongoing project. I think it was developed in 2016.

Code is for msp430f5529-based board. It is currently running, working and selling.

I have been able to import it to CCS10.x. It was developed for CCS6 but, as long as I have the proper tools versions, I don't think this is gonna be a problem

I was able to install its TI-RTOS 2.20.0.06 dependency as long as a v18.x compiler (required v15.x).

However, I reached a point I cannot solve the compilation "error #41 expected an identifier".

It takes me to file msp430f5529.h, line 3707.

SFR_8BIT(USBIEP0BUF);                         /* Input endpoint_0 buffer */
SFR_8BIT(USBOEP0BUF);                         /* Output endpoint_0 buffer */

When ctrl+clicking the USBIEP0BUF word, it takes to file defMSP430USB.h, line 178

//input and output buffers for EP0
#define USBIEP0BUF 0x2378
#define USBOEP0BUF 0x2370

When ctrl+clicking the macro definition, it opens a file dialog

Any idea is appreciated Slight smile Of course, feel free to ask about any other info you may require.

**Attention** This is a public forum