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.

MSP430FR6989: Importing project written for other MCU

Part Number: MSP430FR6989

Hello

I'm really stuck with very strange errors when migrating from STM8L , like:

#170 a function type is not allowed here 

in header files, which is very strange. Where else should it be then?

or


#102 "GetCurrentFlow" has already been declared in the current scope 

but it never was and so on.

I think I've added header files correctly

#81 storage class may not be specified here

Where can I find  a manual that has these errors listed? I only came across 'MSP430 Optimizing C/C++ Compiler" which is about optimizing as stated.

  • Hello Adam,

    Sorry for the delay, Were you able to get through these errors?  What IDE and Compiler are you using?  Code composer?  

    Maybe it's just linking issues in your project?  

    Thanks,

    JD

  • I thought this post was unanswered...  Nothing indicating in main window when I enter forums, I was going to  make other post...

    What I found out is that it was related to C++ compatibility. In some headers files there were some definitions of functions  and structs etc. The solution for me was...to move it to some c files, and leave there only declarations, how it should be in a normal plain C. Basically I don't see these errors anymore. But there are sometimes headers that don't have corresponding C file. I think some errors went away when I pasted that magic spell:

    #ifdef __cplusplus
    extern "C" {  // only need to export C interface if
                  // used by C++ source code
    #endif

    in main.c, but if I only see that something is undefined again, although when clicked with CTRL points right where it is, I just move it to some C file, I don't have time to find alternative ways.

    Or do you have some other solution?

**Attention** This is a public forum