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.

CCS/IWR6843: Make changes to gtrack (gtrack_unit_event.c) and build them

Part Number: IWR6843

Tool/software: Code Composer Studio

I am trying to make some changes to gtrack_unit_event.c, under lap0015_pplcount_68xx and build them. However, when I build pplcount_mss_68xx I don't think my changes are getting rebuilt. I tried cleaning the project and then building, but that didn't help. I am sure they aren't getting rebuilt as I tried making an errorneous change (removed a few ;) and that didn't cause any issues. 

Can someone please point me to how I rebuild/remake gtrack through CCS and not on a command prompt. If it can only be done on command prompt, I'll really appreciate detailed instructions of how to do it on a Windows 10 machine since I am not familiar with this. 

Thanks,

Shruti

  • Hi Shruti,

    I've asked an expert to look into this and we should have an answer for you sometime next week.

     

    Cheers,

    Akash

  • Hi Shruti,

    GTrack is getting included as a library. So GTrack has to be built first separately, then when pplcount_68xx_mss is built, it includes the library. So after you change GTrack, you need to recompile. The best way to do this is:

    1. Copy GTrack folder from the People Counting lab to <SDK_Install>\packages\ti\alg\

    2. Copy setenv.bat and checkenv.bat from <SDK_Install>\packages\scripts\windows\ to <SDK_Install>\packages\ti\alg\gtrack\

    3. Open a cmd prompt in <SDK_Install>\packages\ti\alg\gtrack\

    4. Run "setenv.bat"

    5. run gmake all

    Regards,

    Justin

  • Thank you for the response. This resolved my issue but only after fixing the declarations in gtrack_create.c - changes shown in bold. Thanks for the help!

    void gtrack_setAllocationParams(void *handle, GTRACK_allocationParams* newParams) {
    GtrackModuleInstance *inst = handle;
    memcpy(&inst->params.allocationParams, newParams, sizeof(GTRACK_allocationParams));
    return;
    }

    void gtrack_setGatingParams(void *handle, GTRACK_gatingParams* newParams) {
    GtrackModuleInstance *inst = handle;
    memcpy(&inst->params.gatingParams, newParams, sizeof(GTRACK_gatingParams));
    return;
    }

    void gtrack_setStateParams(void *handle, GTRACK_stateParams* newParams) {
    GtrackModuleInstance *inst = handle;
    memcpy(&inst->params.stateParams, newParams, sizeof(GTRACK_stateParams));
    return;
    }

    void gtrack_setSceneryParams(void *handle, GTRACK_sceneryParams* newParams) {
    GtrackModuleInstance *inst = handle;
    memcpy(&inst->params.sceneryParams, newParams, sizeof(GTRACK_sceneryParams));
    return;
    }