AnsweredAssumed Answered

Disabling flash sectors protection through dfu

Question asked by Michiel De Witte on May 18, 2017
Latest reply on Jun 9, 2017 by Michiel De Witte

Hi,

 

Is there a way to disable the "Flash sectors protection" through USB (DfuSeDemo/dfu-util/...)?

It can be done using the STM32 ST-LINK Utility,
by going to Target > Option Bytes, and unselecting all the sectors under "Flash sectors protection"
and pressing Apply.

Note that the sectors were Read/Write Protected.

 

As described in the last post on this topic: 
STM32F4 chip erase through DFU 
I would have to put the chip protection level to 1 and switch it back to 0 while changing the PCROP bit.
How would i go about doing this through the dfu-protocol or is this not possible.

Regards,
Michiel

Outcomes