cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0 USB DFU Upload doesn't work with Android application StmDfuUsb

Marc1
Associate III

Configuration: NUCLEO-L053R8 with USB DFU_Standalone example project from ST

Hi there,

I'm using the Nucleo board NUCLEO-L053R8 together with USB DFU Standalone example project from ST.

My intention is to update application firmware using USB. I successfully tested USB DFU-Upload with the following applications:

* dfu-util (Linux application) from https://dfu-util.sourceforge.net/
* DfuSe_Demo from (Windows application) ST

Unfortunately USB DFU Upload doesn't work with my Smartphones (Samsung), using Android application StmDfuUsb from https://yatrim.com/stmdfuusb:

- DFU download (flash to file) works
- Flash Erase works
- DFU Upload (file to flash) doesn't work (please have a look at the screenshot)

Screenshot_20241213-183525_StmDfuUsb.png

In my microcontroller application I can see that function Flash_If_Write returns 0 once (after writing the first 1024 Bytes) and later never returns anything.

I'd like to know if anybody could get working Android application StmDfuUsb together with STM32L0 devices and USB DFU_standalone example.

Is it a problem of the Android application StmDfuUsb or is it a problem of the microcontroller firmware. What debugging options do I have. I'm not really familiar with the USB DFU protocol.

Are there any code examples for Android and iOS relating USB DFU and STM32L0 devices?

Thank you in advance for your comments.

4 REPLIES 4

As I recall only a small subset of the STM32L0xx devices supporting USB/DFU, it may be a general solution, and the support in the part more nuanced.

You might need to engage with the developer of this app for support costs/options.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Evangelist III

Email of this Android app developer is available in the Google store.

https://play.google.com/store/apps/details?id=com.yatrim.stmdfuusb

He may be able to help. Hoping he and his family are well and safe.

 

Marc1
Associate III

It seems that my post was misinterpretative.

I'm not talking about the factory embedded DFU bootloader, which some microcontroller include. I'm talking about the software USB "DFU_standalone" example, provided by ST, which should work with any USB capable STM32L0 device.

And my intention is to figure out if the microcontroller application example is buggy of if just the the Android application doesn't work correctly. My question was, if anybody could get working Android application StmDfuUsb together with STM32L0 devices and USB DFU_standalone example.

Try with hex file. And i mean when linux version works, too android will, but try other cable or check PSU.