2012-10-04 06:21 AM
Hi,
I came to the stage where I want to upload my own FW into the STM3220-EVAL board running on STM32F207 CPU.My first attempt was to use original ST DfuSe utility. I was trying to run bot 32 and amd64 bit versions on my Win7 x64 PC. None of them had worked. Both fail with message ''The application was unable to start correctly (0xc0150002) ....'' message.Second attempt was to use dfu-util.Somehow I managed to communicate with DFU System LoaderFound DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name=''UNDEFINED''Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=1, name=''UNDEFINED''Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=2, name=''UNDEFINED''Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=3, name=''UNDEFINED''But I'm not sure what to do next and how to get full control on all System Loader features (especially Lock Bits).So my questions are:1. How to make ST DfuSe utilit to run correctly on Win7 x64 machine2. What other options do I have? What would you suggest?I must say that so far my first step with STM32 were very disappointed. The trivial things that were so simple in AVR world takes me a lot of efforts with STM32.But I will keep trying...Thanks for you help. #dfuse-0xc01500022012-10-04 08:36 PM
So what is the right way to program FW into flash and lock System Loader?
2012-10-05 06:29 AM
When dfu-util lists ''UNDEFINED'' it was not able to talk directly to the device. Usually this is a permission problem, on Windows it also can mean that a driver for libusb is missing (e.g. WinUSB) or not associated with the device (use Zadig.exe to select driver for your USB devices, more info on libusbx.org).
2012-10-05 06:30 AM
(double post - d*mn Sharepoint cr@p)
2012-10-05 07:01 AM
No it is not libusb problem. dfu can detect device and it can see it's VID:PID 0483:df11
If I disconnect USB from demo board I do not get this output at all. But my main questions were: 1. How to make ST DfuSe utilit to run correctly on Win7 x64 machine 2. What other options do I have? What would you suggest? The dfu util has a very pure documentation. I can't see for instance how to control lock bits with it. Also I'm not quite sure what kind of image it requires. How can I generate a DFU image format?2012-10-05 08:22 AM
Also I'm not quite sure what kind of image it requires. How can I generate a DFU image format?
Doesn't DfuFileMgr take BIN, S19 (Motorola) and HEX (Intel) format?http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/CD001556pdf
2012-10-07 03:21 AM
Thanks.
So do I understand it right that DifuSe tool can not be run on Win7 x64 (intel 64bit) machine? Is where any fix to make it work?2012-10-08 11:41 AM
I said ''talk directly to'', not ''detect''... libusb can see all USB devices on the bus, but without a correctly installed driver (e.g. WinUSB) for a device it can not open it (on Windows).
We have improved the dfu-util documentation a bit recently, please see dfu-util implements the DfuSe protocol including special commands like ''Read Unprotect'', and you can probably program the Option bytes by downloading the right bytes to the right address but those things are chip-specific. Tormod2012-10-28 09:50 PM
To fix the ''0xc0150002'' problem when running DFUse download and install the ''Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)'' (or maybe x64) form here:
http://www.microsoft.com/en-us/download/details.aspx?id=5638 Good luck, Cat