[Tinyos-help] strange compilation error on 64bit cygwin

2016-02-19 Thread Roadstar Runner
I just installed cygwin and the rpms for avr tool chain, nesc on my 64 bit PC. i used the rpms from this repository http://tinyos.stanford.edu/tinyos/dists/cygwin/avr-beta/ When i try to compile Blink, i get the following error. /opt/tinyos-2.x/support/make/avr/avr.rules:144: recipe for target

[Tinyos-help] Using structs typedef'd in generic module

2016-01-08 Thread Roadstar Runner
I have a generic module that expects a struct as a typedef argument e.g. generic module LogReadWriteM(typedef LOG_STRUCT) how can i instantiate and access member variables of the struct inside this module? The typedef syntax seems confusing, cos as of now it seems that i can only pass a 'value'

[Tinyos-help] External flash memory Physical address (IRIS motes)

2015-08-19 Thread Roadstar Runner
I am writing my own bootloader to read an external image stored on the External Flash memory (of an IRIS mote) I have my own communication protocol and hence do not want to use Deluge. So far i have been able to store an image in a volume on the external flash memory using ConfigStorage. Now, in

[Tinyos-help] Workaround for Timer bug ( IRIS modules)

2015-03-24 Thread Roadstar Runner
I recently cam across a possible bug in the Timer module for the IRIS motes. I occasionally noticed that the timer would fire very late thus causing a whole series of cascading failures in my modules. After days of debugging, I traced the problem to the routine setInterrupt() in the module

[Tinyos-help] Timer firing late (IRIS platform). Is this a bug?

2015-03-05 Thread Roadstar Runner
I have a total of 8 timers in my test app. 3 timers are periodic and fire every 7,500 and 500ms. Fourth timer is configured to fire (one shot) based on certain parameters on the app. Remining timers are never used. Occasionally when i configure to the fourth fire (one shot) in 8ms, it fires

Re: [Tinyos-help] IRIS Timer accuracy

2015-02-06 Thread Roadstar Runner
-02-06 4:27 GMT+01:00 Roadstar Runner redstripe...@gmail.com: I am using the Timer TMilli interface to fire every 1000ms. I have a pin toggling every time the timer fires. The actual period i see is about 980 ms instead of 1s. I tried using Atm128Calibrate.calibrateMicro(), but the period now

[Tinyos-help] IRIS Timer accuracy

2015-02-05 Thread Roadstar Runner
I am using the Timer TMilli interface to fire every 1000ms. I have a pin toggling every time the timer fires. The actual period i see is about 980 ms instead of 1s. I tried using Atm128Calibrate.calibrateMicro(), but the period now is 1020 ms. Please advise. Thanks.

Re: [Tinyos-help] Does anyone have a fix for a bug i reported in June ?

2014-09-15 Thread Roadstar Runner
, Martin Cerveny mar...@c-home.cz wrote: Hello. (this may be irrelevant hint) On Sun, 14 Sep 2014, Roadstar Runner wrote: I have noticed that resource.granted() is signaled at startup. What kind of startup what kind of module ? There is still unresolved bug for modules, that call request

Re: [Tinyos-help] Does anyone have a fix for a bug i reported in June ?

2014-09-14 Thread Roadstar Runner
But if thee is no default owner for the resource, then the system could be locked because module 2 will never get the resource. I was under the impression that if a call to Resouce.request() returns SUCCESS , then either granted or requested will have to be signaled so that the resource is

Re: [Tinyos-help] Does anyone have a fix for a bug i reported in June ?

2014-09-14 Thread Roadstar Runner
are vying for a resource. On Sun, Sep 14, 2014 at 12:59 PM, Eric Decker cire...@gmail.com wrote: On Sun, Sep 14, 2014 at 7:28 AM, Roadstar Runner redstripe...@gmail.com wrote: But if thee is no default owner for the resource, then the system could be locked because module 2 will never get

Re: [Tinyos-help] Does anyone have a fix for a bug i reported in June ?

2014-09-14 Thread Roadstar Runner
: On Sun, Sep 14, 2014 at 7:28 AM, Roadstar Runner redstripe...@gmail.com wrote: But if thee is no default owner for the resource, then the system could be locked because module 2 will never get the resource. I was under the impression that if a call to Resouce.request() returns SUCCESS

Re: [Tinyos-help] Does anyone have a fix for a bug i reported in June ?

2014-09-14 Thread Roadstar Runner
I have noticed that resource.granted() is signaled at startup.If ResourceRequested.requested() is signaled to a module that does not own the resource, i think that is a bug On Sun, Sep 14, 2014 at 3:32 PM, Eric Decker cire...@gmail.com wrote: On Sun, Sep 14, 2014 at 11:16 AM, Roadstar Runner

[Tinyos-help] Does anyone have a fix for a bug i reported in June ?

2014-09-13 Thread Roadstar Runner
On Sat, Jun 7, 2014 at 7:03 PM, Roadstar Runner redstripeva2 at gmail.com https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help wrote: * I am not sure if this is a bug, though certainly not the behavior i ** expected. ** i am using FcfsArbiterC to manage my resources. . ** I

Re: [Tinyos-help] new avr toolchain

2014-08-11 Thread Roadstar Runner
command line option '-_fnesc-no-debug' /opt/tinyos-2.x/support/make/avr/avr.rules:144: recipe for target 'exe0' failed make: *** [exe0] Error 1 On Fri, Jul 25, 2014 at 9:12 AM, Roadstar Runner redstripe...@gmail.com wrote: Thats what i did. I installed cygwin from scratch On Thu, Jul 24

Re: [Tinyos-help] new avr toolchain

2014-07-25 Thread Roadstar Runner
, Roadstar Runner redstripe...@gmail.com wrote: I just installed the new rpms. i am currently stuck on the following error avr-gcc: error: unrecognized command line option '-_fnesc-gcc=avr-gcc' avr-gcc: error: unrecognized command line option '-_fnesc-include=nesc_nx' avr-gcc: error: unrecognized

Re: [Tinyos-help] new avr toolchain

2014-07-23 Thread Roadstar Runner
use a VM with full-fledged Linux running. Regards Anton On 22.06.2014 15:50, Roadstar Runner wrote: i agree that cygwin is a mess, but there are quite a few TinyOS users out there using cygwin. Is there a way to tell NesC to use windows style paths ? On Fri, Jun 20, 2014 at 1:14 PM

Re: [Tinyos-help] new avr toolchain

2014-06-22 Thread Roadstar Runner
, sometimes it gives unexpected errors, and it's really-really slow, so I might not have the patience to fix it. Andris On Fri, Jun 20, 2014 at 5:55 PM, Roadstar Runner redstripe...@gmail.com wrote: The Atmel binaries do not work on Cygwin because of cygwin/linux path syntax problems. I

Re: [Tinyos-help] new avr toolchain

2014-06-20 Thread Roadstar Runner
The Atmel binaries do not work on Cygwin because of cygwin/linux path syntax problems. I get an error avr-gcc.exe: error: /usr/lib/ncc/tdspecs: No such file or directory even though the file is present. On Fri, Jun 20, 2014 at 7:37 AM, András Bíró andras.b...@ucmote.com wrote: Hi Everyone,

Re: [Tinyos-help] Bug in ArbiterP.nc ?

2014-06-20 Thread Roadstar Runner
on initial boot (very low level s/w init on start up) which zeros non-initialized data. On Sun, Jun 8, 2014 at 7:34 AM, Roadstar Runner redstripe...@gmail.com wrote: Initialization to be done by the application or in ArbiterP.nc? - Lewis On Sun, Jun 8, 2014 at 3:43 AM, Eric Decker cire

Re: [Tinyos-help] warning in FcfsResourceQueueC.nc after upgrading avr-gcc

2014-06-09 Thread Roadstar Runner
}; uint8_t resQ[size]; Thanks, Lewis On Mon, Jun 9, 2014 at 12:43 AM, Eric Decker cire...@gmail.com wrote: how is resQ[] defined? On Sun, Jun 8, 2014 at 7:05 PM, Roadstar Runner redstripe...@gmail.com wrote: I recently upgraded to avr-gcc 4.9.0 and am getting a few warnings

[Tinyos-help] warning in FcfsResourceQueueC.nc after upgrading avr-gcc

2014-06-08 Thread Roadstar Runner
I recently upgraded to avr-gcc 4.9.0 and am getting a few warnings in FcfsResourceQueueC.nc. I am not sure why gcc is complaining. /opt/tinyos-2.x/tos/system/FcfsResourceQueueC.nc:88:73: warning: array subscript is above array bounds [-Warray-bounds] resQ[qTail] = id;

[Tinyos-help] Bug in ArbiterP.nc ?

2014-06-07 Thread Roadstar Runner
I am not sure if this is a bug, though certainly not the behavior i expected. i am using FcfsArbiterC to manage my resources. . I currently have 2 modules using interfaces Resource and ResourceRequested.If module# 2 calls Resource.request() after module #1 calls Resource.request() but before

Re: [Tinyos-help] help DymonetworkC

2014-06-04 Thread Roadstar Runner
You need an xml(depending on your platform) file in the same directory as your makefile. you should be able to find this in one of the TinyOS projects in the source tree For IRIS motes , you need volumes-at45db.xml On Tue, Jun 3, 2014 at 10:57 PM, trung phạm trungitiu09...@gmail.com wrote:

Re: [Tinyos-help] Is TinyOS slowly dying ????

2014-06-03 Thread Roadstar Runner
inferior to atmel's pathced libc. But atmel's kind enough to do this job. Use their version of the toolchain! Andris On Sun, Jun 1, 2014 at 3:10 AM, Roadstar Runner redstripe...@gmail.com wrote: Andris, I understand that TinyOS is an all volunteer project and commend the time put

Re: [Tinyos-help] Is TinyOS slowly dying ????

2014-06-03 Thread Roadstar Runner
toolchain. If you're on Linux, you don't have this issue, and you can just grab the binaries (no need to compile yourself). Janos On Tue, Jun 3, 2014 at 3:48 PM, Roadstar Runner redstripe...@gmail.com wrote: I tried upgrading gcc from the Atmel website but got stuck at the following error when i

Re: [Tinyos-help] Is TinyOS slowly dying ????

2014-05-31 Thread Roadstar Runner
. Andris On Thu, May 22, 2014 at 11:46 PM, Roadstar Runner redstripe...@gmail.com wrote: I honestly think TinyOS is dying! The activity on the forum is almost down to a trickle. It takes forever to get problems fixed ( if they do ever get fixed) . I have been stuck for more than a week

[Tinyos-help] internal compiler error after GCC upgrade

2014-05-29 Thread Roadstar Runner
I am stuck with a weird error while trying to compile my TinyOS program.The error started popping up only after i upgraded my gcc toolset.I am not sure if this is a gcc error or NesC error I have the following version of tools installed (target platform IRIS) gcc 4.9.0 deputy-1.1-1.i386

[Tinyos-help] Is TinyOS slowly dying ????

2014-05-22 Thread Roadstar Runner
chain so that dwarf debugging addresses are 2 bytes rather than 4. I am wondering whether newer avr-gcc releases solve this problem. Phil On Apr 10, 2014, at 10:30 AM, Roadstar Runner redstripe...@gmail.com wrote: Phil, Thanks once again. Is there an easy way for me to find a fix

Re: [Tinyos-help] Cryptic compile error with flag avr-studio-debug

2014-05-19 Thread Roadstar Runner
On Apr 10, 2014, at 10:30 AM, Roadstar Runner redstripe...@gmail.com wrote: Phil, Thanks once again. Is there an easy way for me to find a fix/workaround ? Lewis On Thu, Apr 10, 2014 at 12:13 PM, Philip Levis p...@cs.stanford.edu wrote: (responded to this unicast, thought I

[Tinyos-help] Bug fix - compiling avr gcc toolchain for TinyOS

2014-05-13 Thread Roadstar Runner
Hi , I need to recompile avr gcc compiler so that the code size of the generated elf file(for debugging with AVR studio) is not restricted to 65K. I have never built or compiled the gcc toolchain before and information that i have gathered online did not produce much results. Does anyone have

Re: [Tinyos-help] Bug fix - compiling avr gcc toolchain for TinyOS

2014-05-13 Thread Roadstar Runner
to a newer toolchain, it might be easier to use that: https://github.com/tinyos/tinyos-main/issues/278 Best, Andris On Tue, May 13, 2014 at 3:11 PM, Roadstar Runner redstripe...@gmail.comwrote: Hi , I need to recompile avr gcc compiler so that the code size of the generated elf file

Re: [Tinyos-help] Bug fix - compiling avr gcc toolchain for TinyOS

2014-05-13 Thread Roadstar Runner
you start with the avr-gcc sources from Atmel's website ( http://www.atmel.com/tools/atmelavrtoolchainforwindows.aspx ), rather than from gcc.gnu.org. Janos On Tue, May 13, 2014 at 8:11 AM, Roadstar Runner redstripe...@gmail.comwrote: Hi , I need to recompile avr gcc compiler so

Re: [Tinyos-help] Cryptic compile error with flag avr-studio-debug

2014-04-10 Thread Roadstar Runner
greater than 65,535 bytes. I'm not exactly sure why. Phil On Apr 8, 2014, at 3:00 PM, Roadstar Runner redstripe...@gmail.com wrote: I have been compiling my program with the 'avr-studio-debug' flag so that i can use a JTAG to debug my software. Recently, even though my program

[Tinyos-help] Cryptic compile error with flag avr-studio-debug

2014-04-08 Thread Roadstar Runner
I have been compiling my program with the 'avr-studio-debug' flag so that i can use a JTAG to debug my software. Recently, even though my program compiles normally without the debug flag, it fails when i use the avr-studio-debug flag. I get a bunch of cryptic error message that reads like this

[Tinyos-help] Setting breakpoints with JTAG

2014-02-12 Thread Roadstar Runner
I am trying to debug a simple TinyOS Blink program on the IRIS motes using avr studio (JTAGICE MKII). I was able to load the elf file, pause (break all) execution and then step through the code. However, the only function accessible is McuSleep.sleep(). How do i set explicit breakpoints in other

Re: [Tinyos-help] Setting breakpoints with JTAG

2014-02-12 Thread Roadstar Runner
: It would be helpful if you specified what toolchain you are using and in particular what debugger. On Wed, Feb 12, 2014 at 1:30 PM, Roadstar Runner redstripe...@gmail.comwrote: I am trying to debug a simple TinyOS Blink program on the IRIS motes using avr studio (JTAGICE MKII). I

Re: [Tinyos-help] Iris Low power listening radio lockup

2014-01-09 Thread Roadstar Runner
the modified file if needed. On Thu, Jan 9, 2014 at 12:56 AM, Eric Decker cire...@gmail.com wrote: Roadstar Runner, can you please do a verbose build and send us the output. That will tell us exactly what modules you are pulling in. Also where did your source come from? Is from the release

Re: [Tinyos-help] Async Timer in sleep mode

2014-01-08 Thread Roadstar Runner
want to use something else than the Timer.fired()? Miklos On Sun, Dec 29, 2013 at 8:13 PM, Roadstar Runner redstripe...@gmail.com wrote: Hi, I am trying to move all my communication tasks to a high priority task queue. I have already tweaked the scheduler so that it can handle 2

[Tinyos-help] Simple NesC confusion

2014-01-08 Thread Roadstar Runner
Is there a way to use the arguments to a generic module to conditionally compile blocks of code in that module . for eg generic module MyTimerM(typedef precision_tag, int val1) @safe() { } implementation { # if val1 //some code here #endif Thanks in advance

[Tinyos-help] Weird compile error

2013-12-30 Thread Roadstar Runner
I am trying to implement an alarm using compare register B (OCR2B). I modified HplAtm1281Timer2AsyncP.nc to provide an interface for compare B module HplAtm1281Timer2AsyncP @safe() { provides { // 8-bit Timers interface HplAtm128Timeruint8_t as Timer; interface HplAtm128TimerCtrl8

[Tinyos-help] Async Timer in sleep mode

2013-12-29 Thread Roadstar Runner
Hi, I am trying to move all my communication tasks to a high priority task queue. I have already tweaked the scheduler so that it can handle 2 priority levels. One of the tasks used by the low power listening module (LowPowerListeningLayerP.nc) relies on a Timer task(Timer.fired() event ) to

Re: [Tinyos-help] Parametrized interface with alias - compile error

2013-12-27 Thread Roadstar Runner
community so that others can benefit from it. Please let me know what you think. Levi On Fri, Dec 27, 2013 at 1:58 AM, Eric Decker cire...@gmail.com wrote: On Thu, Dec 26, 2013 at 10:23 AM, Roadstar Runner redstripe...@gmail.comwrote: Hi, I am trying to implement an interface for scheduling

[Tinyos-help] Parametrized interface with alias - compile error

2013-12-26 Thread Roadstar Runner
Hi, I am trying to implement an interface for scheduling high priority tasks. i have modified TinySchedulerC.nc as follows configuration TinySchedulerC { provides interface Scheduler; provides interface TaskBasic[uint8_t id]; provides interface TaskBasic[uint8_t taskID] as TaskHighPriority;

Re: [Tinyos-help] Calculate time taken for a function execution.

2013-12-07 Thread Roadstar Runner
I think you have the wrong format specifier argument. Try %ld instead of %f. Try using dbg(Boot, Function took %ld millisecs\n, (ts1 - ts) ); On Sat, Dec 7, 2013 at 6:53 AM, nivedita datta sweetniv...@gmail.comwrote: I am trying to calculate the time taken by a function that I wrote. I am

[Tinyos-help] Iris Low power listening radio lockup

2013-12-06 Thread Roadstar Runner
I have been experiencing intermittent lockups with the radio stack Iris modules. After some debugging i figured that the problem starts in the routine SubReceive.receive() in the file RandomCollisionLayerP.nc. If for some reason RadioAlarm is not free (used by some other module) , the *state

[Tinyos-help] Iris ConfigStorage not saving data inspite of commits

2013-09-05 Thread Roadstar Runner
Hi All, I have a small test app that is storing blocks of 21 bytes of data to flash in a circular fashion. I use ConfigStorage to mount/read/write/commit data to the flash. I have noticed that if overwrite a data buffer location twice, the second commit does not have any effect. I thought that

[Tinyos-help] Tinyos Memory map file

2013-04-30 Thread Roadstar Runner
Hi, I have been trying in vain to locate the memory map file generated by the linker. Is there a cflag or something to be added to the makefile to generate a map file. I assumed that the linker always generates a map file Plz: I am working on the IRIS motes Thanks

Re: [Tinyos-help] Tinyos Memory map file

2013-04-30 Thread Roadstar Runner
,foo.map Janos On Tue, Apr 30, 2013 at 10:20 AM, Roadstar Runner redstripe...@gmail.comwrote: Hi, I have been trying in vain to locate the memory map file generated by the linker. Is there a cflag or something to be added to the makefile to generate a map file. I assumed that the linker

[Tinyos-help] Iris crashing after few days

2013-04-25 Thread Roadstar Runner
I have a fairly decent size (66K) program running on the Iris motes. The program randomly crashes after about a week of running perfectly fine. I have rechecked my array bounds to make sure i am not overwriting memory. I have 5000 bytes in RAM. I tried running the stack-check utility but it

Re: [Tinyos-help] Iris using 64 bit address filtering

2013-02-21 Thread Roadstar Runner
Maroti mmar...@math.u-szeged.huwrote: Hi Lou, On Thu, Feb 21, 2013 at 10:36 AM, Roadstar Runner redstripe...@gmail.com wrote: Hi Miklos, Thank you very much. I do not even get the interrupt from the radio if i use RX_AACK mode. If use the basic mode , it works fine. I used a TI (CC2430

Re: [Tinyos-help] Iris using 64 bit address filtering

2013-02-21 Thread Roadstar Runner
, then I will merge it back to the mainline. Miklos On Thu, Feb 21, 2013 at 10:54 AM, Roadstar Runner redstripe...@gmail.com wrote: Hi Miklos, Thanks for the quick response. i made the following changes to support 64 bit addressing /*** File Ieee154PacketLayer.h

Re: [Tinyos-help] Iris using 64 bit address filtering

2013-02-21 Thread Roadstar Runner
want to use the ActiveMessageC framework, right? How do you want to eventually handle the 64-bit address vs the 16-bit address defined in AM.h? Maybe we should change am_addr_t to 64-bit? Miklos On Thu, Feb 21, 2013 at 10:59 AM, Roadstar Runner redstripe...@gmail.com wrote: So far no luck

Re: [Tinyos-help] Iris using 64 bit address filtering

2013-02-21 Thread Roadstar Runner
address 0xULL? Miklos On Thu, Feb 21, 2013 at 11:20 AM, Roadstar Runner redstripe...@gmail.com wrote: Hi, Yes i would like to use the ActiveMessageC framework. I hope that eventually a define in the makefile will upgrade the am address to a 64 bit version . Thanks

Re: [Tinyos-help] Iris using 64 bit address filtering

2013-02-21 Thread Roadstar Runner
did it work? Can i have a copy pf the modifications? On Thu, Feb 21, 2013 at 1:25 PM, Miklos Maroti mmar...@math.u-szeged.huwrote: Thanks, I did not know. I have updated the git repo. Miklos On Thu, Feb 21, 2013 at 12:13 PM, Roadstar Runner redstripe...@gmail.com wrote: I used

[Tinyos-help] Iris using 64 bit address filtering

2013-02-20 Thread Roadstar Runner
Hi, I am trying to implement a 64 bit IEEE address frame for the RF230 using the RX_AACK mode. The problem is that i the receiver does not receive any data. If i use RF230_RX_ON, i am able to receive the data. I used a sniffer and was able to capture the following raw data Sender address = 1

Re: [Tinyos-help] Iris using 64 bit address filtering

2013-02-20 Thread Roadstar Runner
The data i had posted seems to have lost its formatting, so i am re posting the raw data captured by the sniffer 41 CC 11 22 00 FF FF 00 00 00 00 00 00 F8 00 00 00 00 00 00 00 3F 08 0B 03 00 F8 00 0F 10 00 AA 01 F8 00 00 00 00 00 00 00 00 00 ___