diff --git a/SerialFlash.c b/SerialFlash.c index 152cfec..fd743d7 100755 --- a/SerialFlash.c +++ b/SerialFlash.c @@ -1722,7 +1722,7 @@ int SerialFlash_bulkPipeRead(struct CAddressRange *AddrRange, unsigned char *vDa } } else - { + { pageNum = AddrRange->length >> 9 ; FlashCommand_SendCommand_SetupPacketForBulkRead(AddrRange, modeRead,ReadCom,Index); for(i = 0; i < pageNum; ++ i) @@ -1732,13 +1732,14 @@ int SerialFlash_bulkPipeRead(struct CAddressRange *AddrRange, unsigned char *vDa { return false ; } - //memcpy(vData + i*ret, v, ret); + //memcpy(vData + i*ret, v, ret); } } if(SerialFlash_EnableQuadIO(false,m_boEnReadQuadIO,Index) == SerialFlash_FALSE) return false; SerialFlash_Enable4ByteAddrMode(false, Index); - return true ; +{ + return true ; } } diff --git a/dpcmd.c b/dpcmd.c index 5cd1f84..5bb9efd 100755 --- a/dpcmd.c +++ b/dpcmd.c @@ -498,7 +498,7 @@ int main(int argc, char *argv[]) signal(SIGINT, sin_handler); - printf("\nDpCmd Linux 1.3.1.%02d Engine Version:\nLast Built on Sep 22 2017\n\n",GetConfigVer()); //1. new feature.bug.config + printf("\nDpCmd Linux 1.3.2.%02d Engine Version:\nLast Built on Sep 22 2017\n\n",GetConfigVer()); //1. new feature.bug.config g_ucOperation=0; GetLogPath(g_LogPath); @@ -1333,17 +1333,20 @@ void do_DisplayOrSave(void) if(g_uiDevNum==0) { for(int icnt=0;icntUSBIndex; g_is_operation_successful[Index] = true; bool is_greater_than_5_0_0 = is_BoardVersionGreaterThan_5_0_0(Index); - + + int dwUID=ReadUID(Index); + if( g_uiAddr==0 && g_uiLen ==0) + { + if((dwUID / 600000)==0) + printf("\nDevice %d (DP%06d):",Index,dwUID); + else + printf("\nDevice %d (SF%06d):",Index,dwUID); + } if( opType==UPDATE_FIRMWARE ) { @@ -997,6 +1009,7 @@ void Run(OPERATION_TYPE type,int DevIndex) { for(int i=0;itype=type; bAuto[i]=false; @@ -1009,8 +1022,7 @@ void Run(OPERATION_TYPE type,int DevIndex) { thread_data[DevIndex-1]=(THREAD_STRUCT*)malloc(sizeof(THREAD_STRUCT)); thread_data[DevIndex-1]->type=type; - bAuto[DevIndex-1]=false; - printf("\nSlot %d (%06d)",DevIndex,ReadUID(DevIndex-1)); + bAuto[DevIndex-1]=false; thread_data[DevIndex-1]->USBIndex=DevIndex-1; //0; pthread_create(&id,NULL,(void *) threadRun,(void*)thread_data[DevIndex-1]); }