Create .bin file using Sloeber

How do I create a .bin file from a sketch? Or, if it is being built, where is it?

I want to use a WiFi enabled arduino board and the instructions to remotely update the arduino specify uploading a .bin file (via the upload web page).

I cannot find anywhere in the Sloeber 4.4 settings on how to create this file.

I have tried adding the command ${a.recipe.objcopy.bin.pattern} to the Build/ Post Build steps settings, but no joy

Hello

I'm sorry I don't know Sloeber, what is it for?
If you just want to generate the binary file of your sketch for an arduino (or another board supported by the IDE) you can do it there, no need to use an external software

Otherwise, explain more about what you want pls

Sloeber is an Eclipse plugin. It uses the stock Eclipse IDE, but adds arduino specific features.

I am using Win7, so the Arduino IDE is no longer for me :frowning:

I am on this forum because the Sloeber "forums" link brought me here...

What are you wanting, a .bin file is just raw data of ones and zeros. It could be the code for a processor, an image, etc. Many files used in the computer world are just that. Many also have some format for them such as a checksum, load address etc. For example: A -DOS.com file is the executable code which was designed to load at location 0x100 and when loaded a jump is made to 0x100. I believe the .EXE is a relocatable file with additional information etc needed to load and run it. There are a lot of variations and what it is being used for is important. Generally a .bin file is an image file of what is contained in memory. Google tells us: bin file extension is used at the end of a file name and denotes that the content of the file is in binary format . This means that the information contained within the file is made up of bit patterns and contains little to no information in text format.

There is also the tool Arduino CLI
I didn't checked if it was compatible on Win 7 but I think it is!
On this website, you can make a search, there are talking about compiling a binary sketch :slightly_smiling_face:

But if you want, you still can use the Arduino IDE on windows 7!
Just not the last version in 2.x (which is 2.0.1)
But you can use the last one of the old version : 1.8.19
Here is the link (from the official page) :
Arduino 1.8.19 for Win7 or newer

in the Release folder of the project. after successful Verify.

for platforms with hex output you have to add to platform.sloeber.txt

## Create output (bin file)
recipe.objcopy.bin.pattern="${compiler.path}${compiler.elf2hex.cmd}" -O binary ${compiler.elf2hex.extra_flags} "${build.path}/${build.project_name}.elf" "${build.path}/${build.project_name}.bin"
1 Like

Yes I know. I have been programming for over 35 years. But thanks...

I don't have the file platform.sloeber.txt in the project Release folder. I tried adding it manually, but it was ignored.

But I did find it in the Sloeber install tree:
C:\Eclipse\arduino\Sloeber\arduinoPlugin\packages\arduino\hardware\avr\1.8.4\platform.sloeber.txt

I added your command to that file (after the .hex command), but still no .bin file.

But then I had the thought that maybe the platform.sloeber.txt file was only read at startup, so I restarted Sloeber, and there it was.

Thank you very much!

sorry. the bin file is in Release folder. most board platforms create a bin file. I thought you can't find it

my version of Sloeber usually loads the changes in platform files immediately. you have an older version?

I have Sloeber 4.4.1.202209072349 from
http://eclipse.baeyens.it/update/V4/nightly
in Eclipse 2022-12

I'm using 4.4.0

Yes, the bin file was in the release folder. It was generated AFTER I edited the platform.sloeber.txt file.

Thanks again

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.