2008-02-17 11:52 PM
2008-02-17 11:52 PM
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