Skip to main content
Visitor II
February 18, 2008
Question

st10f275 flash Driver

  • February 18, 2008
  • 1 reply
  • 722 views
Posted on February 18, 2008 at 08:52

st10f275 flash Driver

    This topic has been closed for replies.

    1 reply

    Visitor II
    February 18, 2008
    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