Skip to main content
k_arthur
Associate III
April 26, 2007
Question

How to be shure that the flash bank erase unprotected ?

  • April 26, 2007
  • 2 replies
  • 683 views
Posted on April 26, 2007 at 06:08

How to be shure that the flash bank erase unprotected ?

This topic has been closed for replies.

2 replies

k_arthur
k_arthurAuthor
Associate III
May 17, 2011
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?

k_arthur
k_arthurAuthor
Associate III
May 17, 2011
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?