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.

ERROR: identifier "boolean" is undefined

Other Parts Discussed in Thread: HALCOGEN, TMS570LS1227

Hi 

I am trying to merge the FEE parts into the UCOS-II.

The source codes of FEE parts is generated by HALCoGen with no change by me. And the errors like below occurs:

'Building file: D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/source/ti_fee_main.c'
"D:\workspace_v6_1\SCU-new\SCU\Drivers\CCS-HALCoGen-714\include\Device_types.h", line 112: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 253: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 335: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 337: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 339: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 340: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 341: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 342: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 343: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 344: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 387: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 388: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 420: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 429: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 437: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 438: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 448: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 449: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 450: error #20: identifier "boolean" is undefined
"D:/workspace_v6_1/SCU-new/SCU/Drivers/CCS-HALCoGen-714/include/ti_fee.h", line 451: error #20: identifier "boolean" is undefined

It is so strange :(

  • Hi,

    What is the HALCoGen version you are using?

     

  • Hi Vishwanath,

    It's HALCoGen 04.04.00.
  • Hi,
    I generated FEE code using HALCoGen 04.04.00 for TMS570LS1227 device and was able to compile the FEE example available at HalCoGen->Help->Examples.
    You can refer FEE example and try to compile. If you still have problems, let us know.
  • Hi Vishwanath,

    After I updated the HALCoGen to 04.05.00, the strange build errors above are disappeared. And here are some new build errors which also should not occur:

    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/include/stdbool.h", line 26: warning #48-D: incompatible redefinition of macro "false" (declared at line 77 of "C:\ti\Hercules\F021 Flash API\02.01.01\include\Types.h")
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/include/stdbool.h", line 27: warning #48-D: incompatible redefinition of macro "true" (declared at line 80 of "C:\ti\Hercules\F021 Flash API\02.01.01\include\Types.h")
    "D:/SCU-new/SCU/Drivers/CCS-HALCoGen/include/hal_stdtypes.h", line 62: warning #303-D: typedef name has already been declared (with same type)
    "D:/SCU-new/SCU/Drivers/CCS-HALCoGen/include/hal_stdtypes.h", line 67: warning #303-D: typedef name has already been declared (with same type)
    "D:/SCU-new/SCU/Drivers/CCS-HALCoGen/include/hal_stdtypes.h", line 72: warning #303-D: typedef name has already been declared (with same type)
    "D:/SCU-new/SCU/Drivers/CCS-HALCoGen/include/hal_stdtypes.h", line 91: warning #303-D: typedef name has already been declared (with same type)
    "D:/SCU-new/SCU/Drivers/CCS-HALCoGen/include/hal_stdtypes.h", line 96: warning #303-D: typedef name has already been declared (with same type)
    "D:/SCU-new/SCU/Drivers/CCS-HALCoGen/include/hal_stdtypes.h", line 101: warning #303-D: typedef name has already been declared (with same type)

    And these will not happen in the FEE example build...
    It seems that some strange build errors of *.h have something to do with the HALCoGen/CCS/compiler(etc.) version....
    I will continue to try to find the rootcause of this....
  • Hi,

    We couldn't reproduce the issue with HALCoGen v04.05.00.

    Are you including compiler's Std_Types.h anywhere in your project? In HALCoGen v04.05.00, all the fee files include hal_stdtypes.h generated by HALCoGen instead of compiler's Std_Types.h header file.

    It will be nice if you could share the project.

    Thanks and Regards,

    Veena

  • Hi Veena,

    In order to avoid the influence of the other parts of the project, I make a project just only including the FEE parts codes.

    1. My compiler version is 5.2.4, and HALCoGen is HALCoGen: 04.04.00 - Released 03.April.2015.

    2. I generate the source codes using the HALCoGen with the config files CCS-HALCoGen-714.dil and CCS-HALCoGen-714.hcg, and there is only a link error as below:

    3. After I added some files which contains the functions completed using the FEE drivers generated by the HALCoGen, there are some new errors occurs as below:
    4. List of files added by me is:
    I can share the project, and how can I attach the files with the reply??

  • Hi,

    You can drag and drop the zip file in the reply text box.

    Thanks and Regards,

    Veena

  • Hi
    You can download the project pan.baidu.com/.../1sjkNhs5

    unzip password:e2e.ti.com

    Thanks!
  • 7851.my714.zip

    Hi Veena,

    Can you see the zip file in this reply?

    unzip password: e2e.ti.com

    thanks so much!

  • Hi Veena,

    The rootcause should be that the codes as below must be contained in the my EEPROM_Operations.c:

    =======================================================================================
    /* USER CODE BEGIN (0) */
    #include "ti_fee.h"
    #define __HAL_STDTYPES_H__ //////////////////========> MUST BE defined!
    /* USER CODE END */

    /* Include Files */
    #include "sys_common.h
    ========================================================================================
    These codes are contained in the "example_TI_Fee_Write_Read.c", but I do not understand why " __HAL_STDTYPES_H__" must be defined which means the typedefs in the hal_stdtypes.h will not not be used in my codes?
  • Hi,

    You should not see this problem if you are using HALCoGen v04.05.00.

    In v04.04.00, all fee files were including compiler header file StdTypes.h and all other HALCoGen files included HACoGen generated hal_stdtypes.h. This was causing a conflict as there were same typedefs defined in both the files. That is the reason why we added #define __HAL_STDTYPES_H_ after including ti_fee.h in the example so that hal_stdtypes.h will not be included in the file.

    In v04.05.00, we removed StdTypes.h header file inclusion from the fee files. Instead we included hal_stdtypes.h

    Let me know if you see this problem with HALCoGen v04.05.00. If you want to use HALCoGen v04.04.00, you need to define __HAL_STDTYPES_H__ macro after including fee headers in your file.

    Thanks and Regards,

    Veena