cancel
Showing results for 
Search instead for 
Did you mean: 

DfuSe Demo crashes during Verify

edlund73
Associate
Posted on April 19, 2013 at 09:23

Hi,

I'm trying to use the DfuSe Demo (v3.0.3) to program the STM32 on an STM3240G-EVAL board. When I click ''Upgrade'' in the tool it works as long as I do not select ''Verify after download'' or click the ''Verify'' button.

I'm running 64-bit Windows 7 Proffessional.

When I click ''Verify'', the Dfuse Demo application crashes and a ''DfuSe Demo has stopped working'' dialog is displayed with the following detailed information:

----------

Problem signature:

  Problem Event Name: APPCRASH

  Application Name: DfuSeDemo.exe

  Application Version: 3.0.3.0

  Application Timestamp: 4ecd2975

  Fault Module Name: StackHash_427e

  Fault Module Version: 6.1.7601.17725

  Fault Module Timestamp: 4ec49b8f

  Exception Code: c0000374

  Exception Offset: 000ce6c3

  OS Version: 6.1.7601.2.1.0.256.48

  Locale ID: 1053

  Additional Information 1: 427e

  Additional Information 2: 427e33db81e067f5c132bd61e44036e8

  Additional Information 3: dfff

  Additional Information 4: dfff3649a8f15f879c998a2d67599592

----------

I desperately need to be able to upgrade device firmware over USB.

What can I do to make this work?

/Mattias

#stm32-dfuse-verify
15 REPLIES 15
Nickname12657_O
Associate III
Posted on April 21, 2013 at 16:55

Dear Mattias,

Thanks for the valuable post.   We confirm that issue with some PC configuration working on Win7 (x64) versions.  This is due to link of some DLLs with static memory in Windows7 x64

that are cleaned/free but in another one is still being used.   we will fix that issue  in our version 3.0.4 that will support also Win8 (x64 and x86).

Cheers,

STOne-32.

erik239955_st
Associate II
Posted on June 14, 2013 at 18:10

Any idea when v3.0.4 will be released?

Thanks

clumsygenius
Associate
Posted on July 09, 2013 at 00:27

My company is also held up by this issue. Would highly appreciate an estimate relese date for 3.0.4 , or a Beta version.

Thanks

Posted on July 09, 2013 at 01:10

https://docs.google.com/file/d/0B7OY5pub_GfIdTE0N18ycHl2NlE/edit?usp=sharing

Works with Win7 x64
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
clumsygenius
Associate
Posted on July 09, 2013 at 01:23

Thank you clive1, I downloaded 3.0.2 and unfortunately it does not have the command line tool that we need. The command line tool crashes with the same error (''DfuSe Application has stopped responding) when we try to download or upload.

martin2
Associate
Posted on January 20, 2014 at 14:32

Hi,

I am also using DfuSe tool to update my STM32 FW. Version 3.0.3 also crashes but I also do have problem with Version 3.0.2. Verification always reports me a mismatch on the first Address. The DFU FW running on my target device is the unchanged package ''stsw-stm32121''. Any hint on this problem?

Thanks in advance

Posted on January 20, 2014 at 17:44

I and my colleagues have had success with 3.0.2 on numerous Win7 x64 system, perhaps there are some other dependencies, or issues related to the size of the image being flashed. The 3.0.3 release did break on these same systems.

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF257916

I've not seen any updates, so I'll kick the moderator and see if we can get this resolved.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
pa2
Associate II
Posted on December 26, 2014 at 16:42

kiepfer.martin: I was in the same trouble for a long time (you can see my question post in ''STM32L1xx DFU bootloader in FLASH memory problems'' thread)

, and I was waiting for DfuSe v3.0.4 release hoping it would solve the problem, but it didn't.

Today I examined the source code for mcu side of DFU more closely and found the error.

In flash_if.c file FLASH_If_Write function you have to make this change on commented line:

//      if (malPointer < ((uint32_t *)MAL_Buffer + DataLength))

      if (malPointer < ((uint32_t *)MAL_Buffer + DataLength / 4))

othervise it will write erroneous data to FLASH due to wrong copied data from DFU PC application (Instead of zeroes for are where nothing should be written, some data from previous image are written, so actual image is written with errors on the its beginning).

I hope this can help to somebody...
aodhancoffey
Associate II
Posted on May 21, 2015 at 11:42

Pajik,

I am having the same problem you described. However, your fix did not resolve the issue. I am only having this issue with the L152x board. The Dfuse program is still reporting a mis-match while verifying the write was correct. Did you change anything else in the FLASH_If_Write function?