Vote count:
0
uint8_t clrClkAndData = PORTD & ~0x28
PORTD = clrClkAndData; \
asm __volatile__ \
( "sbrc %2," #n "\n" \
"\tsbi 18,3\n" \
"\tsbi 18,5\n" \
"\tsbic 16,2\n" \
"\tori %0,1<<" #n "\n" \
: "=d" (spiIn) : "0" (spiIn), "r" (spiOut))
I installed ubuntu and using TOSSIM. Everything compiles properly and is running. But when the file HPLAt45dbIOP.nc for micaz is executed on TOSSIM, I get errors like /opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:
Assembler messages: /opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:150: Error: no such instruction: sbrc %cl,7' /opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:151: Error: no such instruction:sbi 18,3' /opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:152: Error: no such instruction: sbi 18,5' /opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:153: Error: no such instruction:sbic 16,2' /opt/tinyos-2.1.2/tos/platforms/micaz/chips/at45db/HplAt45dbIOP.nc:154: Error: no such instruction: `ori %dl,1<<7'
I have an Intel machine. Why does TOSSIM unable to run assembly language instructions? Please help this is becoming frustrating
Trying to write data into flash using simulator TOSSIM.
Aucun commentaire:
Enregistrer un commentaire