Hi Uday,
The Arduino hex file that you download to the Arduino should be:

<iotivity base 
dir>/out/arduino/avr/release/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SimpleClientServer.hex

Hope this helps!

Doug Hudson
Intel Corporation
Platform Engineering Group (PEG) / Intel Communications and Devices Group 
(iCDG) / Louisville



From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of VanCutsem, 
Geoffroy
Sent: Friday, March 13, 2015 6:37 AM
To: Pulleti, Uday Kiran; Agrawal, Sachin; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Compiling for Arduino Mega 2560 and Due

If I remember correctly, there are instructions printed out at the end of the 
build process. It involves using ?avrdude? (for the Mega2560 board) and the 
command-line is something like:  $sudo 
/path/to/arduino-1.0.6/hardware/tools/avrdude 
-C/path/to/arduino-1.0.6/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 
-cwiring -P/dev/ttyACM0 -b115200 -D -Uflash:w:yourbinary.hex:i
You?ll have to make sure to use parameters that match your system config.

Geoffroy

-----------------------------------------------
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:[email protected]] On Behalf 
Of Pulleti, Uday Kiran
Sent: Friday, March 13, 2015 10:39 AM
To: Agrawal, Sachin; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: Re: [dev] Compiling for Arduino Mega 2560 and Due

Thanks for the info Sachin.

I?m able to compile the code. Can you let me know where I can find 
documentation for flashing the Arduino board and testing it.
Also from the compiled code,  libcoap.a is 300KB, liboctbstack.a is 600KB and 
SimpleClientServer is 500KB. The total flash memory size of Arduino mega 2560 
is 256KB. What are the binaries that will be flashed on the board. It will be 
of great help if you can point me some detailed documentation. And I appreciate 
your patience as I?m working on Arduino for the first time.

Thanks
Uday

From: Agrawal, Sachin [mailto:[email protected]]
Sent: Friday, March 13, 2015 11:22 AM
To: Pulleti, Uday Kiran; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev 
at lists.iotivity.org>
Subject: RE: Compiling for Arduino Mega 2560 and Due

Hi Uday,

I assume you are trying to build Iotivity stack from master branch.
Download arduino-1.5.7.
Download Time library from here (http://www.pjrc.com/teensy/td_libs_Time.html) 
and unzip in <Arduino-1.5.7>/libraries folder.

For Arduino Mega2560 with ArduinoEthernet Shield:
scons ARDUINO_HOME=<arduino-1.5.7 directory path> TARGET_OS=arduino BOARD=mega 
NET=Ethernet

Thanks
Sachin

From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:[email protected]] On Behalf 
Of Pulleti, Uday Kiran
Sent: Thursday, March 12, 2015 8:32 AM
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: [dev] Compiling for Arduino Mega 2560 and Due

Hi,

I want to compile the Arduino samples for Mega 2560 and Due. As mentioned in 
the previous email at 
http://lists.iotivity.org/pipermail/iotivity-dev/2015-March/000451.html, the 
getting started page is not up to date. But even the command is not working $ 
scons TARGET_OS=arduino TARGET_ARCH=avr BOARD=mega2560. Can you point me to the 
steps to compile for Mega 2560 and Due. Does these two statements in the 
getting started page still hold good

?For Arduino ATMega 2560, Arduino version 
1.0.5<http://arduino.cc/en/Main/OldSoftwareReleases> and AVR-GCC version 4.5.3 
is needed.

For Arduino Due: Arduino Version 
1.5.7<http://arduino.cc/en/Main/OldSoftwareReleases> and AVR-GCC version 4.8.3 
is needed?



or do we need any other specific version of AVR-GCC. Appreciate if you can let 
me know if there is any change with Time library



Arduino Time Library

Download the Arduino Time Library and unzip it in the Arduino directory at 
<ARDUINO_DIR>/libraries/TIME.
For Arduino ATMega 2560, download the Time library from 
here<http://playground.arduino.cc/code/time>.
For Arduino Due, download the Time library from 
here<http://www.pjrc.com/teensy/td_libs_Time.html>.





Thanks

Uday

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150313/03286830/attachment.html>

Reply via email to