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.

Printf doesn't work when I add DSP/BIOS to the project.

Other Parts Discussed in Thread: CCSTUDIO

Hi,

      At first I build a simple project on DM6437EVM without DSP/BIOS. The program is very simple:

#include <stdio.h>

void main()
{
    printf("just a try!\n");
}

I can run it successfully.

Then I add DSP/BIOS to the project. When adding DSP/BIOS, I don't change the default setting.

Generated tcf file and cmd file are added to the project, I build the project and run it again.

This time the string is not output. I hope to get your help.

Another question: In one document it says the reason why tcf file is simple campared with old cdb file

is that tcf file only contain the difference from default setting. Anyone can tell me which document

describe the default setting.

 

Thanks

Jogging

  • Do you have a heap configured in the tcf file?

  • I think Mariana is on to the problem here, not having a heap for malloc will certainly cause printf to fail.

    Jogging Song said:
    Another question: In one document it says the reason why tcf file is simple campared with old cdb file

    is that tcf file only contain the difference from default setting. Anyone can tell me which document

    describe the default setting.

    In general instead of using the 'default' setting of a BIOS project which is essentially blank, in general it will be easier to use the platform configuration for your particular device/board, which is essentially a set of defaults for a particular board. In this case if you add the line below to your tcf file you will import the default TCF file settings for a DM6437 EVM, note that this is what is used as a base for the BIOS examples.

    utils.loadPlatform("ti.platforms.evmDM6437");

    Perhaps even better you may want to start with a TCF file from an existing example which will be using these defaults as well as some additional configuration, for example C:\CCStudio_v3.3\bios_5_33_03\packages\ti\bios\examples\basic\hello\evmDM6437\hello.tcf. If you add stdio.h and a printf call to the hello.c for the hello project you can get output on stdio.

     

  • Hi, Mariana

           I use the default tcf file when using DSP/BIOS.  Now I am off my office.

    So I can't check it.

    Best Regards

    Jogging