On 2/3/13 11:56 AM, Faruk Baturalp Günay wrote:
> I'm a new beginer for tinyos and i bought some MAXFOR cm5000msp (similar
> with Telosb) motes.As i undermentioned i had a problem in a simple
> helloworld application,in terminal.If you can help about this problem
> i'll be so pleased.Thank you from now.i look forward to your reply.
>
> Kind regards,
> Faruk
>
> helloworldAppc.nc
>
> configuration helloworldAppc
> {
> //Do nothing
> }
> implementation
> {
> components MainC;
> components LedsC;
>
> components helloworldc as App;
> //Wiring
> AppBoot -> MainC;
> AppLeds -> LedsC;
> }
>
>
>
> helloworldc.nc
>
>
> module helloworldc
> {
> uses interface Boot;
> uses interface Leds;
> }
> implementation
> {
> void TurnOnLed()
> {
> call Leds.led0On()
> }
>
> event void Boot.booted()
> {
> TurnOnLed()
> }
> }
>
>
> Makefile
>
> COMPONENT=helloworldAppc
> include $(MAKERULES)
>
>
>
>
>
>
>
> Terminal
>
> Reference Device Description
> ---------- ---------------- ---------------------------------------------
> FTVW8IUQ /dev/ttyUSB0 FTDI MTM-CM5000MSP
> baturalp@baturalp:~$ motelist
> No devices found.
> baturalp@baturalp:~$ motelist
> Reference Device Description
> ---------- ---------------- ---------------------------------------------
> FTVW8IUQ /dev/ttyUSB0 FTDI MTM-CM5000MSP
> baturalp@baturalp:~$ sudo chmod 666 /dev/ttyUSB0
> [sudo] password for baturalp:
> baturalp@baturalp:~$ cd workspace
> baturalp@baturalp:~/workspace$ ls
> BL1 Blip helloWorld
> baturalp@baturalp:~/workspace$ cd hel*
> baturalp@baturalp:~/workspace/helloWorld$ ls
> src TinyOS_Plugin_Makefile
> baturalp@baturalp:~/workspace/helloWorld$ ls
> src TinyOS_Plugin_Makefile
> baturalp@baturalp:~/workspace/helloWorld$ cd src
> baturalp@baturalp:~/workspace/helloWorld/src$ ls
> helloworldAppc.nc helloworldc.nc Makefile
> *************************THE PROBLEM IS
> HERE.................................(can it be related to MAXFOR model
> name? after we write after make command,if it is can you tell true command?)
> baturalp@baturalp:~/workspace/helloWorld/src$ make telosb
> make: *** No rule to make target `telosb'. Stop.
>
>
>
What do you get when you type:
$ echo $MAKERULES
Did you set up the environment variables in your ~/.profile or ~/.bashrc?
export TOSROOT=</path/to/tinyos-main>
export TOSDIR=$TOSROOT/tos
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
export MAKERULES=$TOSROOT/support/make/Makerules
Chris
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help