Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Instruction to upload the binary to MTM-CM5000MSP

Introduction

This is a guide to upload the binary file (output of the MAKE command) to MTM-CM5000MSP in the Windows environment. The binary file is generated by running the make command (possibly from https://codio.co.uk).

figures/tmote.jpg

Steps to program

  1. If it is not installed, download and install Python from here.
  2. Install pySerial for the Python distribution using Powershell. To do this, run Powershell and enter the following command in the shell window. Make sure python is in the PATH environment variable.
    python -m pip install pyserial
        
  3. Install Git if it is not installed from here. Then, download Contiki-NG repository from Github. You can do it in this way.
    git clone https://github.com/contiki-ng/contiki-ng.git
    cd contiki-ng
        
  4. Plug in the hardware to one of the USB ports. Check the portname by running following
    [System.IO.Ports.SerialPort]::GetPortNames()
    
    For example: COM3
        
  5. Now erase the chip, replace COM3 with the PORT that you got from step 4. If there is more than one, make sure you choose the right one.
    python .\tools\sky\msp430-bsl-linux --telosb -c COM3 -e
    Start-Sleep -Seconds 2
        
  6. Program the chip
    python .\tools\sky\msp430-bsl-linux --telosb -c COM3 -I /path/to/binaryfile
    Start-Sleep -Seconds 2
        
  7. Reset the chip
    python .\tools\sky\msp430-bsl-linux --telosb -c COM3 -r
    
        
  8. All done.