I would like to be able to give other people a binary of my program and have a batch file to program the device for them. I've captured the command line the IDE uses to program the device, but it doesn't work. Here's the line I'm using, edited from what the IDE uses only to point to a different location for the binary file. and to add quites around the executable path:
"C:\Program Files (x86)\Arduino 1.5.8\hardware\tools\bossac.exe" -i -d --port=COM5 -U false -e -w -v -b "C:\Temp\WebServerTest.bin" -R
When I run it as a batch file, I get this:
C:\Users\RayL\Documents\Arduino\libraries\WebServer\Test\WebServerTest>"C:\Program Files (x86)\Arduino 1.5.8\hardware\tools\bossac.exe" -i -d --port=COM5 -U fal se -e -w -v -b "C:\Temp\WebServerTest.bin" -R Send auto-baud Set binary mode No device found on COM5
The device IS on COM5, and I can connect to it using either the IDE or a terminal program. So there must be some setup that is required before running bossac that I am missing. Any one know what that might be?
Regards, Ray L.