cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer DFU and Option Bytes

Paolo Messina
Associate II
Posted on April 12, 2018 at 17:18

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

#option-bytes #dfu #stm32cube-programmer
1 REPLY 1
Amel NASRI
ST Employee
Posted on April 12, 2018 at 18:29

Hi

Messina.Paolo

‌,

I shared your use case with our STM32CubeProgrammer experts to check deeply the case and may be apply some enhancements .

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.