2011-07-09 01:53 AM
Hi,
We need to upgrade the firmware of a STM32 MCU (used in a commercial product) using a proprietary PC application. the STM32 supports the DFU mode and has a PC application called DFUSE which provides the user interface.
We want to integrate commands which DFUSE is using and have a proprietary interface to upgrade the firmware of the ST32. Is there any source code available for the DFUSE utilty or any dll library which can be used for developing the application.If a library is provide can you share a link to the documentation providing details of API's used.
Does anyone have prior experience in doing this?Thanks in advance for your replies.
Royston
2011-07-13 06:09 AM
Hi Ryan,
Im currently working on the inemo platform and it has the STM32f103ret7 MCU I have taken a look at the application note for the DFUSE library. By my understanding of it I figured out that 1.First you have to go through the GUIDs on your PC 2.Get the GUID of DFU devices connected 3.Find your device from the DFU GUID depending on certain enumerated parameters 4.Use the libraries given by ST to program over DFU to ur device Am I correct in deriving the above conclusions? I had a few more questions regarding DFUse If i need to have a proprietary license for my device which I place in the inf file.What changes I need to make in my firmware? Since the DFU is a bootloader, im guessing,so it will have to be provided by ST Is the source code for the DFU bootloader available? Can the DFU bootloader be re-programmed or is it fixed? Is any form of USB bootloader code for ST available for the series of MCU Iam using Thanks and regards, Royston2011-08-08 02:33 AM
Rather frustratingly, only a month later, ''DfuSe USB Device Firmware Upgrade....'' has already moved.
I found what I presume is, it in 'software resources' on the `see all' tab, which includes stuff not shown under other headings. :\ Gordon.2015-01-25 08:02 PM
2015-01-27 12:24 AM
I am wonderring whether the STM32_USB-FS-Device_Lib_V4.0.0 can apply to a SMT32F429? I am working on a project with F429. If yes, it would be amazing for me.
Thanks advance2015-01-28 12:03 AM
Hi Linda,
USB library for F4 products ishttp://www.st.com/web/en/catalog/tools/PF257882
.If you want to use Cube, look to:-http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00108129.pdf
-http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00105256.pdf
-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.
2015-02-04 02:17 PM
Dear Mayla,
Thanks for your instruction. I downloaded this library, but I can not make it work. I expect a menu to be shown in the LCD of STM32F429, but nothing show up in the LCD. Do Do I have to connect a micro card in the USB USER(connetor 6) first to make it work? Can I use the STM32F429 to read a file in my PC when it connect to my PC? Thanks2015-02-04 03:35 PM
For the STM32F429I-DISCO and a USB Flash drive, consider the Standard Peripheral Library example:
STM32F429I-Discovery_FW_V1.0.1\Projects\FW_upgrade2015-02-07 12:55 AM
Thank Clive1, it help a lot.
2015-02-10 04:37 AM
STM32F429I-Discovery_FW_V1.0.1\Projects\FW_upgrade is working fine with the 2 samples:
STM32F429I-Discovery_SysTick_0x08020000 STM32F429I-Discovery_LTDC_ColorKeying_0x08020000 But when I tried on my projuct, it didn't work. The size of mine is 993k. It should not be a problem. The board can read the bin file, the LED3(green light) is on, that means it download the right file. I double checked that I set the VECT_TAB_OFFSET at 0x020000, and set the target address is: 0x8020000 size 0x1E0000 when I create the hex fine of my project. it still didn't work. Even I tried on the demoe (STM32F429I-Discovery_FW_V1.0.1\Projects\Demonstration), it didn't work eigher. I have tried some small projects using the same way, it seem work. Please help Thanks