cancel
Showing results for 
Search instead for 
Did you mean: 

st10f275 flash Driver

praveenkumar
Associate
Posted on February 18, 2008 at 08:52

st10f275 flash Driver

1 REPLY 1
praveenkumar
Associate
Posted on February 18, 2008 at 08:52

Hello All,

We are working on St10275 Cotroller for automotive application.

I am facing the strange problem in the flash driver.

The code for erasing the flash looks as below,

FCR0H = FCR0H | FLASH_TYPE;

FCR0H = FCR0H | SECTOR_ERASE;

FCR1L = sector_no

FCR0H = FCR0H |WMS;

after this code wait in the while loop till the LOCK bit is reset.

All these code is executed in RAM.

With this pice of code, i am able to erase the Xflash and the first 4(0-3) sectors of the Iflash.

If i tries to erase the 4th sector of the flash controller is getting the reset.

Please help me to solve this problem.

Regards,

Praveen