Zigduino compatible libraries with ZigBee Pro and Arduino IDE

789 views
Skip to first unread message

Sérgio Lopes Jr.

unread,
Jan 6, 2012, 11:05:36 AM1/6/12
to Zigduino Discuss, ser...@cnpaf.embrapa.br
Good morning all,

We are working on an automation project where we chose to use a
ZigBee network as a solution for communication between modules of the
project. We are currently testing different types of RF modules in
order to find the module that best meets the standards of the project,
taking into consideration the cost and performance of same.

Currently, we are testing three modules of different companies:

• The ETRX2 and ETRX3 modules manufactured by Telegesis;
• The XBee Series 2 module from Digi manufacturer, and;
• The ZigDuino card manufactured by the Logos Electromechanical
LLC that uses ATMEGA128RFA1 microcontroller from ATMEL.

We were successful in building the network using ZigBee modules from
Telegesis. These modules have the firmware in version R3.05 (the
latest version at the moment – 05/01/2012), where we are using it as a
coordinator and the ETRX2 and ETRX3 modules are using as routers.

Also have succeeded in establishing networks using ZigBee modules
provided by Digi. The networks were formed with the XBee Series 2
modules working in transparent, AP = 1 and AP = 2 modes.

Now we are studying the Zigduino soluction, but we are having
trouble to find a zigbee library compatible with the ZigBee Pro
standard used by Digi and Telegesis modules, and also compatible with
the Arduino IDE (version 0.22 - alpha). We follow the recommendations
of the Zigduino manual downloaded at found at the Logos
Electromechanical LLC, located ZMAC libraries, IEEE 802.15.4 MAC and
BitCloud. Unfortunately the library ZMAC developed by ManiacBug, is
outdated, not working with the current version of IEEE 802.15.4 MAC,
while the library BitCloud apparently does not work in the Arduino
IDE.

Thus, we have several questions:

• What is the correct zigbee library to be used, which is
compatible with standard ZigBee Pro (Telegesis and Digi) and the
Arduino IDE?
• What should be done for the Mac v2.7.1 (latest version) to
work correctly in the Arduino IDE?
• Using the library BitCloud, we can establish communication
with the modules and ETRX2 ETRX3 (Telegesis) and XBee Series 2 (Digi)?
• Is there a way to make the BitCloud library work in arduino?

Regards,
Sergio Lopes Jr.

Ron K. Jeffries

unread,
Jan 6, 2012, 11:12:38 AM1/6/12
to Sérgio Lopes Jr., Zigduino Discuss, ser...@cnpaf.embrapa.br
Do you really want to use ZigBee, or... 802.15.4, plus a more open protocol such as 6LoWpan?
Me? I want 6LoWpan. Available with Contiki as I understand it.

Zigduino looks really good to me (from a distance).
---
Ron K. Jeffries
@ronkjeffries
ronkjeffries on G+







2012/1/6 Sérgio Lopes Jr. <slju...@gmail.com>

Pierce Nichols

unread,
Jan 6, 2012, 12:31:54 PM1/6/12
to Sérgio Lopes Jr., Zigduino Discuss, ser...@cnpaf.embrapa.br
Sergio,

It sounds like you need the BitCloud library, provided by Atmel
(http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4495). It is
a fully certified ZigBee Pro platform, and therefore should
interoperate with any other ZigBee Pro device on 2.4 GHz. We provide a
board configuration file to support this
(http://www.logos-electro.com/libraries/zigduino/board_Zigduino.xml).

BitCloud is not compatible with the current versions of the Arduino
IDE, because it is closed source. The current Arduino IDE's build
process cannot use pre-compiled libraries. This is in large part due
to philosophical objections. However, it is likely to change soon
because the build process needs to be made more configurable &
flexible in order to accommodate ARM and other platforms. There's no
official schedule for this right now -- the mechanics are being hashed
out on the Arduino developer list. BitCloud is unlikely to be open
source or even source available anytime soon due to the ZigBee
licensing restrictions.

You can use BitCloud and the Arduino libraries together with any other
IDE that supports AVR chips... for example, with Eclipse
(http://arduino.cc/playground/Code/Eclipse).

I hope that helps, and I hope you choose the Zigduino for your project.

-p

2012/1/6 Sérgio Lopes Jr. <slju...@gmail.com>:

--
Pierce Nichols
Principal Engineer
Logos Electromechanical, LLC

Sérgio Lopes Jr.

unread,
Jan 11, 2012, 8:13:53 AM1/11/12
to Zigduino Discuss
Dear Pierce,

I installed arduino version 0022 with zigduino changes and the
arduino plugin for Eclipse (version 1.1.6) available at
http://www.baeyens.it/eclipse/update.

I created a new sketch called "Teste_Zigduino_Blink" with the
example "Blink." I compiled and uploaded, all apparently normal. But
there was no effect on the zigduino.

Remaking this procedure using the Arduino IDE with modifications to
the zigduino, the example worked.

I repeated this procedure using the example "Fade" and the result
was the same: it did not work in eclipse and it worked on the Arduino
IDE.

I used the eclipse with Arduino 0022 without modifications to
zigduino and a Arduino board and the same procedure functioned
normally.

Any idea what might be happening?

Sincerely,
Sergio.


---------------------------- Teste_Ziguino_Blink.cpp
-------------------------------------
// Do not remove the include below
#include "Teste_Zigduino_Blink.h"


void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}

void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}


-------------------------------------- Compilation
----------------------------------------

**** Build of configuration Release for project Teste_Zigduino_Blink
****

make all
Building target: Teste_Zigduino_Blink.elf
Invoking: AVR C++ Linker
avr-gcc -Os -Wl,--gc-sections -L"E:\Desenvolvimento\Zigduino/Release"
-mmcu=atmega128rfa1 -o"Teste_Zigduino_Blink.elf" ./
Teste_Zigduino_Blink.o -l"Zigduino" -lm
Finished building target: Teste_Zigduino_Blink.elf

Invoking: AVR Create Extended Listing
avr-objdump -h -S Teste_Zigduino_Blink.elf
>"Teste_Zigduino_Blink.lss"
Finished building: Teste_Zigduino_Blink.lss

Create Flash image (ihex format)
avr-objcopy -R .eeprom -O ihex Teste_Zigduino_Blink.elf
"Teste_Zigduino_Blink.hex"
Finished building: Teste_Zigduino_Blink.hex

Create eeprom image (ihex format)
avr-objcopy -j .eeprom --no-change-warnings --change-section-
lma .eeprom=0 -O ihex Teste_Zigduino_Blink.elf
"Teste_Zigduino_Blink.eep"
Finished building: Teste_Zigduino_Blink.eep

Invoking: Print Size
avr-size --format=avr --mcu=atmega128rfa1 Teste_Zigduino_Blink.elf
AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 1418 bytes (1.1% Full)
(.text + .data + .bootloader)

Data: 9 bytes (0.1% Full)
(.data + .bss + .noinit)


Finished building: sizedummy


**** Build Finished ****


----------------------------------------- Upload
-----------------------------------------

Launching C:\Program Files\arduino-0022_zigduino\hardware\tools\avr\bin
\avrdude -patmega128rfa1 -carduino "-P\\.\COM4" -b57600 -
Uflash:w:Teste_Zigduino_Blink.hex:a "-CC:\Program Files
\arduino-0022_zigduino\hardware\tools\avr\etc\avrdude.conf"
Output:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100%
0.02s

avrdude: Device signature = 0x1ea701
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be
performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "Teste_Zigduino_Blink.hex"
avrdude: input file Teste_Zigduino_Blink.hex auto detected as Intel
Hex
avrdude: writing flash (1418 bytes):

Writing | ################################################## | 100%
0.46s

avrdude: 1418 bytes of flash written
avrdude: verifying flash memory against Teste_Zigduino_Blink.hex:
avrdude: load data flash data from input file
Teste_Zigduino_Blink.hex:
avrdude: input file Teste_Zigduino_Blink.hex auto detected as Intel
Hex
avrdude: input file Teste_Zigduino_Blink.hex contains 1418 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100%
0.43s

avrdude: verifying ...
avrdude: 1418 bytes of flash verified

avrdude done. Thank you.

avrdude finished

----------------------------------------------------------------------------------------------

Pierce Nichols

unread,
Jan 13, 2012, 5:28:34 PM1/13/12
to Sérgio Lopes Jr., Zigduino Discuss
Sergio,

I apologize for my slow response. I have not used Eclipse, so I'm not
entirely sure what is going on. Are the hex files about the same size?
Are you sure Eclipse is picking up the Zigduino core files rather than
the originals? Can you tell if a different pin is being strobed
instead?

-p

2012/1/11 Sérgio Lopes Jr. <slju...@gmail.com>:

--

Eric Fowler

unread,
Jan 13, 2012, 5:35:10 PM1/13/12
to Sérgio Lopes Jr., Zigduino Discuss
Check board configurations in eclipse carefully, it has a way with fiddling with them. You may be building your binaries for another board (although they look fine). 



2012/1/11 Sérgio Lopes Jr. <slju...@gmail.com>
Dear Pierce,

Eric Fowler

unread,
Jan 13, 2012, 5:36:40 PM1/13/12
to Pierce Nichols, Sérgio Lopes Jr., Zigduino Discuss
Also be sure you are throwing compiler and linker flags properly, see the arduino / eclipse blog page for this, if you don't know where it is ask me, I will send a link. 

Eric

2012/1/13 Pierce Nichols <pie...@logos-electro.com>

Pierce Nichols

unread,
Jan 13, 2012, 5:38:56 PM1/13/12
to Eric Fowler, Sérgio Lopes Jr., Zigduino Discuss
Thanks Eric. :)

2012/1/13 Eric Fowler <eric....@gmail.com>:

--

Eric Fowler

unread,
Jan 13, 2012, 5:41:43 PM1/13/12
to Pierce Nichols, Sérgio Lopes Jr., Zigduino Discuss
Been through the pain with eclipse myself. Worth it though. 

Eric

2012/1/13 Pierce Nichols <pie...@logos-electro.com>
Thanks Eric. :)

Guilherme

unread,
Jan 23, 2012, 1:04:06 PM1/23/12
to Zigduino Discuss
Good morning all,

We were successful in the configuration of the Eclipse to upload
sketches to ZigDuino. Projects using the serial interface and the pins
of the module worked correctly.
To make the Eclipse upload sketches to ZigDuino:
* follow the instructions in the Logos Electromechanical LLC package
(https://github.com/logos-electromechanical/Zigduino/blob/master/
INSTALL) to make your Arduino IDE support the ZigDuino board;
* rename the directory "arduino-version\hardware\arduino\cores
\zigduino" of your Arduino IDE to "arduino-version\hardware\arduino
\cores\arduino";
* follow the instructions on "http://www.baeyens.it/eclipse/" to
install and configure the plugin in your Eclipse.

The problem we are facing is to use the BitCloud library in Eclipse.
Following the tutorial "Atmel BitCloud Quick Start Guide" we build the
example application WSNDemo on Eclipse, but we are having problems in
the library includes (error: Unresolved inclusion).

How configure the BitCloud to work with the Arduino plugin on Eclipse?

On 13 jan, 20:41, Eric Fowler <eric.fow...@gmail.com> wrote:
> Been through the pain with eclipse myself. Worth it though.
>
> Eric
>
> 2012/1/13 Pierce Nichols <pie...@logos-electro.com>
>
>
>
>
>
>
>
> > Thanks Eric. :)
>
> > 2012/1/13 Eric Fowler <eric.fow...@gmail.com>:
> > > Check board configurations in eclipse carefully, it has a way with
> > fiddling
> > > with them. You may be building your binaries for another board (although
> > > they look fine).
>
> > > 2012/1/11 Sérgio Lopes Jr. <sljun...@gmail.com>

Pierce Nichols

unread,
Jan 23, 2012, 1:15:26 PM1/23/12
to Guilherme, Zigduino Discuss
Guilherme:

Any chance you can post the output from the compiler here? It would
help to be able to see exactly what messages, warnings, and errors it
printed in order to figure out what the underlying issue is.

-p

Guilherme

unread,
Jan 23, 2012, 1:46:42 PM1/23/12
to Zigduino Discuss
---------------------------------------------------------------------------------------------------
**** Build of configuration Default for project WSNDemo ****

make all
make -C makefiles/STK600 -f Makefile_All_Stk600_Atmega128rfa1_8Mhz_Gcc
all APP_NAME=WSNDemo
make[1]: Entering directory `D:/ZigBitEclipse/BitCloud_MEGARF_1_12_0/
BitCloud_MEGARF_1_12_0/Applications/WSNDemo/makefiles/STK600'
cp -f All_Stk600_Atmega128rfa1_8Mhz_Gcc/Exe/*.* ./../../

text data bss dec hex filename
91272 4220 5003 100495 1888f
All_Stk600_Atmega128rfa1_8Mhz_Gcc/Exe/WSNDemo.elf
91272 4220 5003 100495 1888f (TOTALS)
make[1]: Leaving directory `D:/ZigBitEclipse/BitCloud_MEGARF_1_12_0/
BitCloud_MEGARF_1_12_0/Applications/WSNDemo/makefiles/STK600'

**** Build Finished ****
----------------------------------------------------------------------------------------------------

Any error or warning appear on output from the copiler, but this
includes have a warning mensagem "Unresolved inclusion" on source
code:

#include <macAddr.h>
#include <appFramework.h>
#include <configServer.h>
#include <appTimer.h>
#include <aps.h>
#include <uid.h>
#include <appTimer.h>
#include <zdo.h>
#include <dbg.h>

I wanna know how configure the BitCloud library to work with the
Arduino plugin on Eclipse.
Thanks for help.

Pierce Nichols

unread,
Jan 23, 2012, 2:25:43 PM1/23/12
to Guilherme, Zigduino Discuss
It looks to me like you have the Eclipse build process set up in such
a way that it's not searching the right parts of the directory tree.
Does it compile correctly when you run the make file from the command
line?

-p

Guilherme

unread,
Jan 24, 2012, 6:48:22 AM1/24/12
to Zigduino Discuss
I created my Arduino sketch on Eclipse and it work properly with
ZigDuino board. I wanna use the BitCload library in my Arduino sketch.
How I can include BitCloud library on the Arduino project to use the
BitCloud library in my Arduino sketch?

Pierce Nichols

unread,
Jan 24, 2012, 12:06:28 PM1/24/12
to Guilherme, Zigduino Discuss
Guilherme,

I don't use Eclipse myself, so I'm somewhat limited in how much help I
can give you on this. This link
(http://help.eclipse.org/indigo/topic/org.eclipse.ptp.pldt.doc.user/html/includes.html)
appears to include directions on how to add directories to your
include path. I hope that helps.

-p

Marcelo Goncalves Narciso

unread,
Feb 1, 2012, 8:43:35 AM2/1/12
to sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com, pie...@logos-electro.com

 Good Morning all,


We are working on an automation project where we chose to use a ZigBee
network as a solution for communication between modules of the project.

We are testing many different types of RF modules in order to find the
module that best meets the standards of the project.
At moment, we are testing the Zigduino because it is an
Arduino-compatible and have a microcontroller that can be configured to
support a ZigBee protocol. But we are having problems to integrate the
Arduino IDE to work with the Atmel's libraries (we wanna work with
BitCloud - ZigBee PRO).
We wanna work with Zigduino, but we need a developer plataform for
Zigduino that support the Arduino bootloader and the Atmel's library.
We tried work with Eclipse to make the integration of Arduino IDE and
Atmel's library. We were successful in the configuration of the Eclipse
to upload Arduino sketches to Zigduino. The problem we are facing is to
include the BitCloud library in my Arduino sketch on Eclipse.
Any sugestion of how we can include BitCloud library on the Arduino
project to use the BitCloud library in my Arduino sketch on Eclipse? Or
any sugestion of another plataform that support the BitCLoud library and
can upload program to the Zigduino?

Pierce Nichols

unread,
Feb 1, 2012, 8:17:39 PM2/1/12
to Marcelo Goncalves Narciso, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
The Bitcloud library does not work with the Arduino IDE because the
library source is not available. You should be able to directly
include the BitCloud library as you would any other library, as long
as you make sure the directory for it is in your include path.

Can you tell me a little more about what problems you are having with
getting BitCloud to compile with Eclipse?

-p

PS -- you can force the Arduino IDE to print out the loading command
it sends to avrdude by either enabling verbose mode in the Preferences
dialog or by holding down the Shift key when you tell it to upload.
You can then copy and paste that as necessary.

--

Marcelo Goncalves Narciso

unread,
Feb 2, 2012, 6:44:31 AM2/2/12
to Pierce Nichols, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
Thank you Pierce.

I will make tests as your suggestion and later I will send
to you the results.

Best regards.

Marcelo

Elmar Trefz

unread,
Feb 2, 2012, 5:37:09 AM2/2/12
to Marcelo Goncalves Narciso, Pierce Nichols, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
I think this is something quite a few people would be interested in,

If there is a good best practice method i'd like to do a tutorial on
Bitcloud x Zigduino

C,
E

On 02.02.2012, at 11:30, Marcelo Goncalves Narciso

Pierce Nichols

unread,
Feb 2, 2012, 11:05:37 AM2/2/12
to Elmar Trefz, Marcelo Goncalves Narciso, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
That would be awesome. I'll give you (or anyone else who wants to
write this) write access to the wiki.

-p

Elmar Trefz

unread,
Feb 4, 2012, 1:12:14 PM2/4/12
to Pierce Nichols, Marcelo Goncalves Narciso, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
cool

Marcelo Goncalves Narciso

unread,
Feb 8, 2012, 9:37:48 AM2/8/12
to Pierce Nichols, Elmar Trefz, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
Good morning Pierce, Elmar.

Thank you for the answers about ZigDuino/BitCloud/Eclipse.
It was very nice.

We have some results that you can see and understand better our problem.

we are using Arduino IDE tools in Eclipse and we are using winAVR plugin
in Eclipse too. We wanna use the Arduino IDE and the BitCloud
library in Eclipse to make project to upload to our Zigduino board.
The Arduino IDE is working correctly, but we are having problems to load
the BitCloud library.

In this mail there is the code used by project and the log generated by
Eclipse.

I've tried to using programs .cpp that use SYS_RunTask() function and don't
use
SYS_RunTask().

When I try to use SYS_RunTask(), I have problem
(error message about this function).

The firsts two logs were generated on building my projects and the
last log (number 3) was generated when
I tryed to compile my code containing references to BitCloud library.
There I tryed use the method "SYS_RunTask()".
These logs are ahead in this mail.

The ZigBeeProject contains my Arduino sketch
(function setup() and loop() are implemented here).

I want to know what happens. Why I can�t load SYS_RunTask()?

Dou you have some examples of code for I use here?


**************************************
Here is the code (.ccp):

// Do not remove the include below

#include "ZigBeeProject.h"


//The setup function is called once at startup of the sketch
void setup()
{
// Add your initialization code here
}

// The loop function is called in an endless loop
void loop()
{
//Add your repeated code here
}

**************************************
The header file (.h) is:

// Only modify this file to include
// - function definitions (prototypes)
// - include files
// - extern variable definitions
// In the appropriate section

#ifndef ZigBeeProject_H_
#define ZigBeeProject_H_
#include "WProgram.h"
//add your includes for the project ZigBeeProject here

//end of add your includes here
#ifdef __cplusplus
extern "C" {
#endif
void loop();
void setup();
#ifdef __cplusplus
} // extern "C"
#endif

//add your function definitions for the project ZigBeeProject here

//Do not add code below this line
#endif /* ZigBeeProject_H_ */

************************First LOG **************************************
The log genereted be Eclypse when build the project ZigBeeProjec is

**** Build of configuration Release for project ZigBeeProject ****

make all
Building file: ../ZigBeeProject.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-I"D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\Zigduino" -I"D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\ZigBeeProject"
-I"D:\ZigBitEclipse\BitCloud\Components" -D__IN_ECLIPSE__=1 -DARDUINO=0022
-Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"ZigBeeProject.d" -MT"ZigBeeProject.d" -c -o
"ZigBeeProject.o" -x c++ "../ZigBeeProject.cpp"
Finished building: ../ZigBeeProject.cpp

Building target: ZigBeeProject.elf
Invoking: AVR C++ Linker
avr-gcc -Os -Wl,--gc-sections -L"D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\Zigduino/Release"
-L"D:\ZigBitEclipse\BitCloud\lib" -mmcu=atmega128rfa1 -o"ZigBeeProject.elf"
./ZigBeeProject.o
D:/ZigBitEclipse/BitCloud/lib/WdtInitatmega128rfa1_Gcc.o -l"Zigduino" -lBc_All_Atmega128rfa1_Atmega128rfa1_Gcc
-lHAL_AtmlStk600_Atmega128rfa1_8Mhz_Gcc -lm
Finished building target: ZigBeeProject.elf

Invoking: AVR Create Extended Listing

avr-objdump -h -S ZigBeeProject.elf >"ZigBeeProject.lss"
Finished building: ZigBeeProject.lss

Create Flash image (ihex format)

avr-objcopy -R .eeprom -O ihex ZigBeeProject.elf "ZigBeeProject.hex"
Finished building: ZigBeeProject.hex

Create eeprom image (ihex format)
avr-objcopy -j .eeprom --no-change-warnings --change-section-lma

.eeprom=0 -O ihex ZigBeeProject.elf "ZigBeeProject.eep"
Finished building: ZigBeeProject.eep

Invoking: Print Size
avr-size --format=avr --mcu=atmega128rfa1 ZigBeeProject.elf


AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 764 bytes (0.6% Full)


(.text + .data + .bootloader)

Data: 10 bytes (0.1% Full)


(.data + .bss + .noinit)


Finished building: sizedummy


**** Build Finished ****

************************Second LOG **************************************

The Zigduino project contains the Arduino librarys.
Here the log generated by Eclipse when build the Zigduino project:

**** Build of configuration Release for project Zigduino ****

make all
Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/HardwareSerial.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fno-exceptions -g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"arduino/HardwareSerial.d" -MT"arduino/HardwareSerial.d"
-c -o "arduino/HardwareSerial.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/HardwareSerial.cpp"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/HardwareSerial.cpp:28:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/HardwareSerial.cpp

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Print.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fno-exceptions -g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"arduino/Print.d" -MT"arduino/Print.d" -c -o
"arduino/Print.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Print.cpp"
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Print.cpp:
In member function 'void Print::print(const String&)':
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Print.cpp:48:
warning: comparison between signed and unsigned integer expressions
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Print.cpp

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Tone.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fno-exceptions -g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"arduino/Tone.d" -MT"arduino/Tone.d" -c -o
"arduino/Tone.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Tone.cpp"
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Tone.cpp:108:
warning: only initialized variables can be placed into program memory area
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/Tone.cpp

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WInterrupts.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/WInterrupts.d" -MT"arduino/WInterrupts.d" -c -o
"arduino/WInterrupts.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WInterrupts.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WInterrupts.c:34:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WInterrupts.c

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WMath.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fno-exceptions -g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"arduino/WMath.d" -MT"arduino/WMath.d" -c -o
"arduino/WMath.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WMath.cpp"
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WMath.cpp

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WString.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fno-exceptions -g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"arduino/WString.d" -MT"arduino/WString.d" -c
-o "arduino/WString.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WString.cpp"
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/WString.cpp

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/main.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fno-exceptions -g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"arduino/main.d" -MT"arduino/main.d" -c -o
"arduino/main.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/main.cpp"
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/main.cpp

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/pins_arduino.d" -MT"arduino/pins_arduino.d" -c -o
"arduino/pins_arduino.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:26:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:361:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:362:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:363:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:369:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:370:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:371:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:377:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:378:
warning: initialization makes integer from pointer without a cast
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c:379:
warning: initialization makes integer from pointer without a cast
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/wiring.d" -MT"arduino/wiring.d" -c -o
"arduino/wiring.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring.c:25:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring.c

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_analog.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/wiring_analog.d" -MT"arduino/wiring_analog.d" -c -o
"arduino/wiring_analog.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_analog.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_analog.c:27:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_analog.c

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_digital.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/wiring_digital.d" -MT"arduino/wiring_digital.d" -c -o
"arduino/wiring_digital.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_digital.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_digital.c:27:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_digital.c

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_pulse.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/wiring_pulse.d" -MT"arduino/wiring_pulse.d" -c -o
"arduino/wiring_pulse.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_pulse.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_pulse.c:25:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_pulse.c

Building file:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_shift.c
Invoking: AVR Compiler
avr-gcc -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields
-g -ffunction-sections -fdata-sections -mmcu=atmega128rfa1 -DF_CPU=16000000UL
-MMD -MP -MF"arduino/wiring_shift.d" -MT"arduino/wiring_shift.d" -c -o
"arduino/wiring_shift.o"
"D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_shift.c"
In file included from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_private.h:30,
from
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_shift.c:25:
d:/zigbiteclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/delay.h:36:2:
warning: #warning "This file has been moved to <util/delay.h>."
Finished building:
D:/ZigBitEclipse/zigduino-0022/zigduino-0022/arduino-0022/hardware/arduino/cores/arduino/wiring_shift.c

Building target: libZigduino.a
Invoking: AVR Archiver
avr-ar -r "libZigduino.a" ./arduino/HardwareSerial.o ./arduino/Print.o
./arduino/Tone.o ./arduino/WInterrupts.o ./arduino/WMath.o
./arduino/WString.o ./arduino/main.o ./arduino/pins_arduino.o
./arduino/wiring.o ./arduino/wiring_analog.o ./arduino/wiring_digital.o
./arduino/wiring_pulse.o ./arduino/wiring_shift.o
d:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\tools\avr\bin\avr-ar.exe:
creating libZigduino.a
Finished building target: libZigduino.a

Invoking: AVR Create Extended Listing

avr-objdump -h -S libZigduino.a >"libZigduino.lss"
Finished building: libZigduino.lss

Invoking: Print Size
avr-size --format=avr --mcu=atmega128rfa1 libZigduino.a


AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 2 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 2 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 1 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 1 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)

AVR Memory Usage
----------------
Device: atmega128rfa1

Program: 0 bytes (0.0% Full)


(.text + .data + .bootloader)

Data: 0 bytes (0.0% Full)


(.data + .bss + .noinit)


Finished building: sizedummy


**** Build Finished ****


************************ LOG number 3
**************************************

And now the error log genereted be Eclipse when copiling my ZigBeeProject
with references
to BitCloud library (here I'm using the method method "SYS_RunTask()"):
Here the code (.ccp):

// Do not remove the include below

#include "ZigBeeProject.h"

//The setup function is called once at startup of the sketch
void setup()
{
// Add your initialization code here
}

// The loop function is called in an endless loop
void loop()
{
//Add your repeated code here
SYS_RunTask();
}


And here header file (.h):

// Only modify this file to include
// - function definitions (prototypes)
// - include files
// - extern variable definitions
// In the appropriate section

#ifndef ZigBeeProject_H_
#define ZigBeeProject_H_
#include "WProgram.h"
//add your includes for the project ZigBeeProject here
#ifndef ATMEGA128RFA1
#define ATMEGA128RFA1
#endif

#include <taskManager.h>

//end of add your includes here
#ifdef __cplusplus
extern "C" {
#endif
void loop();
void setup();
#ifdef __cplusplus
} // extern "C"
#endif

//add your function definitions for the project ZigBeeProject here

//Do not add code below this line
#endif /* ZigBeeProject_H_ */


The log is

**** Build of configuration Release for project ZigBeeProject ****

make all
Building file: ../ZigBeeProject.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"D:\ZigBitEclipse\zigduino-0022\zigduino-0022\arduino-0022\hardware\arduino\cores\arduino"
-I"D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\Zigduino" -I"D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\ZigBeeProject"
-I"D:\ZigBitEclipse\BitCloud\Components" -D__IN_ECLIPSE__=1 -DARDUINO=0022
-Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega128rfa1
-DF_CPU=16000000UL -MMD -MP -MF"ZigBeeProject.d" -MT"ZigBeeProject.d" -c -o
"ZigBeeProject.o" -x c++ "../ZigBeeProject.cpp"
Finished building: ../ZigBeeProject.cpp

Building target: ZigBeeProject.elf
Invoking: AVR C++ Linker
avr-gcc -Os -Wl,--gc-sections -L"D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\Zigduino/Release"
-L"D:\ZigBitEclipse\BitCloud\lib" -mmcu=atmega128rfa1 -o"ZigBeeProject.elf"
./ZigBeeProject.o
D:/ZigBitEclipse/BitCloud/lib/WdtInitatmega128rfa1_Gcc.o -l"Zigduino" -lBc_All_Atmega128rfa1_Atmega128rfa1_Gcc
-lHAL_AtmlStk600_Atmega128rfa1_8Mhz_Gcc -lm
./ZigBeeProject.o: In function `loop':
D:\ZigBitEclipse\eclipse-SDK-3.7.1-win32\eclipse\workspace\ZigBeeProject\Release/../ZigBeeProject.cpp:15:
undefined reference to `SYS_RunTask()'
make: *** [ZigBeeProject.elf] Error 1

**** Build Finished ****


Do you know what happens?

Thank you very much.

Marcelo

----- Original Message -----
From: "Pierce Nichols" <pie...@logos-electro.com>
To: "Marcelo Goncalves Narciso" <nar...@cnpaf.embrapa.br>
Cc: <sup...@logos-electro.com>; <con...@logos-electro.com>;
<zigduino...@logos-electro.com>
Sent: Wednesday, February 01, 2012 10:17 PM
Subject: Re: Zigduino compatible libraries with ZigBee Pro and Arduino IDE

Pierce Nichols

unread,
Feb 8, 2012, 3:37:01 PM2/8/12
to Marcelo Goncalves Narciso, Elmar Trefz, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
It looks like it's blowing up at the link step. From the error, I
would guess that it's not finding the compiled BitCloud library when
it goes to link to it. The BitCloud library comes pre-compiled, so you
have to make sure you're getting the appropriate .a file. You should
be able to figure out what directory you need to include to get it by
examining the linker commands in the makefile of the sample
application. Unfortunately, I am not sitting at a computer with
BitCloud right now; otherwise, I would be able to give you a more
specific pointer.

-p

On Wed, Feb 8, 2012 at 6:37 AM, Marcelo Goncalves Narciso

Marcelo Goncalves Narciso

unread,
Feb 10, 2012, 6:46:20 AM2/10/12
to Pierce Nichols, Elmar Trefz, sup...@logos-electro.com, con...@logos-electro.com, zigduino...@logos-electro.com
Hi Pierce.

I need your help about SYS_Sysinit().

I have seen that this function can be defined as
below

void SYS_SysInit(void)
{
HAL_Init();
SYS_InitLog();
RF_Init();
}

I want to have some examples of SYS_Sysinit()
definition and where are the libraries (.a) that has
HAL_Init.o, SYS_InitLog.o, and so on.

I believe that I can solve my problem using these
approach.

Thank you so much.

maniacbug

unread,
Feb 14, 2012, 12:59:33 AM2/14/12
to zigduino...@logos-electro.com
Hey, Pierce.  Has anyone gotten BitCloud running on Zigduino using any build mechanism at all, including the makefiles out of the box?  If so, is there a write-up anywhere?  On the Zigduino wiki, I see a link to http://wiki.logos-electro.com/local--files/zigduino-manual/board_Zigduino.xml but that seems to 404 when I follow it.


From: Marcelo Goncalves Narciso <nar...@cnpaf.embrapa.br>
To: Pierce Nichols <pie...@logos-electro.com>
Sent: Friday, February 10, 2012 3:46 AM

Pierce Nichols

unread,
Feb 14, 2012, 1:03:56 AM2/14/12
to maniacbug, zigduino...@logos-electro.com
I've built it successfully with WinAVR. Here's a working link to the
board file: http://www.logos-electro.com/libraries/zigduino/board_Zigduino.xml

-p

maniacbug

unread,
Feb 14, 2012, 10:56:41 AM2/14/12
to Pierce Nichols, zigduino...@logos-electro.com
Thanks OK, that link works.  Now, what to do with that XML?  BitCloud_MEGARF_1_13_0 has no XML files anywhere in it, not any evidence I could find of XML processing.

There is a BoardConfig file in BitCloud/Components/BSP, with entries like this:

ifeq ($(BOARD), BOARD_STK600)
  BSP_LIB = BSPStk600
  BOARDCFLAGS  = -D_BUTTONS_
  BOARDCFLAGS += -D_LEDS_
endif



From: Pierce Nichols <pie...@logos-electro.com>
To: maniacbug <mani...@ymail.com>
Cc: "zigduino...@logos-electro.com" <zigduino...@logos-electro.com>
Sent: Monday, February 13, 2012 10:03 PM

Pierce Nichols

unread,
Feb 14, 2012, 7:52:32 PM2/14/12
to maniacbug, zigduino...@logos-electro.com
I haven't been paying a lot of attention to BitCloud, since it can't
be made to play nice with the default Arduino environment. It looks
like Atmel changed the way board support works somewhere along the
way. Awesome.

Unfortunately, it's going to be a few weeks before I have time to dig
into it to figure out what I need to do in order to restore support.
Thank you for bringing it up so I can go have a look at it.

-p

Reply all
Reply to author
Forward
0 new messages