Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Mmiscool
#26428 Hello.

I have been using the arduino esp staging version and have found that i need to create bin files for different memory sizes with the same sketch.

Is there a way I can easly automate the process and dump bin files for each flash size automaticaly with out having to manualy compile and hunt down the bin file from the temp folder?

I would really apreciate any help on this as it would save me tremendouse amounts of time .
User avatar
By RogerClark
#26430 This is probably not the idea method

But if you turn on verbose in the pref's you can see what the IDE does.

You could cut and paste the commands i.e which files are being compiled and then put the commands into a bat or script file.

Or take a look at http://playground.arduino.cc/Learning/CommandLine
User avatar
By igrr
#26443 Try something like
Code: Select allarduino --verify --board esp8266:esp8266:generic:FlashSize=512K,FlashMode=qio,CpuFrequency=80 --verbose --preserve-temp-files --pref build.path=/path/to/your/build/folder/512k /path/to/your/Sketch/Sketch.ino

For flash size option names, see boards.txt file.

On Mac OS X, running arduino like this requires a symlink or an alias
Code: Select allalias arduino=/path/to/your/Arduino.app/Contents/MacOS/Arduino

On Windows, you have to run arduino_debug.exe instead of arduino.exe.

Note that if you are building IDE from git, rather than using a boards manager package, the package name should be esp8266com:esp8266.
User avatar
By Mmiscool
#26525 Thank you iggr.
This was a life saver. Saves me so much time.

Just put each version in to a bat file and run. Best thing since sliced bread.