cancel
Showing results for 
Search instead for 
Did you mean: 

How to be shure that the flash bank erase unprotected ?

k_arthur
Associate II
Posted on April 26, 2007 at 06:08

How to be shure that the flash bank erase unprotected ?

2 REPLIES 2
k_arthur
Associate II
Posted on May 17, 2011 at 09:42

// Check if all sectors are unprotected

*(vuint16*)(80000) = 0x90; // RSIG comand

i = *(vuint16*)(80000 + 0x10) & 0x00ff;

*(vuint16*)(80000) = 0xFF; // Leave RSIG mode

if (i)

return (1); // Not unprotected

return(0);

I want to check if the bank0(after remaping)(0x80000) is unprotected.

What is wrong with this code.

Or how to check if the bank0 unprotected?

k_arthur
Associate II
Posted on May 17, 2011 at 09:42

sorry

// Check if all sectors are unprotected

*(vuint16*)(0) = 0x90; // RSIG comand

i = *(vuint16*)(0 + 0x10) & 0x00ff;

*(vuint16*)(0) = 0xFF; // Leave RSIG mode

if (i)

return (1); // Not unprotected

return(0);

I want to check if the bank0(after remaping)(0x80000) is unprotected.

What is wrong with this code.

Or how to check if the bank0 unprotected?