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.

HALCOGEN: Preventing Halcogen to Create a sys_main.c file

Part Number: HALCOGEN


Hi,

I am trying to develop a C++ project in code composer studio. 

For that i am creating a new main file with .cpp extension and delete the sys_main.c file from halcogen source file. 

This works on my project but whenever i made a change and generate the code at Halcogen, its keep creating sys_main file and i am keep deleting it. 

Is there any way to preventing Halcogen create a main file?

  • Hello,

    This issue has been assigned to our subject matter expert to provide additional information. Thank you for your patience.

    Best Regards,

    Zackary Fleenor

  • Hi Gunce,

    1. If you are using TI CCS, you can exclude the sys_main.c from the project build. The HALCOGen code generation doesn't affect your CCS setting.

    2. You add a function call in sys_main.c to call your main(), for example my_Main() define din your main.cpp

        sys_main.c:

        int main(void)
        {
            /* USER CODE BEGIN (3) */
            my_Main();
            /* USER CODE END */

            return 0;
         }