2014-12-02 05:14 AM
2014-12-02 08:29 AM
You think attaching the offending .HEX might help?
What address is the image compiled/linked at? Does the size of the image exceed the memory reported by the device?2014-12-02 04:39 PM
Thanks for your response.
The pictures below are the settings you mentioned.2014-12-02 05:10 PM
The part only has 64KB of flash (0x10000), you can't advance the address without shrinking the size an equal amount.
You'd want 0x08007000 with a size of 0x90002014-12-02 06:41 PM
I have changed the size of flash into 0x9000 or even smaller, but the same error occurs every time.
Now I am considering whether my DFU File Manager(v3.0.4) works correctly. Do you have a hex file that can be loaded in DFU File Manager(v3.0.4) correctly? Could you attach me the file to test if my DFU File Manager works fine on my computer? Thank you!2014-12-02 08:11 PM
I have 3.0.2, loading a different version would be too disruptive
2014-12-02 09:53 PM
Thank you very much!
My DFU File Manager doesn't work. I downloaded an old version which is 3.0.0, and everything now works fine.2014-12-12 01:18 PM
I hit this same issue using DFuse 3.0.4. Older versions do not appear to be available online. However, source code is provided with DFuse, so I was able to find and fix the bug.
Assuming you have Visual Studio and can rebuild, use this approach:- Copy \program files (x86)\stmicroelectronics\software\dfuse v3.0.4\sources to another folder- Open Dfuse.sln from this new location- In project STDFUFiles, open source file image.cpp- In function CImage::LoadHEX(), change variable 'colon' from unsigned long to char- Rebuild solution (you may need to also download a Microsoft MBCS add-on if you use VS2013)- The built DfuFileMgr should work correctlyThe bug is that they used an uninitialized ULONG to parse characters from the .hex file, and fscanf of ''%1c'' (to attempt to read the colon at start of line) only fills a single byte. This means the high bytes of variable 'colon' are likely non-zero random values, so fail comparison to ':', etc.Aaron2014-12-16 07:25 AM
Thanks for reporting this issue & also for the suggested solution.
It will be fixed in next release of the DFuSe.-Mayla-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.
2014-12-16 08:13 AM
Older versions do not appear to be available online.
Here's my mirror ofhttps://drive.google.com/file/d/0B7OY5pub_GfIdTE0N18ycHl2NlE/view?usp=sharing
andhttps://drive.google.com/file/d/0B7OY5pub_GfIV2IyV0JQWEdPNTQ/view?usp=sharing