DFU error: bad state machine in firmware
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-18 5:17 AM
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:
After several times (may differ), I can do the upgrade.
Has someone already solved this problem or have any advise?
#dfu #bad-state-machine- Labels:
-
Bootloader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-18 5:29 AM
Does STM32L432KC have external clock source?
Check internal frequency via MCO pin PA8
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-18 7:37 AM
I am not using an externel clock.
HSI48 for USB
HSI:16 -> PLL to get 80MHz for the rest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-22 3:02 AM
on the MCO pin (PA8) I have a 80Mhz clock corresponding to my SysClk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-22 3:32 AM
The previous answer was when the application was running.
in DFU mode I dont have any clock signal on the PA8 pin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-28 1:17 AM
Turvey.Clive.002
‌, did you get any trouble with DFU and clock?I have read that they're might be DFU limitations.
I have a version information ID = 0x So no known limitations.
but still wondering if they is any.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-22 12:17 AM
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.
