system
February 23, 2014, 3:15pm
1
Hi,
I have some hardware component that I flash using the Arduino IDE.
The steps consist of:
Modify some configuration in the code.
Verify the code.
Upload the code.
I would like to automate these tasks using a shell script that would receive the configuration as argument.
Is it possible?
Thanks,
Mickael
system
February 23, 2014, 3:18pm
2
Is it possible?
How will this batch process edit the code? The rest is easy.
system
February 23, 2014, 5:07pm
3
I thought about using M4. It should be enough.
How the rest can be done?
Thanks, Mickael
system
February 23, 2014, 5:11pm
4
I thought about using M4.
The M4 carbine (officially Carbine, Caliber 5.56 mm, M4) is a 5.56×45mm NATO, gas-operated,[b] magazine-fed carbine developed in the United States during the 1980s. It is a shortened version of the M16A2 assault rifle.
The M4 is extensively used by the United States Armed Forces, with decisions to largely replace the M16 rifle in United States Army (starting 2010) and United States Marine Corps (USMC) (starting 2016) combat units as the primary infantry weapon and service rifle. The M4 has bee...
Makes sense to me. Scare the code into rewriting itself.
system
February 23, 2014, 5:24pm
5
Riva
February 23, 2014, 5:40pm
6
Could the configuration parameters take the form of an .h file stored in the same directory as your sketch so it gets combined with it when compiled?
If yes then turn on verbose output for compile and upload and capture the results to text files. This should give you an idea what happens to compile/upload your sketch.
Another option might be Arduino Builder that has both GUI and CLI versions.
system
February 23, 2014, 7:24pm
7
I don't really need help for the text replacement part.
I was mostly asking for the automatic compilation + upload.
Arduino Builder CLI sounds great, I will check.
Thank you