Edited Arduino Makefiles and READMEs to describe how to ARDUINO_PORT.
authorJoseph Morrow <joseph.l.morrow@intel.com>
Thu, 16 Oct 2014 22:29:42 +0000 (18:29 -0400)
committerJoseph Morrow <joseph.l.morrow@intel.com>
Thu, 16 Oct 2014 22:29:42 +0000 (18:29 -0400)
This fixes an issue that was stopping folks from installing to an Arduino
Due, but not Arduino Mega.

Patch 2: Fix mistype. I wasn't using the ARDUINO_PORT variable.

Change-Id: I8249077378a47cdedc721c5f3e8867c13661a183

csdk/stack/samples/arduino/SimpleClientServer/README
csdk/stack/samples/arduino/SimpleClientServer/ocserver/README
csdk/stack/samples/arduino/SimpleClientServer/ocserver/makefile

index eaa43a9..87a02d4 100644 (file)
@@ -4,7 +4,7 @@
 When an Arduino SimpleClientServer application is running, it outputs logs to
 serial port. This requires the current user to be a part of the "dialout" user
 group permissions on Ubuntu. If your Arduino device is NOT installed at
-location "/dev/ttyACM0", you must define ARDUINO_PORT to the location it is
+location "ttyACM0", you must define ARDUINO_PORT to the location it is
 installed at. This location will be referred to as <DEV_PORT>.
 
 You can only install one application at a time. Your choices are "oclient" or
index 9a8f240..b1573b3 100644 (file)
@@ -4,7 +4,7 @@
 When an Arduino SimpleClientServer application is running, it outputs logs to
 serial port. This requires the current user to be a part of the "dialout" user
 group permissions on Ubuntu. If your Arduino device is NOT installed at
-location "/dev/ttyACM0", you must define ARDUINO_PORT to the location it is
+location "ttyACM0", you must define ARDUINO_PORT to the location it is
 installed at. This location will be referred to as <DEV_PORT>.
 
 This makefile relies on "local.properties" at the directory level of the
index 853c323..3b01109 100644 (file)
@@ -21,7 +21,7 @@
 
 BUILD := release
 PLATFORM := arduinomega
-ARDUINO_PORT := /dev/ttyACM0
+ARDUINO_PORT := ttyACM0
 
 # override with `make PLATFORM=arduinomega ARDUINOWIFI=1` to enable Arduino WiFi shield
 ARDUINOWIFI := 0
@@ -103,9 +103,9 @@ endif
 
 install: all
 ifeq ($(PLATFORM),arduinomega)
-       $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i
+       $(AVR_PROGRAMMER) -C$(ARDUINO_DIR)/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/$(ARDUINO_PORT) -b115200 -D -Uflash:w:$(OUT_DIR)/$(APP_NAME).hex:i
 else ifeq ($(PLATFORM),arduinodue)
-       stty -F $(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb
+       stty -F /dev/$(ARDUINO_PORT) speed 1200 cs8 -cstopb -parenb
        $(ARDUINO_DIR)/hardware/tools/bossac -i -d --port=$(ARDUINO_PORT) -U false -e -w -v -b $(OUT_DIR)/$(APP_NAME).hex -R
 else
        $(error Wrong value for PLATFORM !!)