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.

exit() function in CCSV5



 

I used exit() function to stop progeam successfully in CCSV3.3 for DSP 6727. When I migrate the project to CCSV5.5.0, exit() function does not operate. if just let it free run, the program looks running always. If I debug through to the exit() point, then step in, complains it can not find the source file exit() . Why that function does not run in CCSV5, What lib do I need to include for exit() to run?

Thanks

Honghui

  • Hi Honghui,

    honghui Qi said:
    exit() function does not operate. if just let it free run, the program looks running always.

    There is an option to halt at program termination (sets a breakpoint at C$$EXIT - the exit point of your program). If it is disabled, then your program will continue to run after termination. This option should be enabled by default. You can double-check in the debugger options (under "Program/Memory Load Options).

    honghui Qi said:
    If I debug through to the exit() point, then step in, complains it can not find the source file exit() . Why that function does not run in CCSV5, What lib do I need to include for exit() to run?

    This is normal and you can ignore it. This routine and the associated exit.c file is from the run-time library. For more details, see this thread:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/247877.aspx

    Thanks

    ki