AnsweredAssumed Answered

STM32CubeProgrammer DFU and Option Bytes

Question asked by Paolo Messina on Apr 12, 2018
Latest reply on Apr 12, 2018 by Amel N

When I try to change option bytes, the device gets reset but the app keeps waiting forever: only a manual device reset in DFU mode will make it continue and exit normally.

For example running:

STM32_Programmer_CLI.exe -c port=usb1 -ob BOR_LEV=4

Gets this output:

      -------------------------------------------------------------------
                       STM32CubeProgrammer v1.0.0
      -------------------------------------------------------------------

 

 

 

USB speed              : Full Speed (12MBit/s)
Manufacturer ID        : STMicroelectronics
Product ID             : STM32  BOOTLOADER
Serial number          : 2076339B5636
Firmware version       : 0x011a
Device ID              : 0x0435

 

   AREA NAME          SECT.NBR        ADDRESS         SIZE         TYPE

 


   Option Bytes         0000          0x1fff7800      0040 B       RW

 

   OTP Memory           0000          0x1fff7000      0001 KB      RW

 

   Device Feature       0000          0xffff0000      0004 B       RW

 

Device name:  STM32L43xxx/STM32L44xxx
Device type:  MCU
Device CPU :  Cortex_M4

 

UPLOADING OPTION BYTES DATA ...

 

  Bank          : 0x00
  Address       : 0x1fff7800
  Size          : 36 Bytes

 

██████████████████████████████████████████████████ 100%

 


PROGRAMMING OPTION BYTES AREA ...

 

  Bank          : 0x00
  Address       : 0x1fff7800
  Size          : 36 Bytes

 

██████████████████████████████████████████████████ 100%

 

UPLOADING OPTION BYTES DATA ...

 

  Bank          : 0x00
  Address       : 0x1fff7800
  Size          : 36 Bytes

Hanging here until reset in DFU mode again:

██████████████████████████████████████████████████ 100%

 

OPTION BYTE PROGRAMMING VERIFICATION:

 

Option Bytes successfully programmed

If programming Option Bytes leads to automatic device reset, then the app should not wait for verification, or at least it should have a command line (and GUI) option to skip verification step and exit immediately

Outcomes