Giter Club home page Giter Club logo

contiki-avr-zigduino's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

contiki-avr-zigduino's Issues

make: *** No rule to make target `ping-ipv6.avr-zigduino.u', needed by `upload'. Stop.

Hi there,

I have been trying to use contiki on zigduino, the helloworld example works fine, but when ever i try use this ping-ipv6 it gives an error
make: *** No rule to make target ping-ipv6.avr-zigduino.u', needed byupload'. Stop.
I wonder if its work fine for hello world it sud work here too..

the make file for both the applications are almost the same..

CONTIKI_PROJECT = ping-ipv6
all: $(CONTIKI_PROJECT)
CONTIKI_TARGET_SOURCEFILES += ping6.c
CFLAGS += -DNODE=$(NODE)
UIP_CONF_IPV6 = 1
TARGET = avr-zigduino
CONTIKI = ../../../..
include $(CONTIKI)/Makefile.include

I am not getting what exactly is missing..kindly help me on this.

Regards
Anurag

Documentation

Just thought I would mention:

I like your project and the intention of making contiki more useable on current hardware. I am battling to figure out which bits are supposed to work and documentation is very limited. Unfortunately, the documentation listed for the Zigduino here on Github under Wiki-Installing and Setup (possibly more... I gave up) is also inaccurate. For example:

  1. 'sudo aptitude update' does not work.
  2. cd contiki/platform/avr-zigduino does not exist. Path is actually contiki-avr-zigduino
  3. cd tools/set-eeprom does not exist.

It might also be useful to tell a newbie, like me, how to figure out which port my avr-dragon is connected to. I have tried many a Google search but, to no evail. lsusb does not list the devtty port...

Regards,
Anton

avrdude: stk500_recv(): programmer is not responding

I installed contiki with git and edited Makefile.avr-zigduino as it says here: https://github.com/maniacbug/contiki-avr-zigduino/wiki/Using%3ASetup

But when I try to program the MAC address, it fails:

edmont@eduardo:~/hardware/zigduino/contiki-avr-zigduino/platform/avr-zigduino/tools/set-eeprom$ make NODE=3 AVRUDE_PORT=/dev/ttyUSB0
avr-gcc -DNODE=3 -DCONTIKI=1 -DCONTIKI_TARGET_AVR_ZIGDUINO=1 -I/home/edmont/Zigduino/arduino/cores/zigduino -DARDUINO_CORE=1 -Wall -mmcu=atmega128rfa1 -gdwarf-2 -fno-strict-aliasing -I. -I../../../../core -I../../../../cpu/avr -I../../../../platform/avr-zigduino -DF_CPU=16000000UL -DAUTO_CRC_PADDING=2 -Os -DRF230BB -I. -I/home/edmont/Zigduino/arduino/cores/zigduino -I../../../../platform/avr-zigduino/. -I../../../../platform/avr-zigduino/dev -I../../../../platform/avr-zigduino/apps -I../../../../platform/avr-zigduino/net -I../../../../platform/avr-zigduino/loader -I../../../../cpu/avr/. -I../../../../cpu/avr/dev -I../../../../cpu/avr/radio/rf230bb -I../../../../core/dev -I../../../../core/lib -I../../../../core/net -I../../../../core/net/mac -I../../../../core/net/rime -I../../../../core/net/rpl -I../../../../core/sys -I../../../../core/cfs -I../../../../core/ctk -I../../../../core/lib/ctk -I../../../../core/loader -I../../../../core/. -c set-eeprom.c -o set-eeprom.o
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
--change-section-lma .eeprom=0 -O ihex set-eeprom.o set-eeprom.eep
avrdude -V -F -D -b 57600 -P /dev/ttyUSB0 -c arduino -p atmega128rfa1 -U eeprom:w:set-eeprom.eep
avrdude: stk500_recv(): programmer is not responding

avrdude done. Thank you.

make: *** [set-eeprom.eu] Error 1
rm set-eeprom.eep set-eeprom.o

The Zigduino is correctly attached to /dev/USB0, according to dmesg:

[ 2053.168401] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0

Serial undeclared (first use in this function)

I've created a new simple project for using the hardware serial (digital pins 0 and 1) and i've included the WProgram.h file found under platform/avr-zigduino/zigduino-core/ (which in fact is including HardwareSerial.h that contains the definition of the Serial class)

the code is something like this:

include "contiki.h"

include "../../zigduino-core/WProgram.h"

include <stdio.h>

PROCESS(serial_process, "test serial");
AUTOSTART_PROCESS(&serial_process);

PROCESS_THREAD(serial_process, ev, data)
{
PROCESS_BEGIN();
PROCESS_PAUSE();

printf("Serial Test\n");

Serial.begin(9600);

PROCESS_END();

}

then i make, and it shows me the error: Serial undeclared (first use in this function).

may it be some issue with the scope of the Serial object?

Using GPIO

Hi, I am trying to read data from a presence sensor from a digital input but I don't know how to access to the digital ports.

Are there any functions to configure and read/write digital ports. Like the readADC() for analog inputs, for example. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.