matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12005
Posted: 11:43am 27 Mar 2016
One problem is that the JEDEC ID doesn't give the flash size in the same format as Winbond. For Winbond the last part of the ID specifies the size as 2^ID2 bytes so for ID &HEF4016 &H16=4Mbyte, EF4017 = 8Mb, EF4014=1Mb etc.
The software uses this to set the size of the index.
The Microchip part sets the "size " as &H42. 2^&H42 means that the whole flash is dedicated to the index and nothing can be written.
To cater for this the full Microchip ID would have to be hardcoded in the pagecount CFunction then it might work if there is nothing else incompatible.
UPDATE
drkl
Please could you substitute this version of the CFunction in the code and see if it works with the Microchip flash