2015-10-17 09:49 AM
Hi Community,
I was using a NetDuino 2 Board which is just an STM32F205. Since I couldn't get the USB HID device to work correctly I thought I would take a shot at making my own firmware for the board. I created a blinking LED App. It worked! Compiled it using Keil MKD v5. Converted the .HEX file to a .DFU Then Performed an ''UPGRADE'' on the board. The LED is blinking just how I programmed it. However, I see that what I should have done was to UPLOAD the .DFU program I believe. So I've overwritten the DFU Bootloader. I've searched everywhere in this forum for help on this so please excuse if this is a really fundamental question. I realize I need to use the ST-LINK board and the JTAG interface to fix this. How do I create another .DFU Bootloader Firmware for my STM32F205RFT6 MCU and using ST-LINK to upload it? Thank you. #dfuse #dfu #st-link2015-10-17 10:17 AM
No, the primary DFU loader is in ROM so you're not going to erase/overwrite that. Make sure BOOT0 is pulled/set high, and reset the chip/board. This will enter the System Loader, with its DFU support.
Secondary, user supplied, DFU firmware in FLASH can get overwritten, but that's another matter.2015-10-17 11:40 AM
Hi Clive,
Thanks for the reply. Ok, I'll try that. This board has a little button that was used before to put it into DFU mode that I would press and hold while plugging it into the USB. That doesn't appear to be working anymore. I'll look at the schematic and determine that in fact the button is attached to BOOT0. Might be I'll have to reset using the pin header and jumper. So what is the difference between Upload and Upgrade in the dfuse_demo application?2015-10-17 02:12 PM
I haven't used the NetDuino, it might have it's own loader, you'll have to check their website and documentation. If they have one, I'm sure it's available as a binary, or hex file of some description.
Don't use DFU a lot, used it to unbrick a few boards, you'll have to review the documentation for the tools and the loader.2015-10-20 03:27 PM
As it turns out my button wasn't working correctly. So pressing it harder made the board go into DFU mode. Your suggestion put me on the right path and was finally able to after trial and error configure the PLL for the right settings so the CubeMX HID USB Device would work correctly.
DFUSE Demo uses some bizarre terminology. Upgrade is what I needed to use all along to Upload the firmware to the MCU. The Upload Option will Download the firmware from the MCU.