Difference between revisions of "Platforms telosb"

From DiLab
Jump to: navigation, search
m
(Dependencies)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TocRight}}
Telosb is also compatible to Tmote Sky, TmoteMINI, and similar.
In MansOS, "'''telosb'''" is a platform supporting certain hardware based on msp430F1611 processor.
The following platforms have been tested in MansOS using this platform:
* TelosB
* Tmote Sky
* Tmote Mini
make telosb
make telosb upload


* Zolertia Z1
make z1
make z1 upload


Schematics and some data is available on TinyOS.net:
* http://www.tinyos.net/scoop/special/hardware#telos


===Dependencies===
You should have the latest msp430-gcc toolchain installed.


For Ubuntu 11.10 and up this should install the mspgcc toolchain:
=== Telosb initialization in TinyOS 1.x ===

Sets all pin directions and values. Inits the external flash memory chip.
sudo apt-get install msp430-libc mspdebug msp430mcu binutils-msp430 gcc-msp430
<code>
void TOSH_SET_PIN_DIRECTIONS(void){
atomic {
P1SEL = 0; // Select all ports to be I/O pins
P2SEL = 0;
P3SEL = 0;
P4SEL = 0;
P5SEL = 0;
P6SEL = 0;
P1DIR = 0xe0; // 1110 0000 (0=input, 1=output)
P1OUT = 0x00; // '''000'''0 0000
P2DIR = 0x7b; // 0111 1011 (0=input, 1=output)
P2OUT = 0x10; // 0'''001''' '''0'''0'''00'''
P3DIR = 0xf1; // 1111 0001 (0=input, 1=output)
P3OUT = 0x00; // '''0000''' 000'''0'''
P4DIR = 0xfd; // 1111 1101 (0=input, 1=output)
P4OUT = 0xdd; // '''1101 11'''0'''1'''
P5DIR = 0xff; // 1111 1111 (0=input, 1=output)
P5OUT = 0xff; // '''1111 1111'''
P6DIR = 0xff; // 1111 1111 (0=input, 1=output)
P6OUT = 0x00; // '''0000 0000'''
P1IE = 0; // Port P1 pin interrupts - all disabled
P2IE = 0; // Port P2 pin interrupts - all disabled
TOSH_uwait(1024*10); // wait 10ms for the flash to startup
TOSH_FLASH_M25P_DP(); // Put the flash in deep sleep state
}//atomic
}
</code>

Latest revision as of 14:06, 26 June 2012

Contents

In MansOS, "telosb" is a platform supporting certain hardware based on msp430F1611 processor. The following platforms have been tested in MansOS using this platform:

  • TelosB
  • Tmote Sky
  • Tmote Mini
make telosb
make telosb upload
  • Zolertia Z1
make z1
make z1 upload


Dependencies

You should have the latest msp430-gcc toolchain installed.

For Ubuntu 11.10 and up this should install the mspgcc toolchain:

sudo apt-get install msp430-libc mspdebug msp430mcu binutils-msp430 gcc-msp430