Part Number: MSP432E401Y
Other Parts Discussed in Thread: CC3120, , MSP432E411Y
Tool/software: TI-RTOS
Hi,
I am trying to get a tcp client socket to communicate to a tcpserver. I am using ti-rtos ndk configured via the XGCONF (rtsc project). My .cfg contains the following NDK related info:
var Ndk = xdc.loadPackage('ti.ndk.config');
var Global = xdc.useModule('ti.ndk.config.Global');
var Ip = xdc.useModule('ti.ndk.config.Ip');
var Udp = xdc.useModule('ti.ndk.config.Udp');
var Tcp = xdc.useModule('ti.ndk.config.Tcp');
Global.IPv6 = false;
Global.stackLibType = Global.MIN;
Global.networkOpenHook = "&netOpenHook";
Global.networkIPAddrHook = "&netIPAddrHook";
Global.autoOpenCloseFD = true;
Global.pktNumFrameBufs = 10;
Global.memRawPageCount = 6;
Global.ndkThreadStackSize = 1536;
Global.lowTaskStackSize = 1536;
Global.normTaskStackSize = 1536;
Global.highTaskStackSize = 1536;
---------------------------------------------------
The code compiles and links. However, when I attempt to create the socket via the instruction clientSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) the return value is always a -1. fdError() also returns a negative one.
Debugging indicates that the following code residing in unit slnetsock.c function : int16_t SlNetSock_create(int16_t domain, int16_t type, int16_t protocol, uint32_t ifBitmap, int16_t flags) fails at the line below:
I am new to XGCONF and TI_RTOS, I am expecting that I have inadvertently left something out of my .cfg file? I am trying to create the socket in a Task.
Thanks,
Any help would be appreciated