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: fprintf hung up while debugging software



Tool/software: Code Composer Studio

Hi,

I'm using CCS 6.2 Compiler version 4.4.1 processor TMS320C5509A (Not using any RTOS) . I have included the standard library functions and successfully created build as well but when I try to step out of any of fprintf, fread functions debugger hung. I followed the all the steps increasing stack, heap, flushing, enabling CIO but still having the issue. Please help and thanks in advance.

http://software-dl.ti.com/ccs/esd/documents/sdto_cgt_tips_for_using_printf.html

processors.wiki.ti.com/.../Printf_support_for_MSP430_CCSTUDIO_compiler

Thanks,

Ramesh G

  • Hi Ramesh,

    ramesh ganesamoorthy said:
    I'm using CCS 6.2 Compiler version 4.4.1 processor TMS320C5509A (Not using any RTOS)

    I used the same versions and fprintf works fine for me. My project used the default sizes for stack and heap (0x200 and 0x400 respectively). Please provide your example project that does not work for you.

    ramesh ganesamoorthy said:
    fread functions debugger hung.

    In regards to the hang, is the IDE GUI locked up? Are you able to shut down CCS?

    Thanks

    ki

  • Thanks for your response. I wanted to write all the variable values in a file to analyze the data after execution of software. I wrote the below code snippet in the software and as soon as I reach line fprintf the debugger is not coming out of this line due to this reason the file is not closed. Yes I could able to terminate the debugging session and close the CCS without any issue.

    image.png

    I did setup the stack and heap size in C5500 linker option."--stack_size=0x200 --heap_size=0x400. My project file size is huge and I have integrated the above code with the actual project not with example project. Please let me know if you are looking for any specific settings or .metadata or other files.

    Thanks,

    Ramesh

  • The link to the screenshot is broken. Please seethe below FAQ:

    https://e2e.ti.com/support/tools/ccs/f/81/t/821597

    ramesh ganesamoorthy said:
    My project file size is huge and I have integrated the above code with the actual project not with example project. Please let me know if you are looking for any specific settings or .metadata or other files.

    Can you create a simple test project which simply just does an fprintf call and see if that works?