cancel
Showing results for 
Search instead for 
Did you mean: 

A couple of questions regarding DFU bootloader and STM32F401CE

JSmit.18
Associate II

Hi all,

I am new here and to STM32 in general.

  1. Does the STm32F401CE comes from the factory with a DFU bootloader?
  2. If so, does a full chip erase with the CubeProgrammer and a stlink v2 erases that factory bootloader?.
  3. If so, is the binary of the factory bootloader available so it can be flashed back into the device?

I can't get the DFU bootloader recognized by the CubeProgammer, if it's because of the full chip erases I performed, I wonder if I can program the stock bootloader back. Below is a snapshot of a memory dump of of the bootloader area, I think. I am using STM32F401CE with a 25Mhz external crystal, and everything else works.

0693W000007CRAKQA4.png

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief II

All bootloaders from factory is in system memory and cant be erased.

Read STM32 microcontroller system memory boot mode - Application note

in simple for start boot mode you need on reset have BOOT1 BOOT2 ... pins state

You can write own bootloader and flash it, this can be erased...

View solution in original post

3 REPLIES 3
Pavel A.
Evangelist III

Is the DFU device visible to the operating system (Device manager, USB view, lsusb...) ?

MM..1
Chief II

All bootloaders from factory is in system memory and cant be erased.

Read STM32 microcontroller system memory boot mode - Application note

in simple for start boot mode you need on reset have BOOT1 BOOT2 ... pins state

You can write own bootloader and flash it, this can be erased...

JSmit.18
Associate II

Thanks MM..1, that answers my question, factory bootloaders cannot be erased.

BTW, I looked that the document you mentioned before I posted here but I still see where it says that factory bootloaders cannot be erased.