Re: [Tinyos-help] downloading code to a new platform

2007-05-29 Thread Urs Hunkeler
Hi,

Do the LEDs work if you write a simple program in assembler? Can you
control the LEDs when using assembler directives in NesC code (without
timer)? If yes, does it also work with timers?

Cheers,
Urs


Puru schrieb:
 hi all,
 
 we are developing a mote-like (mica2-like) device, which currently
 only has the mcu and minimum cicuitry to get it started
 (no external flash, no radio yet).
 
 the initial idea is to compile apps using tinyos and
 copy the corresponding ihex files using icc-avr or such
 onto the new platform. we are facing problems with
 this procedure,  have tried testing the procedure using Blink,
 as the LED circuitry is available on the new platform.
 Have verified the fuse bits, disabled to bootloader
 and have also written a Blink program in icc-avr
 which toggles port a bits and in turn does toggle the LEDs.
 This icc-avr hex file when copied via uisp on a crossbow
 mica2 toggles the LEDs as well, but the Blink ihex file
 generated via tinyos copied via icc-avr to the new platform
 does nothing.
 
 any directions on how to proceed or what is the
 actual load process  would be helpful.
 
 thanks,
 - Puru
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] downloading code to a new platform

2007-05-29 Thread Puru

Hi Urs,

I wrote a simple program using ICC-AVR, which toggled bits on
port A and which in turn blinked the leds and this hex program
when copied on the platform worked correctly.
infact this hex file copied on the mica2 using uisp also works correctly.
i tried with and without the timer.
note this is not using assembler directives in NesC, but similar
assemble directives with the icc-avr interface.

am not sure if tinyos is looking for h/w that is not present
on the platform (e.g., flash, radio etc and failing, which i think is unlikely),
or if i am some wrong settings or smtg else ...

thanks,
-- puru
On 5/29/07, Urs Hunkeler [EMAIL PROTECTED] wrote:

Hi,

Do the LEDs work if you write a simple program in assembler? Can you
control the LEDs when using assembler directives in NesC code (without
timer)? If yes, does it also work with timers?

Cheers,
Urs


Puru schrieb:
 hi all,

 we are developing a mote-like (mica2-like) device, which currently
 only has the mcu and minimum cicuitry to get it started
 (no external flash, no radio yet).

 the initial idea is to compile apps using tinyos and
 copy the corresponding ihex files using icc-avr or such
 onto the new platform. we are facing problems with
 this procedure,  have tried testing the procedure using Blink,
 as the LED circuitry is available on the new platform.
 Have verified the fuse bits, disabled to bootloader
 and have also written a Blink program in icc-avr
 which toggles port a bits and in turn does toggle the LEDs.
 This icc-avr hex file when copied via uisp on a crossbow
 mica2 toggles the LEDs as well, but the Blink ihex file
 generated via tinyos copied via icc-avr to the new platform
 does nothing.

 any directions on how to proceed or what is the
 actual load process  would be helpful.

 thanks,
 - Puru




--
True compassion is more than flinging a coin at a beggar.
- Rev. Dr. Martin Luther King, Jr.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] downloading code to a new platform

2007-05-29 Thread Firat TARAKTAS

I think you should modify the hardware.h file of mica2 platform. Change
pin and port assignemnts with your new platform. 


Firat TARAKTAS



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Puru
Sent: Tuesday, May 29, 2007 12:03 PM
To: Urs Hunkeler
Cc: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] downloading code to a new platform

Hi Urs,

I wrote a simple program using ICC-AVR, which toggled bits on port A and
which in turn blinked the leds and this hex program when copied on the
platform worked correctly.
infact this hex file copied on the mica2 using uisp also works
correctly.
i tried with and without the timer.
note this is not using assembler directives in NesC, but similar
assemble directives with the icc-avr interface.

am not sure if tinyos is looking for h/w that is not present on the
platform (e.g., flash, radio etc and failing, which i think is
unlikely), or if i am some wrong settings or smtg else ...

thanks,
-- puru
On 5/29/07, Urs Hunkeler [EMAIL PROTECTED] wrote:
 Hi,

 Do the LEDs work if you write a simple program in assembler? Can you 
 control the LEDs when using assembler directives in NesC code (without

 timer)? If yes, does it also work with timers?

 Cheers,
 Urs


 Puru schrieb:
  hi all,
 
  we are developing a mote-like (mica2-like) device, which currently 
  only has the mcu and minimum cicuitry to get it started (no external

  flash, no radio yet).
 
  the initial idea is to compile apps using tinyos and copy the 
  corresponding ihex files using icc-avr or such onto the new 
  platform. we are facing problems with this procedure,  have tried 
  testing the procedure using Blink, as the LED circuitry is available

  on the new platform.
  Have verified the fuse bits, disabled to bootloader and have also 
  written a Blink program in icc-avr which toggles port a bits and in 
  turn does toggle the LEDs.
  This icc-avr hex file when copied via uisp on a crossbow
  mica2 toggles the LEDs as well, but the Blink ihex file generated 
  via tinyos copied via icc-avr to the new platform does nothing.
 
  any directions on how to proceed or what is the actual load process

  would be helpful.
 
  thanks,
  - Puru



--
True compassion is more than flinging a coin at a beggar.
- Rev. Dr. Martin Luther King, Jr.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] downloading code to a new platform

2007-05-29 Thread Puru

the pin mappings of the new platform (for the limited circuitry and the leds)
is identical to the mica2 and hence did not touch hardware.h

-- puru


On 5/29/07, Firat TARAKTAS [EMAIL PROTECTED] wrote:


I think you should modify the hardware.h file of mica2 platform. Change
pin and port assignemnts with your new platform.


Firat TARAKTAS



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Puru
Sent: Tuesday, May 29, 2007 12:03 PM
To: Urs Hunkeler
Cc: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] downloading code to a new platform

Hi Urs,

I wrote a simple program using ICC-AVR, which toggled bits on port A and
which in turn blinked the leds and this hex program when copied on the
platform worked correctly.
infact this hex file copied on the mica2 using uisp also works
correctly.
i tried with and without the timer.
note this is not using assembler directives in NesC, but similar
assemble directives with the icc-avr interface.

am not sure if tinyos is looking for h/w that is not present on the
platform (e.g., flash, radio etc and failing, which i think is
unlikely), or if i am some wrong settings or smtg else ...

thanks,
-- puru
On 5/29/07, Urs Hunkeler [EMAIL PROTECTED] wrote:
 Hi,

 Do the LEDs work if you write a simple program in assembler? Can you
 control the LEDs when using assembler directives in NesC code (without

 timer)? If yes, does it also work with timers?

 Cheers,
 Urs


 Puru schrieb:
  hi all,
 
  we are developing a mote-like (mica2-like) device, which currently
  only has the mcu and minimum cicuitry to get it started (no external

  flash, no radio yet).
 
  the initial idea is to compile apps using tinyos and copy the
  corresponding ihex files using icc-avr or such onto the new
  platform. we are facing problems with this procedure,  have tried
  testing the procedure using Blink, as the LED circuitry is available

  on the new platform.
  Have verified the fuse bits, disabled to bootloader and have also
  written a Blink program in icc-avr which toggles port a bits and in
  turn does toggle the LEDs.
  This icc-avr hex file when copied via uisp on a crossbow
  mica2 toggles the LEDs as well, but the Blink ihex file generated
  via tinyos copied via icc-avr to the new platform does nothing.
 
  any directions on how to proceed or what is the actual load process

  would be helpful.
 
  thanks,
  - Puru



--
True compassion is more than flinging a coin at a beggar.
- Rev. Dr. Martin Luther King, Jr.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p




--
True compassion is more than flinging a coin at a beggar.
- Rev. Dr. Martin Luther King, Jr.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help