[SOLVED] STM32F401CB - Option bytes programming error

  • [SOLVED] STM32F401CB - Option bytes programming error

    Hello,
    I have a problem with option bytes programming on microcontroller STM32F401CB.
    At first we were using ST-Link to program this device, including option bytes and it worked. Then we have to use more industrial programmer so we chose Flasher ARM.

    So problem is that erasing, programming and verifying works OK, but option bytes are not programmed, despite the output of JFlash says: De-initializing CPU core (Exit sequence) ... - De-initialized successfully
    If i check it with ST-Link, option bytes are still in default state.

    I've read about option bytes programming in JFlash manual, so I checked correct values in STM32F401 manual, and I belive Exit sequence is correct STM32F405OE_OptBytes3.jflash (see attached file).

    Thank you for your help.

    Jiri
  • Hi Jiri,


    we will take a look at this issue.

    Could you please open J-Link Commander(jlink.exe) and make a screenshot of the output?

    Could you please make sure that the ST-Link is not connected during programming?
    Was the target board power cycled before connecting the ST-Link to check the option bytes?


    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • UPDATE:

    Finally, I figured it out! Thank you for the J-Link logfile feature :)

    Problem was, that I set option bytes register to value 0x0FFFFF25 -> but that causes that I accidentally lock this register, so next operation was not performed. So I changed register value to 0x0FFFFF24 and it worked.

    Jiri
  • Hi,

    great to hear that you are up and running!
    *Marking support case F3353 as solved*

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.