Arduino_STM32 icon indicating copy to clipboard operation
Arduino_STM32 copied to clipboard

32-bit linux dfu-util fails because it is 64-bit

Open manitou48 opened this issue 6 years ago • 5 comments

zip file containing the STM32 files has a 64-bit executable in linux/dfu-util/dfu-util so dfu-util fails on a 32-bit linux system

sketchbook/hardware/Arduino_STM32-master/tools/linux/dfu-util/dfu-util: cannot execute binary file: Exec format error

manitou48 avatar May 25 '19 17:05 manitou48

i'd like to suggest you could build this from source http://dfu-util.sourceforge.net/ i've been thinking about committing a PR for this but i found that it has quite a few shared library dependencies. if i built from a 64 bit environment with 32 bits libs, and my libs may be different from that used on an actual 32 bits distribution and it may not be compatible with that kernel.

building from source would also ensure that you have a latest version which support's for instance ST's DFUse

ag88 avatar Jun 19 '19 06:06 ag88

I have never worked with Linux. Who can help here?

stevstrong avatar Sep 15 '19 08:09 stevstrong

hi steve, my opinion is that it would be better for the users of 32 bit linux to built the dfu-util binary themselves.

nevertheless i've built a 32bit version and attached here. dfu-util.zip

there is a 00readme.txt file in there place it in the same folder with linux's 32 bit dfu-util.

ag-123 avatar Sep 16 '19 04:09 ag-123

hi, I want to ask you for any info about linux 64bit, arduino ide and maple mini uploading sketch direct through USB. In win10 it works perfect. Any sugestion ? Thank you

mrstanlez avatar Apr 20 '20 12:04 mrstanlez

it should work in linux, the binary that is shipped in the core is 64bit. 32 bits are less common these days but would apply only if you run an os that boot in 32 bit mode.

ag88 avatar Apr 21 '20 17:04 ag88