jungfrau server: programfpga: stop server also mapped during a reset, binaries added

This commit is contained in:
maliakal_d 2018-05-09 15:16:04 +02:00
parent 16fe4d305e
commit e6c0304af1
5 changed files with 6 additions and 5 deletions

View File

@ -7786,7 +7786,7 @@ int slsDetector::programFPGA(string fname){
#endif
if (thisDetector->onlineFlag==ONLINE_FLAG) {
if (connectControl() == OK){
controlSocket->SendDataOnly(&fnum,sizeof(fnum));cprintf(BG_RED,"size of filesize:%lu\n",sizeof(filesize));
controlSocket->SendDataOnly(&fnum,sizeof(fnum));
controlSocket->SendDataOnly(&filesize,sizeof(filesize));
//check opening error
controlSocket->ReceiveDataOnly(&ret,sizeof(ret));

View File

@ -70,7 +70,7 @@ void eraseFlash(){
char command[255];
sprintf(command,"flash_eraseall %s",mtdvalue);
system(command);
printf("flash erased\n");
printf("Flash erased\n");
}
/**
@ -109,7 +109,7 @@ int startWritingFPGAprogram(FILE** filefp){
cprintf(RED,"Unable to open %s in write mode\n",mtdvalue);
return 1;
}
printf("flash ready for writing\n");
printf("Flash ready for writing\n");
return 0;
}

View File

@ -4954,7 +4954,7 @@ int program_fpga(int file_des) {
int ret=OK,ret1=OK;
int n=0;
sprintf(mess,"program FPGA failed\n");
printf("Programming FPGA...")
printf("Programming FPGA...");
#ifndef JUNGFRAUD
//to receive any arguments
@ -5117,12 +5117,13 @@ int reset_fpga(int file_des) {
#ifdef SLS_DETECTOR_FUNCTION_LIST
else {
if (isControlServer) {
basictests(debugflag);
basictests(debugflag) // mapping of control server at lease
#ifdef JUNGFRAUD
if (debugflag != PROGRAMMING_MODE)
#endif
initControlServer();
}
else initStopServer(); //remapping of stop server
ret = FORCE_UPDATE;
}
#endif