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

Thanks for your reply @Community member​ ,

Here I attached a snap of device manager, Cube programmer and DFU-SE demo.

0690X0000087VgYQAU.png

Thanks and Regards,

 Swapnil

Thanks for your reply @Amel NASRI​ ,

My device has been detected as STLINK mode but not as DFU mode after before and after upgrading Cube programmer and Device firmware software. I attached a snap of my device firmware version hereby,

0690X0000087VgsQAE.png

Thanks and Regards,

Swapnil

Any thoughts at ST as to why this isn't working properly? @Nawres GHARBI​ @brk​ 

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

​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 II

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).