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.

how to invoke Hwi_excFillContext?

Other Parts Discussed in Thread: SYSBIOS

Hi,

i'm using the following platform:

- tirtos_tivac_2.10.01.38

- CCS  6.0.1.00040

- xdctools_3_30_06_67_core

and i don't know how the " Hwi_excFillContext" can be invoked using from the cfg file, so please advice.

Thanks,

Mohamed Fawzy

  • Hwi_execFillContext is not an API that can be invoked though the .cfg file. It's an internal API that is called by the Hwi module when a hardware exception was detected. By default, the M3 implmentation of the Hwi module has a 'excHandlerFunc' function pointer which points to 'Hwi_excHandlerMax' who in turn calls Hwi_excFillContext.

    Are you trying to plug in your own execption function?

  • Actually, i'm trying to create my own exception handler using
    var M3Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
    M3Hwi.excHandlerFunc = "&myExceptionHandler";

    but, i'm wondering why the default function "Hwi_excHandlerMax"isn't invoked when exception is accrued, if i commented the second line which invoke my custom handler, so this is why i'm asking. Any idea?

    One more thing, as i mentioned that i'm trying to build my custom handler, and i have more question regarding this point:

    1- if i tried to duplicate the dump register function "Hwi_excDumpRegs" to make my custom function, i can't find Hwi_module definition, so how can i use it within my custom dump function?

    2-  if i tried to use "Hwi_ExcContext", i have to include  <ti/sysbios/family/arm/m3/Hwi.h> which is causing compilation error dude to duplicate definition in <ti/sysbios/hal/hwi.h> which i needed it also, any advice?

    anyway, if you have a sample that have a custom exception handler function, this will be very very helpful.

    Thanks,

    Mohamed Fawzy

  • Mohamed Fawzy said:
    M3Hwi.excHandlerFunc = "&myExceptionHandler";

    This line overrides the default "Hwi_excHandlerMax" function to use "myExceptionHandler". It's one or the other.

    I think what you are looking for is to keep the default exception handler (either excHandlerMax or excHandlerMin) and then add your own exception hook function that is called within the default handler.

    M3Hwi.excHandlerFunc = M3Hwi.excHandlerMax; //or just remove this line altogether.

    M3Hwi.excHookFunc = "&myExceptionHookFunction";

    Your myExceptionHookFunction would look something like this:

    #include <ti/sysbios/family/arm/m3/Hwi.h>
    Void myExecHookFunction(Hwi_ExcContext *context)
    {
        System_printf("My Exec: %d\n", context->threadType);
    }

    The *context pointer then contains all the registers + other stuff that you're looking for.

  • Actually, once i add the line
    #include <ti/sysbios/family/arm/m3/Hwi.h>

    i got the following warinigs
    ========================================================================================================================
    Description Resource Path Location Type
    #48-D incompatible redefinition of macro "Hwi_clearInterrupt" (declared at line 645 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1277, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_construct" (declared at line 663 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1306, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_create" (declared at line 664 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1307, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_delete" (declared at line 678 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1321, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_destruct" (declared at line 679 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1322, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_disable" (declared at line 649 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1283, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_disableInterrupt" (declared at line 642 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1274, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_dispatcherAutoNestingSupport" (declared at line 631 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1234, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_dispatcherIrpTrackingSupport" (declared at line 634 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1237, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_dispatcherSwiSupport" (declared at line 632 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1235, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_dispatcherTaskSupport" (declared at line 633 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1236, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_enable" (declared at line 650 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1284, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_enableInterrupt" (declared at line 643 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1275, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_FuncPtr" (declared at line 620 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1213, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_getFunc" (declared at line 646 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1278, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_getHookContext" (declared at line 652 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1280, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_getIrp" (declared at line 648 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1282, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_getStackInfo" (declared at line 637 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1269, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_getTaskSP" (declared at line 641 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1273, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle_downCast" (declared at line 684 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1327, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle_from_ti_sysbios_interfaces_IHwi" (declared at line 685 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1328, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle_label" (declared at line 667 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1310, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle_name" (declared at line 668 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1311, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle_to_ti_sysbios_interfaces_IHwi" (declared at line 683 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1326, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle_upCast" (declared at line 682 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1325, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Handle" (declared at line 616 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1209, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_handle" (declared at line 665 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1308, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_HookSet" (declared at line 622 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1215, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Instance_finalize" (declared at line 677 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1320, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Instance_init" (declared at line 669 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1312, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Instance_State" (declared at line 625 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1227, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Instance" (declared at line 615 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1208, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Irp" (declared at line 621 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1214, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_MaskingOption_ALL" (declared at line 627 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1230, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_MaskingOption_BITMASK" (declared at line 629 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1232, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_MaskingOption_LOWER" (declared at line 630 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1233, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_MaskingOption_NONE" (declared at line 626 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1229, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_MaskingOption_SELF" (declared at line 628 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1231, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_MaskingOption" (declared at line 623 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1216, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_getMask" (declared at line 659 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1302, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_hasMask" (declared at line 658 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1301, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_heap" (declared at line 662 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1305, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_id" (declared at line 655 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1298, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_name" (declared at line 654 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1297, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_setMask" (declared at line 660 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1303, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_startup" (declared at line 656 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1299, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_startupDone" (declared at line 657 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1300, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_to_ti_sysbios_interfaces_IHwi" (declared at line 681 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1324, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module_upCast" (declared at line 680 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1323, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Module" (declared at line 617 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1210, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object_count" (declared at line 670 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1313, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object_first" (declared at line 672 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1315, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object_get" (declared at line 671 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1314, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object_heap" (declared at line 661 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1304, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object_next" (declared at line 673 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1316, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object_sizeof" (declared at line 674 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1317, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Object" (declared at line 618 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1211, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Params_copy" (declared at line 675 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1318, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Params_init" (declared at line 676 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1319, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Params" (declared at line 636 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1268, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_post" (declared at line 640 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1272, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_restore" (declared at line 651 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1285, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_restoreInterrupt" (declared at line 644 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1276, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_setFunc" (declared at line 647 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1279, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_setHookContext" (declared at line 653 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1281, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_StackInfo" (declared at line 624 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1217, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_startup" (declared at line 638 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1270, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_Struct" (declared at line 619 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1212, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_struct" (declared at line 666 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1309, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    #48-D incompatible redefinition of macro "Hwi_switchFromBootStack" (declared at line 639 of "C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/hal/hwi.h") .ccsproject /ICG line 1271, external location: C:\ti\tirtos_tivac_2_10_01_38\products\bios_6_41_00_26\packages\ti\sysbios\family\arm\m3\Hwi.h C/C++ Problem
    ========================================================================================================================
    So please advise.

    Thanks,
    Mohamed Fawzy
  • Remove the #include <ti/sysbios/hal/Hwi.h> in your .c file and var Hwi = xdc.useModule('ti.sysbios.hal.Hwi') from your .cfg file. You should be using only the family (arm/m3) specific Hwi module:

    .cfg: var HwiM3 = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');

    .c: #include <ti/sysbios/family/arm/m3/Hwi.h>

  • thanks Tom, your answer helped me but i need one more thing , there is a function that convert from the error ID to string which is
    Text_ropeText((Text_RopeId)(id >> 16)) //inside Error_setX function in Error.C
    this function isn't defined in the scope, Is there an alternative to convert the ID to string?
  • I'm not too familiar with the RTSC tools so I'm not sure that I understand your question. There is an API "Error_getMsg()" that will return the string of an error. The documentation for the Error module can be found here.