Skip to main content
flo flo
Associate
May 18, 2018
Question

DFU error: bad state machine in firmware

  • May 18, 2018
  • 6 replies
  • 2967 views
Posted on May 18, 2018 at 14:17

Hello Everyone,

I am have a problem using Dfuse (v3.0.5) with my STM32L432KC.

I have a USB CDC class, not using a composite CDC-DFU.

Performing the DFU mode through the boot pin/bit.

During upgrade I got the following error:

0690X0000060BHqQAM.png

After several times (may differ), I can do the upgrade.

Has someone already solved this problem or have any advise?

#dfu #bad-state-machine
This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
May 18, 2018
Posted on May 18, 2018 at 14:29

Does STM32L432KC have external clock source?

Check internal frequency via MCO pin PA8

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
flo flo
flo floAuthor
Associate
May 18, 2018
Posted on May 18, 2018 at 14:37

I am not using an externel clock.

HSI48 for USB

HSI:16 -> PLL to get 80MHz for the rest

flo flo
flo floAuthor
Associate
June 22, 2018
Posted on June 22, 2018 at 09:17

I add a sleep time of 50ms 'sleep(50)' in case STATE_DFU_DOWNLOAD_BUSY in RunThread() function inside the downloadthread.cpp file

I have compiled the DFUSE v3.0.5 using the source giving by ST with visual Studio 2017.

Now it's working.