Skip to content

Commit

Permalink
Modified programmer to work with next generation flash chip (device I…
Browse files Browse the repository at this point in the history
…D = 0x60)
  • Loading branch information
gorski123 committed Jun 6, 2022
1 parent 7c4486a commit fb3118b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified bin/mercury2_prog
Binary file not shown.
Binary file modified bin/mercury2_prog.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion mercury2_prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ int32_t Flash_ReadCapacity(void)
// process read queue
FTDI_ReadQueueProcess();
// check flash manufacturer and device ID
if(FTDI_ReadBuffer[0] == 0x01 && FTDI_ReadBuffer[1] == 0x40)
if(FTDI_ReadBuffer[0] == 0x01 && (FTDI_ReadBuffer[1] == 0x40 || FTDI_ReadBuffer[1] == 0x60) )
{
// check flash capacity
switch(FTDI_ReadBuffer[2])
Expand Down

0 comments on commit fb3118b

Please sign in to comment.