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/MSP432P401R: Error: too many arguments to function when invoking BSL using code from the documentation on Energia project

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

I am trying to invoque the BSL with the following code :

#define BSL_PARAM 0xFC48FFFF // I2C slave address = 0x48, Interface selection = Auto
#define BSL_API_TABLE_ADDR 0x00202000 // Address of BSL API table
#define BSL_ENTRY_FUNCTION (*((uint32_t *)BSL_API_TABLE_ADDR))
((void (*)())BSL_ENTRY_FUNCTION)((uint32_t)BSL_PARAM); // Call the BSL with given BSL parameters

It compiles fine when I use this code inside a C project (like the uartecho exaple) 

However, when I use it inside a Energia project in CSS, I get the error "Too many arguments to function" on this line

((void (*)())BSL_ENTRY_FUNCTION)((uint32_t)BSL_PARAM); // Call the BSL with given BSL parameters

It's probably something stupid but I cannot find out what the issue is
See compiler project properties for both projects:

Thanks

**Attention** This is a public forum