Firmware Upgrade using USB Key - How to get started? (CubeMX / F4Discovery / DFU?)
Setup:
(custom hardware based on STM32f373 with a USB A female port)
STM32F407 Discovery Board with additional micro-B to A cable for the USB drive
Keil uVision 5 and STM32CubeMX
What I want to do:
Plug in a USB thumb drive into the USB port to upgrade the firmware on the STM32f373.
This way, the STM32 acts as a USB host and pulls the firmware from the USB drive. I don't want to use a computer to program the microcontroller (using DfuSe).
I am using the STM32F4 discovery with a micro-B to A cable to test this feature before moving to my custom hardware.
What I found out so far:
- DFU mode is only accessible in device mode (not host mode) in STM32CubeMX
- There is AN3990 "Upgrading STM32F4DISCOVERY board firmware using a USB key"
My questions:
- Where are the source code files referenced in AN3990?
- Is it true that DFU only works with the microcontroller as a slave?
- Are there other examples that show how to do firmware upgrades from a USB drive?
