USB updatable app like XLOADER?

Post here first, or if you can't find a relevant section!
Post Reply
SphericalSound
Posts: 11
Joined: Sun May 17, 2020 3:59 pm

USB updatable app like XLOADER?

Post 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)
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: USB updatable app like XLOADER?

Post by stevestrong »

In Arduino you can select your preferred upload method under "Tools" menu, dependent on which core do you use.
SphericalSound
Posts: 11
Joined: Sun May 17, 2020 3:59 pm

Re: USB updatable app like XLOADER?

Post 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
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: USB updatable app like XLOADER?

Post by fpiSTM »

You can use DFU utils or the STM32CubeProgrammer
SphericalSound
Posts: 11
Joined: Sun May 17, 2020 3:59 pm

Re: USB updatable app like XLOADER?

Post by SphericalSound »

Fantastic. I will check. Many thanks! =D
SphericalSound
Posts: 11
Joined: Sun May 17, 2020 3:59 pm

Re: USB updatable app like XLOADER?

Post 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?
SphericalSound
Posts: 11
Joined: Sun May 17, 2020 3:59 pm

Re: USB updatable app like XLOADER?

Post 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?
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: USB updatable app like XLOADER?

Post by stevestrong »

I don't think that it is possible.
Stm32duino bootloader was designed to work with Arduino, STMcube programmer is a differente beast.
Post Reply

Return to “General discussion”