Skip to main content
Visitor II
June 23, 2022
Question

B-L475E-IOT01A USB DFU is stuck in different states.

  • June 23, 2022
  • 12 replies
  • 2805 views

I am using B-L475E-IOT01A (STM32L475VGTx) dev kit and this article for DFU and I am getting following issue.

Sequence of process I do is as below.

  • Erase the whole flash.
  • Flash the bootloader created based on above video.
  • Make a DFU using DfuSe Tool and It works.

But when I want to upgrade the device again with DfuSe Tool, DFU process stuck or gives me error. Please see below screenshot.

0693W00000NsWVVQA3.png0693W00000NsWVfQAN.pngUpgrade file is simple LED blinking application. It works when I do the DFU first time. But for upcoming DFU does not work.

Can anyone please help me out here ?

    This topic has been closed for replies.

    12 replies

    Visitor II
    July 1, 2022

    @Mike_ST​  Thank you for resoultion and explanation.

    I have done changes as you suggested and it worked. :grinning_face:

    I have gone through the AN3156 but couldn't get an idea of why the workaround you suggested is worked or what is incomplete in my DFU protocol implementation.

    Can you please elaborate ? It would be great help for me.

    Technical Moderator
    July 1, 2022

    This implementation is only an example and is only deleting 1 page of flash memory before programming.

    So it would work for small binaries (2KB max) and that is why deleting more flash pages helps.

    So you have to understand it and adapt it for your needs.