Skip to content

Commit

Permalink
update_loadFile_with_verify
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 30, 2023
2 parents 5cffe50 + 0984312 commit 5f04851
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ int main(int argc, char* argv[])
unsigned long r;
char* env;

printf("\nDpCmd Linux 1.13.11.%02d Engine Version:\nLast Built on January 7 2023\n\n", GetConfigVer()); // 1. new feature.bug.configS
printf("\nDpCmd Linux 1.14.11.%02d Engine Version:\nLast Built on January 7 2023\n\n", GetConfigVer()); // 1. new feature.bug.configS

g_ucOperation = 0;
GetLogPath(g_LogPath);
Expand Down
17 changes: 8 additions & 9 deletions project.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,25 +1455,24 @@ void SetProgReadCommand(int Index)
mcode_Read = BULK_FAST_READ;
mcode_Program = PP_32BYTE;
mcode_SegmentErase = 0xD8;
} else if (strstr(Chip_Info.Class, SUPPORT_WINBOND_W25Pxx) != NULL) {

} else if (strstr(Chip_Info.Class, SUPPORT_WINBOND_W25Pxx_Large) != NULL) {
mcode_RDSR = RDSR;
mcode_WRSR = WRSR;
mcode_ChipErase = CHIP_ERASE;
mcode_Program = PAGE_PROGRAM;
mcode_Read = BULK_FAST_READ;
mcode_Program = PP_4ADR_256BYTE;
mcode_Read = BULK_4BYTE_FAST_READ;
mcode_SegmentErase = SE;
mcode_ProgramCode_4Adr = 0x02;
mcode_ReadCode = 0x0B;
} else if (strstr(Chip_Info.Class, SUPPORT_WINBOND_W25Pxx_Large) != NULL) {
mcode_ReadCode = 0x0C;
} else if (strstr(Chip_Info.Class, SUPPORT_WINBOND_W25Pxx) != NULL) {
mcode_RDSR = RDSR;
mcode_WRSR = WRSR;
mcode_ChipErase = CHIP_ERASE;
mcode_Program = PP_4ADR_256BYTE;
mcode_Read = BULK_4BYTE_FAST_READ;
mcode_Program = PAGE_PROGRAM;
mcode_Read = BULK_FAST_READ;
mcode_SegmentErase = SE;
mcode_ProgramCode_4Adr = 0x02;
mcode_ReadCode = 0x0C;
mcode_ReadCode = 0x0B;
} else if (strstr(Chip_Info.Class, SUPPORT_ST_M25Pxx_Large) != NULL) {
mcode_RDSR = RDSR;
mcode_WRSR = WRSR;
Expand Down

0 comments on commit 5f04851

Please sign in to comment.