Skip to content

Commit

Permalink
Merge pull request DediProgSW#62 from 9elements/fix_61
Browse files Browse the repository at this point in the history
Implement a fix for issue DediProgSW#61
  • Loading branch information
DediprogEvy authored May 30, 2023
2 parents 79391b3 + 4e788c7 commit 0984312
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions project.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,25 +1502,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 0984312

Please sign in to comment.