[Tinyos-help] porting tinyos on new 32bit MCU

santosh dwivedi santosh at iiita.ac.in
Sat Mar 26 02:35:45 PST 2005


Hi David,
I followed instructions in the previous mail..
I had created target file named tms470 for TMS470 in /tools/make
and tms47o folder in C:\cygwin\opt\tinyos-1.x\tos\platform\tms470 also
added     .PLATEFORM file (with
                 "-gcc=arm-elf-gcc",
                  "-mcpu=arm7tdmi",
                   "-fnesc-target=env",
                   "-fnesc-no-debug )

I also exported NESC_MACHINE environment variable

But when tried to compile Blink application got follwing error.
What Wrong I am doing ??? ....
Why nesc1: unknown target tms470 Error ?
In error "arm-elf-gcc: installation problem, cannot exec `cc1':" what is
purpose is of cc1 and how it is related to gcc compiler ( arm-lef-gcc in
this case )


/*************************************************************/
$ make  tms470
mkdir -p build/tms470
    compiling Blink to a tms470 binary
ncc -o build/tms470/main.exe -Os -fnesc-target=tms470 -gcc=arm-elf-gcc
-mcpu=arm7tdm
i -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=tms470
-fnesc-cfile=buil
d/tms470/app.c -board= -DDELUGE_LEDS -DIDENT_PROGRAM_NAME="Blink"
-DIDENT_PROGRAM_NA
ME_BYTES="66,108,105,110,107,0" -DIDENT_USER_HASH=0x4e5c3f7dL
-DIDENT_UNIX_TIME=0x42
45392dL -I/opt/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm
nesc1: unknown target tms470
arm-elf-gcc: installation problem, cannot exec `cc1': No such file or
directory
<commandline>: failed to preprocess /opt/tinyos-1.x/tos/system/tos.h
arm-elf-gcc: installation problem, cannot exec `cc1': No such file or
directory
<commandline>: failed to preprocess Blink.nc
make: *** [exe0] Error 1
/**************************************************************/

Thanks in advance ...
santosh dwivedi




More information about the Tinyos-help mailing list