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.

TMS570LS3137: Basic Program in CCS not working

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hello Experts,

I have created a new project in the CCS version 10.1.0 with an empty project with main.c

When I add a code to add two numbers and print it on the console the control is not going to main an it is getting stuck as I can see only the Terminate option available. What is wrong here?

Thanks,

Rakesh

  • Hi Rakesh,

    Before the code jumps to main(), it calls the startup routine (_c_int00). The _c_int00 is the interrupt handler for interrupt number 0, RESET, and that it sets up the C environment. It acts as the entry point for C programs by default. The _c_int00() performs device initialization.

    The HalCoGen tool generates startup code, and device drivers. The HalCoGen project can be imported to CCS, then you can add your own code to sys_main().

    I don't know how your code looks like. Please see the example in HalCOGen Help.