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.

Semaphore identifier "mcaspReady" is undefined

Other Parts Discussed in Thread: AM3359, SYSBIOS

Hello,

I am working my way through the SYS/BIOS 2 days Training. Now I am following LAB5 from Eric&Scott. In parallel, I am using their setup on my board to make my mcasp work. I am reusing their ping-pong buffer approach with a semaphore_post. However, I get the compiler error: identifier "mcaspReady" is undefined. "mcaspReady is the Semaphore, which I have registered in the .cfg file correctly, however it seems, as if the linkage between the .cfg file and the c-code isn't established. I am using the newest setup with CCS5.4:

XDCTools: 3.25.0.48

SYS/BIOS 6.35.1.29

System Analyzer: 1.3.0.02

Custom board Package: myBeagleBoneBoard (am3359)

Script looks ok:

  • So what's wrong here ? Klaus

  • Hi Klaus,

    I think you might be missing a #include to allow you to reference the global handles that are generated based on your cfg script. In your application, can you add a #include <xdc/cfg/global.h> and see if that fixes it?

    Whitney

  • Hi Whitney,

    yes, that fixes the error, but I get these warnings instead:

    incompatible redefinition of macro "Hwi_Handle_upCast" (declared at line 1308 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 799, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Handle_to_ti_sysbios_interfaces_IHwi" (declared at line 1309 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 800, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_upCast" (declared at line 1306 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 797, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_to_ti_sysbios_interfaces_IHwi" (declared at line 1307 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 798, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Handle_downCast" (declared at line 1310 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 801, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Handle_from_ti_sysbios_interfaces_IHwi" (declared at line 1311 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 802, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object_sizeof" (declared at line 1300 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 791, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Params_copy" (declared at line 1301 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 792, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object_first" (declared at line 1298 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 789, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object_next" (declared at line 1299 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 790, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_delete" (declared at line 1304 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 795, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_destruct" (declared at line 1305 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 796, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Params_init" (declared at line 1302 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 793, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Instance_finalize" (declared at line 1303 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 794, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_handle" (declared at line 1291 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 782, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_create" (declared at line 1290 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 781, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Handle_label" (declared at line 1293 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 784, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_struct" (declared at line 1292 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 783, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Instance_init" (declared at line 1295 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 786, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Handle_name" (declared at line 1294 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 785, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object_get" (declared at line 1297 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 788, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object_count" (declared at line 1296 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 787, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_startupDone" (declared at line 1283 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 774, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_startup" (declared at line 1282 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 773, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_getMask" (declared at line 1285 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 776, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_hasMask" (declared at line 1284 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 775, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object_heap" (declared at line 1287 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 778, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_setMask" (declared at line 1286 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 777, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_construct" (declared at line 1289 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 780, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_heap" (declared at line 1288 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 779, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getHookContext" (declared at line 1244 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 765, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getHookContext_fxnP" (declared at line 1245 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 766, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getHookContext_FxnT" (declared at line 1246 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 767, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_setHookContext" (declared at line 1247 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 768, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_setHookContext_fxnP" (declared at line 1248 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 769, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_setHookContext_FxnT" (declared at line 1249 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 770, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_name" (declared at line 1280 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 771, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module_id" (declared at line 1281 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 772, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_setFunc_fxnP" (declared at line 1242 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 757, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_setFunc_FxnT" (declared at line 1243 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 758, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getIrp" (declared at line 1250 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 759, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getIrp_fxnP" (declared at line 1251 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 760, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getIrp_FxnT" (declared at line 1252 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 761, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_disable" (declared at line 1253 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 762, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_enable" (declared at line 1254 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 763, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_restore" (declared at line 1255 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 764, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_setFunc" (declared at line 1241 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 756, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getFunc_FxnT" (declared at line 1240 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 755, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getFunc_fxnP" (declared at line 1239 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 754, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getFunc" (declared at line 1238 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 753, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_clearInterrupt" (declared at line 1237 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 752, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_restoreInterrupt" (declared at line 1236 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 751, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_enableInterrupt" (declared at line 1235 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 750, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_disableInterrupt" (declared at line 1234 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 749, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getTaskSP" (declared at line 1233 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 748, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_post" (declared at line 1232 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 747, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_switchFromBootStack" (declared at line 1231 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 746, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_startup" (declared at line 1230 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 745, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_getStackInfo" (declared at line 1229 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 744, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Params" (declared at line 1228 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 743, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_dispatcherIrpTrackingSupport" (declared at line 1209 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 741, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_dispatcherTaskSupport" (declared at line 1208 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 740, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_dispatcherAutoNestingSupport" (declared at line 1206 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 738, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_dispatcherSwiSupport" (declared at line 1207 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 739, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_MaskingOption_BITMASK" (declared at line 1202 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 736, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_MaskingOption_LOWER" (declared at line 1203 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 737, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_MaskingOption_ALL" (declared at line 1200 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 734, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_MaskingOption_SELF" (declared at line 1201 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 735, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Instance_State" (declared at line 1197 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 732, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    variable "rxByte" was set but never used sys_uart.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO/Src line 33 C/C++ Problem
    incompatible redefinition of macro "Hwi_MaskingOption_NONE" (declared at line 1199 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 733, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_MaskingOption" (declared at line 1190 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 730, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_StackInfo" (declared at line 1191 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 731, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Irp" (declared at line 1188 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 728, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_HookSet" (declared at line 1189 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 729, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Struct" (declared at line 1186 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 726, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_FuncPtr" (declared at line 1187 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 727, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Module" (declared at line 1184 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 724, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Object" (declared at line 1185 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 725, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Handle" (declared at line 1183 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 723, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem
    incompatible redefinition of macro "Hwi_Instance" (declared at line 1182 of "C:/ti/ccs54/bios_6_35_01_29/packages/ti/sysbios/family/arm/a8/intcps/Hwi.h") SYS_NTG6_REVA_MAIN.c /SYS_NTG6_REVA_USB_SERIAL_AUDIO line 722, external location: C:\ti\ccs54\bios_6_35_01_29\packages\ti\sysbios\hal\Hwi.h C/C++ Problem

  • It looks like you're using mix of the Hwi module and the device-specific Hwi module. For example, creating an instance of a generic Hwi in your .cfg file, but including ti/sysbios/family/arm/a8/intcps/Hwi.h in your application so you can use a device-specific API will cause something similar to this to happen.

    Perhaps looking at this post might make it a little clearer...?

    Whitney

  • Hmm,

    not really. I do not understand, why including <xdc/cfg/global.h> results in these warnings. Or are those warnings suppressed by the previous error ?

    So the question is, how do I setup my .cfg file to use the device-specific API (hwi.h) ?

    Klaus

  • OK,

    I removed all:

    #include <ti/sysbios/family/arm/a8/intcps/Hwi.h>

    and added:

    #include <ti/sysbios/hal/Hwi.h>

    instead.

    No redefinition errors anymore :-)


    Klaus