Skip to content

Commit fb3118b

Browse files
committed
Modified programmer to work with next generation flash chip (device ID = 0x60)
1 parent 7c4486a commit fb3118b

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

bin/mercury2_prog

0 Bytes
Binary file not shown.

bin/mercury2_prog.exe

0 Bytes
Binary file not shown.

mercury2_prog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ int32_t Flash_ReadCapacity(void)
338338
// process read queue
339339
FTDI_ReadQueueProcess();
340340
// check flash manufacturer and device ID
341-
if(FTDI_ReadBuffer[0] == 0x01 && FTDI_ReadBuffer[1] == 0x40)
341+
if(FTDI_ReadBuffer[0] == 0x01 && (FTDI_ReadBuffer[1] == 0x40 || FTDI_ReadBuffer[1] == 0x60) )
342342
{
343343
// check flash capacity
344344
switch(FTDI_ReadBuffer[2])

0 commit comments

Comments
 (0)