Page 1 of 1

USB updatable app like XLOADER?

Posted: Wed Jul 08, 2020 10:48 am
by SphericalSound
Im producing some updates to bluepills. In arduino I tell users to use XLOADER to upload the hex files.

What would be the equivalent in the blue pill so users can update via USB?

(Their bluepills have the stm32bootloader installed)

Re: USB updatable app like XLOADER?

Posted: Wed Jul 08, 2020 1:29 pm
by stevestrong
In Arduino you can select your preferred upload method under "Tools" menu, dependent on which core do you use.

Re: USB updatable app like XLOADER?

Posted: Wed Jul 08, 2020 3:51 pm
by SphericalSound
But this would force users to compile sketches, something that mostly arent capable of.

Is there any way of sending them just the .bin file to directly upload via USB?


I guess worst case scenario I can say them to get 2usd stlinks and upload from there, but having the usb and the bootloader installed, would be a pity not to find a way to just upload it directly

Re: USB updatable app like XLOADER?

Posted: Wed Jul 08, 2020 4:17 pm
by fpiSTM
You can use DFU utils or the STM32CubeProgrammer

Re: USB updatable app like XLOADER?

Posted: Wed Jul 08, 2020 9:53 pm
by SphericalSound
Fantastic. I will check. Many thanks! =D

Re: USB updatable app like XLOADER?

Posted: Mon Jul 20, 2020 4:58 am
by SphericalSound
Can you upload via USB with the STM32CubeProgrammer or it works only for the 4 pins port?

Im trying to use dfu-utils but it is command console driven only, isnt?

Re: USB updatable app like XLOADER?

Posted: Tue Jul 21, 2020 10:15 am
by SphericalSound
The boards have the stm32duino booloader installed.

When I connect it to the usb to update the firmware via cube programmer, the USB does not recognize it and via UART, it gives this error:

Error connecting devide KO .... blah blah

Do you know if it´s possible to use the cube programmer with the stm32duino booloader?

Re: USB updatable app like XLOADER?

Posted: Tue Jul 21, 2020 11:02 am
by stevestrong
I don't think that it is possible.
Stm32duino bootloader was designed to work with Arduino, STMcube programmer is a differente beast.