cancel
Showing results for 
Search instead for 
Did you mean: 

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

swapnil champaneria
Associate III

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

14 REPLIES 14

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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

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

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

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

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

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

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.

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Please show screen-shot with Device Manager indicating "STM32 in DFU Mode" device and Cube STM32 Programmer, with USB source selected, and not showing device.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..