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: Problem with old program

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

I'n trying to use a code that I had written several years ago and that was working.

If I try to flash it now, the compiler doesn't recognize some functions like CSCTL0 = DCORSEL_3; or INT_EUSCIA1 for example.

It seems that these functions are not recognized anymore.

Could you please help me with that?

Thank you

  • Hello,

    Sylvain Dutrieux said:
    If I try to flash it now, the compiler doesn't recognize some functions like CSCTL0 = DCORSEL_3; or INT_EUSCIA1 for example.

    I assume you are getting build errors when trying to debug the project. Can you provide all the text in the build console? You can copy and paste to a text file and then post the text file to this thread.

    Thanks

    ki

  • Hi, thank for your answer ; here are the errors. The code was perfectly working before. I'm currently changing the syntax of the code. Thank you

    Description    Resource    Path    Location    Type
    #20 identifier "CS_CTL1_SELS3" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 134    C/C++ Problem
    #20 identifier "FORCE_LPM_ENTRY" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 310    C/C++ Problem
    #20 identifier "PCM_CTL_KEY_VAL" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 310    C/C++ Problem
    #20 identifier "PCMCTL1" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 310    C/C++ Problem
    #20 identifier "PSSCTL0" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 306    C/C++ Problem
    #20 identifier "PSSKEY" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 305    C/C++ Problem
    #20 identifier "SCB_SCR_SLEEPDEEP" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 316    C/C++ Problem
    #20 identifier "SCB_SCR" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 316    C/C++ Problem
    #20 identifier "SVSLOFF" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 306    C/C++ Problem
    #20 identifier "SVSMHOFF" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 306    C/C++ Problem
    #20 identifier "SYSCTL_SRAM_BANKRET" is undefined    main.c    /Copy of Snap_reception_tentative_LPM    line 313    C/C++ Problem
    gmake: *** [main.obj] Error 1    Copy of Snap_reception_tentative_LPM             C/C++ Problem
    gmake: Target 'all' not remade because of errors.    Copy of Snap_reception_tentative_LPM             C/C++ Problem

  • Where are those identifiers defined? It looks like some header file that defines them is not being included. Did you make a copy of the original project?

  • Yes, it is the exact copy with all files included... it seems like the functions are not recognized anymore. I had to update all registers and bits (for example INT_EUSCIA1 has become EUSCIA1_IRQn)

    An idea why?

    Thank you

  • It is hard to say without having the project locally to examine. I suspect you are relying on MSP device support files and those files have changed when you updated CCS or the SDK version you are using.

    I will move this thread to the MSP forum. The experts there can help you further.

    Thanks

    ki

  • Hi Sylvain,

    When you developed the old code, what was the version of the CCS and MSP driverlib that you were using?

    When you are rebuilding now, what is the version of the CCS that you are using?

    Srinivas