2024-12-14 09:24 AM - edited 2024-12-14 08:12 PM
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)
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.
2024-12-14 10:28 AM
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.
2024-12-14 10:55 AM
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.
2024-12-14 08:10 PM - edited 2024-12-14 08:16 PM
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.
2024-12-15 12:33 AM
Try with hex file. And i mean when linux version works, too android will, but try other cable or check PSU.