Skip to main content
ab.2
Associate
August 16, 2022
Question

DfuSe Demo v3.0.6 doesn't flash stm32f722ret6

  • August 16, 2022
  • 2 replies
  • 4753 views

I was trying to flash stm32f722ret6 via DFU mode. DfuSe Demo typing successful status but firmware doesn't update.

0693W00000QNm4kQAD.jpg0693W00000QNm59QAD.jpgBut when I download .hex file via ST-LINK a firmware works. What could be the problem?

This topic has been closed for replies.

2 replies

Peter BENSCH
Technical Moderator
August 16, 2022

Welcome, @Community member​, to the community!

The clock could be the cause of this. DFU runs via the internal bootloader, which requires certain crystal frequencies in order to synchronise. The AN2606 writes about this in section 4.1:

For STM32 devices embedding bootloader using the DFU/CAN interface in which the external clock source (HSE) is required for DFU/CAN operations, the detection of the HSE value is done dynamically by the bootloader firmware and is based on the internal oscillator clock (HSI, MSI). When (because of temperature variations or other conditions) the internal oscillator precision is altered above the tolerance band (1% around the theoretical value), the bootloader might calculate a wrong HSE frequency value. In this case, the bootloader DFU/CAN interfaces might malfunction or not work at all.

Please also check AN2606 which clock frequency is required for your STM32.

Does it answer your question?

Regards

/Peter

In order 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.
ab.2
ab.2Author
Associate
August 16, 2022

Thanks for reply

In my scheme used KXO-V97T 8MHz as HSE. I searched in 36.2 section in AN2606 which clock frequency is required for my MCU. It only says that SYSCLK set in 60MHz and USB clock to 48MHz. Without a specific value of HSE clock. Exist would other reasons my problem?

ab.2
ab.2Author
Associate
August 19, 2022

Failed to create dfu file. The only option I see is flashing through ST-LINK and uploads DFU file by using DfuSe. Very strange.

Tesla DeLorean
Guru
August 19, 2022

Did it report an error? It's quite an old app, and might have expectation as FLASH and RAM sizing when doing a stack address check.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ab.2
ab.2Author
Associate
August 20, 2022

I sent feedback on stsw-stm32080 product page. I added bug description and link to this topic.