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.
Hi,
Based on F28003x_FRM_EX_UG.pdf file (chapter 2.3) from C2000ware 4.03, I try to add bitfield capability into a driverlib application code.
My project is based on C:\ti\c2000\C2000Ware_4_03_00_00\driverlib\f28003x\examples\hrpwm\hrpwm_ex3_prd_updown_sfo and I am using also Sysconfig.
I have added all path and file required by the document but I have a compilation error with the lin include file. See below
Can you tell me what I need to do to make it work or what did I do wrong?
Thanks a lot for your help,
Arnaud
Building file: "../analog.c"
Invoking: C2000 Compiler
"C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --include_path="C:/ti/c2000/C2000Ware_4_03_00_00/device_support/f28003x/headers/include" --include_path="C:/Users/ahugron/OneDrive - XP Power/Documents/Projects/HPT5K0/HPT5K0TS400/frwSecondary/hrpwm_HPT600" --include_path="C:/ti/c2000/C2000Ware_4_03_00_00" --include_path="C:/Users/ahugron/OneDrive - XP Power/Documents/Projects/HPT5K0/HPT5K0TS400/frwSecondary/hrpwm_HPT600/device" --include_path="C:/ti/c2000/C2000Ware_4_03_00_00/driverlib/f28003x/driverlib" --include_path="C:/ti/c2000/C2000Ware_4_03_00_00/libraries/calibration/hrpwm/f28003x/include" --include_path="C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=DEBUG --define=RAM --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="analog.d_raw" --include_path="C:/Users/ahugron/OneDrive - XP Power/Documents/Projects/HPT5K0/HPT5K0TS400/frwSecondary/hrpwm_HPT600/CPU1_RAM/syscfg" --cmd_file="syscfg/board.opt" --cmd_file="syscfg/c2000ware_libraries.opt" "../analog.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'analog.obj' failed
"C:\ti\c2000\C2000Ware_4_03_00_00\device_support\f28003x\headers\include\f28003x_lin.h", line 236: error #41: expected an identifier
"C:\ti\c2000\C2000Ware_4_03_00_00\device_support\f28003x\headers\include\f28003x_lin.h", line 236: error #80: expected a type specifier
"C:\ti\c2000\C2000Ware_4_03_00_00\device_support\f28003x\headers\include\f28003x_lin.h", line 236: error #170: a function type is not allowed here
"C:\ti\c2000\C2000Ware_4_03_00_00\device_support\f28003x\headers\include\f28003x_lin.h", line 236: warning #109-D: signed bit field of length 1
3 errors detected in the compilation of "../analog.c".
gmake: *** [analog.obj] Error 1
Hi,
It is complaining about the keyword "IDLE" . You should use "DUAL_HEADERS" as a predefined should if you are combing both driverlib and bitfield headers in a single CCS project. You can add it as a predefined symbol in the CCS project.
It is added to avoid such conflicts in enums/structs/macros which share the exact same names in bitfield and driverlib headers
Best Regards
Siddharth