Hello,
Maybe you can help?
Thanks in advance.
The following is the data:
Board: EVMC6748 (I am using the TMS320C6748 DSP).
I am connected using the ethernet port to my router.
ccs: 5.4.0.00091
bios: 6_35_01_29
pspdrivers: 01_30_01
nsp: nsp_1_10_02_09
ndk: ndk_2_22_03_20
xdctools: 3_25_00_48
xgconf: I selected "global network settings", "http", "tcp", "ip" and enable IPv6.
The code builder makesa thread name "ti_ndk_config_Global_stackThread" - I verfied that the debugger gets to it.
Then it fails in the following piece of code:
hCfg = CfgNew();
if (!hCfg) {
xdc_runtime_System_printf("Unable to create configuration\n");
goto main_exit;
}
The entire function that is created by the code builder is given below:
/* Main Thread */
Void ti_ndk_config_Global_stackThread(UArg arg0, UArg arg1)
{
int rc;
HANDLE hCfg;
ti_sysbios_knl_Clock_Params clockParams;
/* Create the NDK heart beat */
ti_sysbios_knl_Clock_Params_init(&clockParams);
clockParams.startFlag = TRUE;
clockParams.period = 100;
ti_sysbios_knl_Clock_create(&llTimerTick, clockParams.period, &clockParams, NULL);
/* THIS MUST BE THE ABSOLUTE FIRST THING DONE IN AN APPLICATION!! */
rc = NC_SystemOpen(NC_PRIORITY_LOW, NC_OPMODE_INTERRUPT);
if (rc) {
xdc_runtime_System_abort("NC_SystemOpen Failed (%d)\n");
}
/* Create and build the system configuration from scratch. */
hCfg = CfgNew();
if (!hCfg) {
xdc_runtime_System_printf("Unable to create configuration\n");
goto main_exit;
}
/* add the Ip module configuration settings. */
ti_ndk_config_ip_init(hCfg);
/* add the Tcp module configuration settings. */
ti_ndk_config_tcp_init(hCfg);
/*
* Boot the system using this configuration
*
* We keep booting until the function returns 0. This allows
* us to have a "reboot" command.
*/
do
{
rc = NC_NetStart(hCfg, ti_ndk_config_Global_NetworkOpen,
ti_ndk_config_Global_NetworkClose,
ti_ndk_config_Global_NetworkIPAddr);
} while( rc > 0 );
/* Delete Configuration */
CfgFree(hCfg);
/* Close the OS */
main_exit:
NC_SystemClose();
xdc_runtime_System_flush();
}
Any idea?
Thanks in advance!!!
Gaby