Skip to main content
Visitor II
March 14, 2006
Question

IAP, option bytes erasing

  • March 14, 2006
  • 1 reply
  • 697 views
Posted on March 14, 2006 at 10:47

IAP, option bytes erasing

    This topic has been closed for replies.

    1 reply

    luterAuthor
    Visitor II
    March 14, 2006
    Posted on March 14, 2006 at 10:47

    Hi, All.

    I'm writing bootloader for st7mc2s5t6 and i got a problem. i can not erase option bytes. steps i am doing:

    1) unlock rass

    2)12v on Vpp switch on

    3) erasing option bytes -- operation failed :-[

    I get exactly this status code after command execution.

    My programming frequency is ok. all sectors are erased and flashed. i do not use readout protection. option bytes code for HDFlashEraseSector() function is 0x0f.

    What is wrong?

    One more thing i do not understand:

    i made a loop, which executes HDFlashEraseSector() function with values range from 3 up to 255. And with some values in the range 170-180 this function returns ''Operation successful'' and option bytes are 0xff 0xff. What does it mean?

    Tnx in advance.