Ryan
Newbie level 5
s_objlib_obj_unavailable select
I am new in vxWorks development. Environments : Tornado2.2 for ARM, CPU - s3c4510(ARM7TDMI). The two questions listed as follows:
1) The Net download speed is unendurable. It's better if a hub is in use. But in our situation, we debug with other boards without hub.
Without the hub,I am confused about that downloading vxworks image with bootrom is greatly faster than downlaoding user module through target server. Since downloading vxworks image is normal, the net driver is Ok in determination. Maybe it's the difference of net protocol. And the hub transfer the protocol. Or without hub, some special configurations should be done for target server& vxworks components configuration.
2) When I use select() for Serial interface, there is also a errer number(0x3d0002) occur in the task.
The following is the source
//0x3d0002 -- S_objLib_OBJ_UNAVAILABLE
fd_set fdset;
char *tmpBuf=rdBuf;
int readTotalSize=0,readSize;
#ifdef _INC_SERIAL_DEBUG
if(ttyFd == ERROR)
{ // Fail to open
logMsg("You should open the device before read!\n",0,0,0,0,0,0);
return(ERROR);
}
#endif // _INC_SERIAL_DEBUG
FD_ZERO(&fdset);
FD_SET(ttyFd,&fdset);
while(readTotalSize<rdBytes){
select(ttyFd+1, &fdset, NULL, NULL, NULL);
readSize = read(ttyFd,tmpBuf,(rdBytes-readTotalSize));
tmpBuf += readSize;
readTotalSize += readSize;
}
return readTotalSize;
/* return value -- The number of bytes read.(if not equal to rdBytes,an error has occurred)
*/
}
I am new in vxWorks development. Environments : Tornado2.2 for ARM, CPU - s3c4510(ARM7TDMI). The two questions listed as follows:
1) The Net download speed is unendurable. It's better if a hub is in use. But in our situation, we debug with other boards without hub.
Without the hub,I am confused about that downloading vxworks image with bootrom is greatly faster than downlaoding user module through target server. Since downloading vxworks image is normal, the net driver is Ok in determination. Maybe it's the difference of net protocol. And the hub transfer the protocol. Or without hub, some special configurations should be done for target server& vxworks components configuration.
2) When I use select() for Serial interface, there is also a errer number(0x3d0002) occur in the task.
The following is the source
//0x3d0002 -- S_objLib_OBJ_UNAVAILABLE
fd_set fdset;
char *tmpBuf=rdBuf;
int readTotalSize=0,readSize;
#ifdef _INC_SERIAL_DEBUG
if(ttyFd == ERROR)
{ // Fail to open
logMsg("You should open the device before read!\n",0,0,0,0,0,0);
return(ERROR);
}
#endif // _INC_SERIAL_DEBUG
FD_ZERO(&fdset);
FD_SET(ttyFd,&fdset);
while(readTotalSize<rdBytes){
select(ttyFd+1, &fdset, NULL, NULL, NULL);
readSize = read(ttyFd,tmpBuf,(rdBytes-readTotalSize));
tmpBuf += readSize;
readTotalSize += readSize;
}
return readTotalSize;
/* return value -- The number of bytes read.(if not equal to rdBytes,an error has occurred)
*/
}