by gdo » Tue Dec 20, 2011 1:31 pm
by gdo
Tue Dec 20, 2011 1:31 pm
No I do not think there is specific build flags according to roboard version you use.
I think it is related to cpu id.
In
libsrc/common.cpp file from robio sources, can you modify
roboio_CheckRBVer function as follow, just to display cpuid in the error message :
- Code: Select all
RBAPI(bool) roboio_CheckRBVer(void) { // called only by io_Init(); the caller must ensure that I/O ports can be accessed by this function
int cpuid = io_CpuID();
switch (roboio_GetRBVer())
{
case RB_100b1:
case RB_100b2:
case RB_100b3:
case RB_100:
if (cpuid == CPU_VORTEX86DX_1) return true;
break;
case RB_100RD:
case RB_110:
case RB_050:
if (cpuid == CPU_VORTEX86DX_3) return true;
break;
default:
err_SetMsg(ERROR_RBVER_UNKNOWN, "unknown RoBoard version");
return false;
} //end switch (ver)
err_SetMsg(ERROR_RBVER_UNMATCH, "unmatched RoBoard version, cpuid=%i",cpuid);
return false;
}
I think you are in the
RB_110 case but that cpuid does not match
CPU_VORTEX86DX_3.
gdo
No I do not think there is specific build flags according to roboard version you use.
I think it is related to cpu id.
In
libsrc/common.cpp file from robio sources, can you modify
roboio_CheckRBVer function as follow, just to display cpuid in the error message :
- Code: Select all
RBAPI(bool) roboio_CheckRBVer(void) { // called only by io_Init(); the caller must ensure that I/O ports can be accessed by this function
int cpuid = io_CpuID();
switch (roboio_GetRBVer())
{
case RB_100b1:
case RB_100b2:
case RB_100b3:
case RB_100:
if (cpuid == CPU_VORTEX86DX_1) return true;
break;
case RB_100RD:
case RB_110:
case RB_050:
if (cpuid == CPU_VORTEX86DX_3) return true;
break;
default:
err_SetMsg(ERROR_RBVER_UNKNOWN, "unknown RoBoard version");
return false;
} //end switch (ver)
err_SetMsg(ERROR_RBVER_UNMATCH, "unmatched RoBoard version, cpuid=%i",cpuid);
return false;
}
I think you are in the
RB_110 case but that cpuid does not match
CPU_VORTEX86DX_3.
gdo