Hi again,

I have been developing some functions with integer parameters, for MICAZ
motes.

But now i need to do some operations in float format. So i have tried with
TOSSIM a float_t format with simple operations, such as exp, log, etc.

When the function has float_t parameters, like the following, it works fine.



float_t function (float parameter, int64_t scale)


The problem is when i use a function which uses reference parameters, such
as pointers or tables. For example:

float_t function (float_t *parameter, int64_t scale)

With this kind of function, i get the next error in TOSSIM after doing a
"make micaz sim":


javac -target 1.4 -source 1.4 *.java
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling BlinkToRadioAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\)   -Wall -Wshadow -Wnesc-all
-target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-I/opt/tinyos-2.1.0/tos/lib/T2Hack -DIDENT_APPNAME=\"BlinkToRadioApp\"
-DIDENT_USERNAME=\"juan\" -DIDENT_HOSTNAME=\"ubuntu\"
-DIDENT_USERHASH=0x2e810fdfL -DIDENT_TIMESTAMP=0x4dd616cdL
-DIDENT_UIDHASH=0xb14744c6L -Wno-nesc-data-race BlinkToRadioAppC.nc
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
-fnesc-dumpfile=app.xml
nesc1: types.c:1489: make_unsigned_type: Assertion `type_unknown_int(t) ||
type_unknown_number(t) || type_unsigned(t)' failed.
nesC: Internal error. Please send a bug report to the nesC bug mailing list
at nescc-b...@lists.sourceforge.net
Current location (guess): BlinkToRadioC.nc:122
make: *** [sim-exe] Error 1


Can anyone help me? I'm using TinyOs 2.1.0

Thanks very much.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to