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.

platform_init() implicitly called?

Hi,

I have inherited a C66 project which I'm just getting my head around. I'm new to XDC Tools, but I've read the XDC Consumer User's Guide and XDC User's Guide.

Is it possible that platform_init() can be called implicitly? I do not see any C code in the project which calls this function explicitly. If it can be called implicity, can someone describe exactly how this is achieved by the XDC tools?

Also, which file would I need to look at in order to determine which version of platform_init() was used? ie. I understand that platform_init() is defined in platform.c- but how can I determine which platform.c is being used? 

Cheers,

Daniel

  • And just a few follow-on questions-

    If my project is using ti.platforms.generic, does this mean that platform_init() will just be an empty stub function? If so, how is this achieved through XDC Tools? Can I then redefine platform_init() to contain something more useful? Where would be the most appropriate place to do this?

  • Daniel,

    You are working on RTSC project, right? 

    If you open the Properties windows of your project and select "General" tab on left and select "RTSC" on right. You will see what "Products and Repositories" you include in this project and the "Platform" currently being used will be shown on the bottom.