Skip to main content
swapnil champaneria
Associate III
March 2, 2019
Question

Why STM32L432KC shows "BAD STATE MACHINE IN FIRMWARE In dfu mode?

  • March 2, 2019
  • 7 replies
  • 2451 views

stm32l432kc shows bad state machine in firmware when tries to upgrade code in dfu mode using the same code with the same file.0690X000006DwjqQAC.png

This topic has been closed for replies.

7 replies

Tesla DeLorean
Guru
March 2, 2019

Not an error state that I'm familiar with, would look at .HEX and .DFU involved. ​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
March 2, 2019

Try STM32 Cube Programmer it also supports USB/DFU connectivity. ​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
swapnil champaneria
Associate III
March 4, 2019

Thanks for reply

I am facing same problem even if I generated file using the upload button in  the software and try to upgrade this file in stm32l432kc again, Any suggestion to solve this issue 

swapnil champaneria
Associate III
March 4, 2019

@Community member​  Thanks for replay, In stm32 cube program my device not detected in dfu mode 

Amel NASRI
Technical Moderator
March 4, 2019

Try upgrading the ST-Link firmware first.

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.
swapnil champaneria
Associate III
March 4, 2019

Thanks for your reply @Amel NASRI​ , 

I upgraded ST-Link's firmware, but it still shows the same error as before.

Your reply will worthier to me.

Thanks and Regards,

Swapnil

Amel NASRI
Technical Moderator
March 4, 2019

My proposal is for the case when STM32CubeProgrammer is used. Is your device detected after updating the ST-Link firmware?

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.
Tesla DeLorean
Guru
March 4, 2019

OP Attempting to connect in USB/DFU mode, NOT as ST-LINK

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Houda GHABRI
ST Employee
May 9, 2019

​Hello @swapnil champaneria​ ,

Sorry for the late repons.

Could you plz try with last version of STM32CubeProgrammer :2.1.0.

Tested for my side and it is OK.

Please  let me know if you still have the same issue.

regards,

Houda

DWalk.1
Associate
March 18, 2021

I know this is an old thread, but I'm having the same issue. I believe my problem is with USB signal integrity. In my case, I changed layers on the USB traces on a 4-layer board with a ground and power plane. The return path for the USB signals has to find the nearest bypass capacitor which is 0.25" away. I may also need to monkey with my trace width to get closer to 90 Ohms (Right now I'm at 100 Ohms).