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

Cory Sharp cory.sharp at gmail.com
Sat Mar 26 11:14:34 PST 2005


Hi Santosh,

For other readers, note the file is named .platform not .PLATEFORM. 
Santosh, you say you have this line in your .platform file

    "-fnesc-target=env",

But if you look at the command line given to the compiler, you instead see this

    -fnesc-target=tms470

Fix your platform file to actually read env instead of tms470.  Until
you patch nesc yourself to understand tms470, you must use target env
to specify your platform.  As David pointed out, see
tinyos-1.x/doc/nesc/envtarget.html for more details.

Cory

On Sat, 26 Mar 2005 16:05:45 +0530 (IST), santosh dwivedi
<santosh at iiita.ac.in> wrote:
> 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
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> 
>


More information about the Tinyos-help mailing list