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.

Programming NDK 2.0 helloworld example on DSP2 of C6474 EVM

Hi,

I have executed helloworld.pjt (which is part of NDK 2.0) on DSP1 of C6474 EVM (which has two C6474 processors) from Spectrum Digital successfully.  Used CCS3.3. 

MDIO port is connected only to DSP1 and not DSP2,so if I run the example on DSP2 it does not work.

Is there any way we can make NDK examples work on DSP2.

For example: DSP1 should be programmed to configure the PHY  and DSP2 should be programmed to do the ping operation.

Please can you tell me which part of the code configures the PHY and which part is responsible for ping operation?

If possible please suggest some ways.

Regards

Sharath Chandra 

  • Sharath,

    The code that handles the PHY is in the Ethernet/NIMU driver portion.  This is found under:

    ndk_2_0_0\packages\ti\ndk\src\hal\evm6474\eth_c6474

    In order to do get the NDK running on different cores, you would need to modify these files to allow the stack to run on the core you wish (e.g. core 1).  Search "core" (case insensitive) in the files in that directory and you should see the related code.

    You can find some example ping code in the following file:

    ndk_2_0_0\packages\ti\ndk\src\tools\console\conping.c

    Furthermore, there are a couple of forum posts in which customers appear to be trying something similar.  They are using a newer NDK and driver, however, but I'll point you to these anyway just in case:

    http://e2e.ti.com/support/embedded/f/355/p/86502/317319.aspx#317319

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/439/p/91104/316883.aspx#316883


    Steve