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/AM3359: API calls in project

Part Number: AM3359
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi Community,

I have imported and build sample/basic example project using TI-RTOS SDK.

Now i want to know flow of call and which part of sdk like ndk is used in this project or not, How to know this information ?

Regards,

Pankaj

  • Hi,

    When you have the CCS project, it contains the NDK RTSC package and NIMU driver package. In the .cfg file, you will see typically:

    var Global = xdc.useModule('ti.ndk.config.Global');
    var Ip = xdc.useModule('ti.ndk.config.Ip');

    Global.netSchedulerPri = Global.NC_PRIORITY_HIGH;
    Global.debugAbortLevel = Global.DBG_ERROR;
    Global.debugPrintLevel = Global.DBG_NONE;

    var ti_sysbios_hal_Timer = xdc.useModule('ti.sysbios.hal.Timer');

    /* Global.stackThreadUser = "&NDKACD_stackThread"; */

    var Tcp = xdc.useModule('ti.ndk.config.Tcp');
    var Udp = xdc.useModule('ti.ndk.config.Udp');

    if (enableStaticIP)
    {
    /* Settings for static IP configuration */
    Ip.ResolveIP = false;
    Ip.CallByIP = false;
    Ip.autoIp = false;
    Ip.address = "192.168.1.4";
    Ip.mask = "255.255.255.0";
    Ip.gatewayIpAddr = "192.168.1.1";
    }
    else
    {
    Ip.dhcpClientMode = Ip.CIS_FLG_IFIDXVALID;
    }

    Global.ndkTickPeriod = 200;
    Global.kernTaskPriLevel = 11;
    Global.serviceReportHook = null;
    Global.IPv6 = false;
    Global.pktNumFrameBufs=384;

    Tcp.transmitBufSize = 16384;
    Tcp.receiveBufSize = 65536;
    Tcp.receiveBufLimit = 65536;

     

    /* Load the NIMU package */
    var Nimu = xdc.loadPackage('ti.transport.ndk.nimu');
    Nimu.Settings.socType = socType;

    In the API call flow: see the user guide http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_Foundational_Components.html#ndk

    Regards, Eric

  • Hi Eric,

    Thanks for your response.

    Regards,

    Pankaj