On 03/19/2015 02:17 AM, Abhishek Sharma wrote: > Hi Jon > > Upload command is executed only once and that is after successful compilation > of CA. > > If you are referring to initial logs like: > > *Upload command*: sudo > /home/abhi/arduino-1.5.8//hardware/tools/avr/bin/avrdude > -C/home/abhi/arduino-1.5.8//hardware/tools/avr/etc/avrdude.conf -v -v -v -v > -patmega2560 -cwiring -P/dev/ttyACM0 -b115200 -D > -Uflash:w:/home/abhi/OIC/out/arduino/avr/debug//samples/arduino/CASample.hex:i > > These are just debug logs and printed to help developers verify if any issues > with the upload command. >
I understand about that log line going out. Unfortunately, the intent is not matching the actual behavior. When invoking a build without explicitly setting UPLOAD=false, it fails with an error with no files at all created under the arduino output directory. So it is failing. Here a sample of the output during failure: scons: done reading SConscript files. scons: Building targets ... /home/joncruz/devel/iotivity/extlibs/arduino/arduino-1.5.8/hardware/tools/avr/bin/avrdude -C/home/joncruz/devel/iotivity/extlibs/arduino/arduino-1.5.8/hardware/tools/avr/etc/avrdude.conf -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/home/joncruz/devel/iotivity/out/arduino/avr/release//resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SimpleClientServer.hex:i avrdude: ser_open(): can't open device "/dev/ttyACM0": No such file or directory Eavrdude: butterfly_recv(): programmer is not responding scons: *** [out/arduino/avr/release/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/install_cmd] Error 1 scons: building terminated because of errors. Compilation exited abnormally with code 2 at Thu Mar 19 06:05:57 -- Jon A. Cruz - Senior Open Source Developer Samsung Open Source Group jonc at osg.samsung.com
