uM2(+): data logging - cheap fast & easy


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12005
Posted: 11:43am 27 Mar 2016      

  Quote  Why not use the Microchip SST26VF032B flash? I try: JEDEC code, size ok,
write ok , but read back is nothing.


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

CFunction pagecount
00000000
27BDFFC8 AFB20024 AFBF0034 AFB50030 AFB4002C AFB30028 AFB10020 AFB0001C
8CB00000 3C029D00 8C420088 00101880 00621021 8C420000 24030008 10430007
00809021 3C029D00 8C420010 02002021 24050008 0040F809 00003021 3C029D00
8C42001C 02002021 0040F809 24050005 2403009F 3C02BF80 AC435820 3C03BF80
8C625810 30420080 1040FFFD 3C02BF80 8C435820 3C03BF80 AC405820 8C625810
30420080 1040FFFD 3C02BF80 8C545820 3C03BF80 AC405820 8C625810 30420080
1040FFFD 3C02BF80 8C555820 3C03BF80 AC405820 8C625810 30420080 1040FFFD
3C119D00 8E22001C 02002021 24050006 3C03BF80 8C735820 0040F809 00148200
24020010 AFA20010 02158021 8E220030 00108200 02138021 26440001 02003021
0040F809 00103FC3 24020006 A2420000 3C0200BF 24422642 24044000 1202000B
00002821 3C0200BF 24422602 12020006 2673FFF8 24020001 02629804 02602021
10000002 00132FC3 00002821 8FBF0034 00801021 00A01821 8FB50030 8FB4002C
8FB30028 8FB20024 8FB10020 8FB0001C 03E00008 27BD0038
End CFunction
Edited by matherp 2016-03-29