I have an STM32F4 microcontroller connected to an Android (4.4) USB Host port. I would like to do a firmware upgrade of the microcontroller from the Android device.
=================== ===================
| Android 4.4 | <=======================> | STM32F405xx |
| Device | USB Host USB Device | Microcontroller |
=================== ===================
Traditionally, STM32 microcontrollers can have their firmware upgraded using the PC tool called DfuSe Utility provided by ST. But I need to do this from an Android device instead. The source for their tools are provided.
Questions:
- Can the firmware for the microcontroller be upgraded using the standard USB Host libraries from Android in
Java? - Or does this need to be done using the
NDK, and port theDfuSesource? If so, which libraries should be used to access USB from theNDK?
Which direction should be taken and how can this be done?