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
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>:
--
Dear Pierce,
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
-p
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
 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?
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.
--
I will make tests as your suggestion and later I will send
to you the results.
Best regards.
Marcelo
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
-p
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
-p
On Wed, Feb 8, 2012 at 6:37 AM, Marcelo Goncalves Narciso
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.
-p
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