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)
USB updatable app like XLOADER?
-
- Posts: 505
- Joined: Fri Dec 27, 2019 4:53 pm
- Location: Munich, Germany
- Contact:
Re: USB updatable app like XLOADER?
In Arduino you can select your preferred upload method under "Tools" menu, dependent on which core do you use.
-
- Posts: 11
- Joined: Sun May 17, 2020 3:59 pm
Re: USB updatable app like XLOADER?
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
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?
You can use DFU utils or the STM32CubeProgrammer
-
- Posts: 11
- Joined: Sun May 17, 2020 3:59 pm
Re: USB updatable app like XLOADER?
Fantastic. I will check. Many thanks! =D
-
- Posts: 11
- Joined: Sun May 17, 2020 3:59 pm
Re: USB updatable app like XLOADER?
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?
Im trying to use dfu-utils but it is command console driven only, isnt?
-
- Posts: 11
- Joined: Sun May 17, 2020 3:59 pm
Re: USB updatable app like XLOADER?
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?
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?
-
- Posts: 505
- Joined: Fri Dec 27, 2019 4:53 pm
- Location: Munich, Germany
- Contact:
Re: USB updatable app like XLOADER?
I don't think that it is possible.
Stm32duino bootloader was designed to work with Arduino, STMcube programmer is a differente beast.
Stm32duino bootloader was designed to work with Arduino, STMcube programmer is a differente beast.