Thursday, August 01, 2013

Add variable in TinyOS symbol table

  1. Add uint_8 volatile myVar=255; in Implementation.
  2. In boot method, add myVar+=1;
  3. Use this command to check if symbol is added: tos-set-symbols --read /build/telosb/main.exe
  4. Change value of variable using:tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target ihex build/telosb/main.ihex build/telosb/main.ihex MoudleName__myVar=30 TOS_NODE_ID=5 ActiveMessageAddressC__addr=5
  5. Run your ihex file. 


Hannah Baker said...

Thank you for your post. Easyshiksha is online education portal.It providesfree test series

Anonymous said...

You can obtain the free House of Fun app on your mobile phone and take all the fun of the on line casino with you wherever 1xbet you go! These kinds of free slots are great for Funsters who're out-and-about, and looking for a fun method to pass the time. Just off the primary ground, The Enclave is the last word|the last word} expertise in lounge luxury. Sit back, loosen up and play for your next win whereas wanting over the primary on line casino motion.