Skip to content
Snippets Groups Projects
Commit 829dc649 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Adding a better error msg when ipcInit fails because of Dolphin IPCs in non-dolphin model.

parent a4ceb537
No related branches found
No related tags found
1 merge request!652Adding a better error msg when ipcInit fails because of Dolphin IPCs in non-dolphin model.
......@@ -245,6 +245,22 @@ void commData3Init(
{
RTSLOG_ERROR("commData3Init() - IPC index %d, was not matched as a supported type. "
"netType: %d, mode: %d",ii , ipcInfo[ ii ].netType, ipcInfo[ ii ].mode );
if( ipcInfo[ ii ].netType == IPCIE &&
(!cdsPciModules.dolphinPcieReadPtr ||
!cdsPciModules.dolphinPcieWritePtr)) {
RTSLOG_ERROR("commData3Init() - This model contains a Dolphin PCIE IPC but this system is not a dolphin node, "
"or has not been configured to initalize Dolphin (pciRfm=1). If you want this model to run on a "
"test system without Dolphin, you can add the (use_shm_ipc=1) cds parameter to convert all IPCs to "
"SHMEM during the build.\n");
}
if( (ipcInfo[ ii ].netType == IRFM0 || ipcInfo[ ii ].netType == IRFM1) &&
(!cdsPciModules.dolphinRfmReadPtr ||
!cdsPciModules.dolphinRfmWritePtr)) {
RTSLOG_ERROR("commData3Init() - This model contains a Dolphin RFMX IPC but this system is not a dolphin node, "
"or has not been configured to initalize Dolphin (pciRfm=1). If you want this model to run on a "
"test system without Dolphin, you can add the (use_shm_ipc=1) cds parameter to convert all IPCs to "
"SHMEM during the build.\n");
}
g_init_failed = true;
}
#if 0
......@@ -666,4 +682,4 @@ void ipc_subsys_diag_reset( volatile CDS_EPICS* epics_ptr )
epics_ptr->epicsOutput.ipcMaxWaitHold_ns = 0;
epics_ptr->epicsOutput.slowIpcInList = 0;
epics_ptr->epicsOutput.ipcMaxSendTimeHold_ns = 0;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment