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.
Tool/software: Code Composer Studio
Using Code Composer 10, Newest simplelink_msp432e4_sdk_4_10_00_13 libraries.
If you pick a static IP address under the Sysconfig editor- it creates code that will not compile. To show this, simply use your example program tcpecho_MSP_EXP432E401Y_tirtos_ccs, add a static IP address and then try to compile. There are 2 issues, 1) sdk_4_10_00_13 install does not contain the CGI directory with the required files and 2) the Sysconfig editor makes code that produces the following error:
To solve problem #1 - you can add the CGI directory from a previous release.
We do not have a solution for problem #2
>> Compilation failure
subdir_rules.mk:38: recipe for target 'syscfg/ti_ndk_config.obj' failed
"syscfg/ti_ndk_config.c", line 308: error #20: identifier "inst" is undefined
1 error detected in the compilation of "syscfg/ti_ndk_config.c".
gmake: *** [syscfg/ti_ndk_config.obj] Error 1
Building file: "syscfg/ti_net_config.c"
Invoking: ARM Compiler
The function generated by the syscfg file (see below) has a line :
NA.IPAddr = inet_addr(inst.staticIPAddr);
that line fails because there is no "inst" object.
Full generated function below:
static void ti_ndk_config_ip_init(void *hCfg)
{
/* ----------------- Configuring IP for CONFIG_NIMU_0 ----------------- */
CI_IPNET NA;
CI_ROUTE RT;
/* configure IP address manually on interface */
/* setup manual IP address */
memset(&NA, 0, sizeof(NA));
NA.IPAddr = inet_addr(inst.staticIPAddr);
NA.IPMask = inet_addr(inst.ipMask);
strcpy(NA.Domain, inst.domainName);
NA.NetType = 0;
CfgAddEntry(hCfg, CFGTAG_IPNET, 1, 0,
sizeof(CI_IPNET), (unsigned char *)&NA, 0);
/* Add the default gateway. Since it is the default, the
* destination address and mask are both zero (we go ahead
* and show the assignment for clarity).
*/
memset(&RT, 0, sizeof(RT));
RT.IPDestAddr = 0;
RT.IPDestMask = 0;
RT.IPGateAddr = inet_addr(inst.gatewayIpAddr);
CfgAddEntry(hCfg, CFGTAG_ROUTE, 0, 0,
sizeof(CI_ROUTE), (unsigned char *)&RT, 0);
}
Hi,
I think the expert under CCS can give you a good answer. I will reassign this thread.
Please wait for some time.
Eason
Eason,
The issue is with the template in the NDK (inside the SDK) and not CCS/SysConfg. SysConfig generates code based on the template. You can likely have the NDK team fix the template and provide to James to drop into his SDK installation.
Regards,
John
**Attention** This is a public forum