MSPM0L1306: Unknown type name error even if declaration is included in the header file

Part Number: MSPM0L1306

Tool/software:

Hi Team,

I’m facing this below error in CCS tool while initializing ADC module even if I have included proper header files where it is declared.

 

error: unknown type name 'Adc_mcalClkPrescale_t'

error: unknown type name 'Adc_mcalResolution_t'

error: unknown type name 'Adc_mcalIntNumber_t'

 

Could you please let me know why is it not reading the declarations from the header files.

Regards,

Sruti

  • Hi Sruti,

    Which header file are these definitions in?  Can you actually see them in the file?

    What version of CCS and SDK are you using?

  • Yes i can see the definitions in the header files. CCS version : 12.4   SDK : mspm0_sdk_2_01_00_03 . 

    Also, I'm getting the below error:

    "C:/ti/mspm0_sdk_2_01_00_03/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_01_00_03/source" -DAUTOSAR_431 -gdwarf-3 -MMD -MP -MF"empty.d_raw" -MT"empty.o" @"./device.opt" -o"empty.o" "../empty.c"
    subdir_rules.mk:9: recipe for target 'empty.o' failed

    Please let me know how to solve this. I'm from Pune,India . Can i get immediate support from Bangalore/Pune location

  • 1. Your SDK version is too old. I would suggest you to try the latest CCS 12.8. Please check if this solve your problem. 

    2. If it is still not work, can you load a new empty code example and then add your own code into it?