Loading .bin without using Arduino IDE

MakcYan
Fri Nov 24, 2017 4:10 pm
Hello!
Tell me how can I load the compiled sketch in .bin format into the STM32f103 board with bootloader stm32duino via USB?
Such situation: the device at the person, but I do not want to give the source code.
Perhaps there are such programs

Russian variants:
Здравствуйте!
Подскажите как можно загрузить скомпилированный скетч в формате .bin в плату STM32f103 с bootloader stm32duino по USB?
Такая ситуация: устройство у человека, но я не хочу предоставлять исходный код.
Возможно существуют такие программы


ag123
Fri Nov 24, 2017 4:29 pm
dfu-util -a n -D firmware.bin

MakcYan
Fri Nov 24, 2017 4:41 pm
The person who has the device can not figure out how to do this.
Ideal situation: the person starts the program, indicates the .bin file, flushes it.

zmemw16
Sat Nov 25, 2017 5:30 pm
on which OS ?
which cpu ? guessing stm32f103c8t6 ?
which board ? Blue Pill, Baite Mini, Maple Mini or something else
which core ? initial suspect is Rogers’
which Arduino issue 1.6.9 1.8.5 or something else

if they have internet, point them to the wiki and browse the stm32f103 boards, ask them to identify the suspect

nb i use linux so slight bias

1. do you know they have dfu-util installed ? and if it’s in the PATH ?
win [open a cmd window] type dfu-util and press return
linux [xterm]type dfu-util and press return
optimal is a version output mithering about help
stephen@i71:~$ dfu-util
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to [email protected]

You need to specify one of -D or -U
Usage: dfu-util [options] ...
-h --help Print this help message
-V --version Print the version number
-v --verbose Print verbose debug statements
-l --list List currently attached DFU capable devices
-e --detach Detach currently attached DFU capable devices
-E --detach-delay seconds Time to wait before reopening a device after detach
-d --device <vendor>:<product>[,<vendor_dfu>:<product_dfu>] Specify Vendor/Product ID(s) of DFU device
-p --path <bus-port. ... .port> Specify path to DFU device
-c --cfg <config_nr> Specify the Configuration of DFU device
-i --intf <intf_nr> Specify the DFU Interface number
-S --serial <serial_string>[,<serial_string_dfu>] Specify Serial String of DFU device
-a --alt <alt> Specify the Altsetting of the DFU Interface
by name or by number
-t --transfer-size <size> Specify the number of bytes per USB Transfer
-U --upload <file> Read firmware from device into <file>
-Z --upload-size <bytes> Specify the expected upload size in bytes
-D --download <file> Write firmware from <file> into device
-R --reset Issue USB Reset signalling once we're finished
-s --dfuse-address <address> ST DfuSe mode, specify target address for
raw file download or upload. Not applicable for
DfuSe file (.dfu) downloads


MakcYan
Sun Nov 26, 2017 5:14 pm
zmemw16
Windows 7
stm32f103c8t6
Blue Pill
Core Stm32duino Arduino IDE 1.8.5.

I made a device to a person, and the device needs to be updated.
I’m interested in the program in which you need to specify the * .bin file and click the flash button

Dfu-util is not suitable. A man does not understand.


Rick Kimball
Sun Nov 26, 2017 5:42 pm
Seems like you should just get the device back from him and update it yourself.

MakcYan
Sun Nov 26, 2017 6:09 pm
Found a way that a person does not go into the details of the firmware.
Arduino_STM32\tools\win
In this folder I put a file “*.bin”, create a “*.bat” a file with contents:
"maple_upload.bat" COM13 2 1EAF:0003 "*.bin"

zmemw16
Mon Nov 27, 2017 12:21 am
does windows do expansion ? so, so long ago :D
ok missed bit about being just one in a directory :(
“*.bin” to me expands to all files with a bin extension.
srp

MakcYan
Mon Nov 27, 2017 5:35 am
* .bin.
In this context, instead of “*”, specify the file name :)

arpruss
Wed Nov 29, 2017 7:23 pm
Can the STM Flash Loader Demonstrator load an arbitrary bin file, or just a bootloader?

zoomx
Thu Nov 30, 2017 1:03 pm
Yes, it can! It is used to load any bin file.

Leave a Reply

Your email address will not be published. Required fields are marked *