if(pof->m_fDetectedUsing28xxxConventions) {
int n=0;
// detect master lock situation
pof->m_pbMemoryMappedStartAddress[0x5555]=0x90;
if(pof->m_pbMemoryMappedStartAddress[3]!=0) { // master lock bit is set, no erases or writes are going to happen
pof->m_fIsBelievedCapableOfWriteAndErase=false;
nPos+=sprintf(&pof->m_szFlashDescription[nPos], "Master Lock SET ");
}
// detect block lock situation
nPos+=sprintf(&pof->m_szFlashDescription[nPos], "Block Locks: ");
while(n
m_dwLengthInBytes) {
pof->m_pbMemoryMappedStartAddress[0x5555]=0x90;
nPos+=sprintf(&pof->m_szFlashDescription[nPos], "%u", pof->m_pbMemoryMappedStartAddress[n|0x0002]&1);//0xB80002 +0x10000 8 times
n+=0x10000;
}
nPos+=sprintf(&pof->m_szFlashDescription[nPos], " ");
pof->m_pbMemoryMappedStartAddress[0x5555]=0x50;
pof->m_pbMemoryMappedStartAddress[0x5555]=0xff;
}
}
pkft++;
I never see the output from this code and I think it's on the wrong addresses and it sure doesn't work for device BF,60. I commented in the address I think it needs I dunno then clear it with 0x00. Also that read for the master lock at [3] it will read 0x01 like it should like it's the locked register but you can't actually write to [2] or [3] and you'd never write to