cancel
Showing results for 
Search instead for 
Did you mean: 

How to program option bytes (using One of the DFU file Images) in to STM32 uC chip successfully using DfuSe demo application

nirav soni
Associate II

·      I am trying to modify the option bytes in STM32 chip to enable the Read Out Protection, for that I have created Hex file of option bytes, then merged image for Target ID 00 from my program build (Hex file) and Image for Alternate Setting 01 from Option bytes build (Hex file) build and created dfu file using DFU File Manager. (Check Figure-1, 2 & 3)

Figure-1

0690X000008B8XmQAK.png

Figure-2

0690X000008B8Y1QAK.png

Figure-3

0690X000008B8YBQA0.png

·      Used DfuSe demo application to upgrade Images for Target ID 00 (Internal Flash or Program-Build) then for Target ID 01 (Option Bytes or Option-Bytes-Build) in to uC mounted on target board. (Check Figure-4 & 5)

Figure-4

0690X000008B8YQQA0.png

Figure-5

0690X000008B8YVQA0.png

Query:

1)     Is there anything incorrect in procedure described here?

2)     Sometimes Defuse is getting hung when trying to upgrade for Target ID 01 (Option Bytes or Option-Bytes-Build) in to uC mounted on target board. (Check Figure-5), If you note in Figure-5 even for a successful upgrade operation I am getting this (Not getting the message with green background as getting in Figure-4), why is that so?

3)     Which version of DfuSe Demo application should be used to get the options bytes Edit menu (As shown in Figure-6) for STM32F767 & STM32F070RBTx, In latest tool DfuSe Demo (v3.0.6) it is not available?

Figure-6

0690X000008B8YpQAK.png

Guys, Please respond if any one has resolved such type of issue.

0 REPLIES 0