Network and Systems Laboratory nslab.ee.ntu.edu.tw
Network and Systems Laboratory nslab.ee.ntu.edu.tw Objective Write program in IAR Compile to Intel-extended format Load program to TAROKO via USB interface Use MSP430 bootstrap loader on TinyOS
Network and Systems Laboratory nslab.ee.ntu.edu.tw Bootstrap Loader provides a method to program the flash memory via the UART protocol BSL code is stored in a secure memory location ROM or specially protected flash Any BSL command that directly or indirectly allows data reading is password protected To invoke the bootstrap loader a BSL entry sequence must be applied
Network and Systems Laboratory nslab.ee.ntu.edu.tw Invoke BSL 1. Apply BSL entry sequence 2. Send a synchronization character 3. Send a specific command TinyOS installation includes a MSP430 bsl program
Network and Systems Laboratory nslab.ee.ntu.edu.tw Compile To Intel-Extended Open Options
Network and Systems Laboratory nslab.ee.ntu.edu.tw Compile To Intel-Extended Select Linker type filename Choose intel-extended
Network and Systems Laboratory nslab.ee.ntu.edu.tw Compile To Intel-Extended Rebuild All
Network and Systems Laboratory nslab.ee.ntu.edu.tw Find And Copy Source Go to program directory Locate file in Debug/Exe Copy the generated file Go to program directory Locate file in Debug/Exe Copy the generated file
Network and Systems Laboratory nslab.ee.ntu.edu.tw Find And Copy Source Go to cygwin home dir C:\Program Files\UCB\cygwin\home\”username” Create a new dir Go to cygwin home dir C:\Program Files\UCB\cygwin\home\”username” Create a new dir
Network and Systems Laboratory nslab.ee.ntu.edu.tw Find And Copy Source Copy the source file into the created dir
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Open cygwin
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Change dir to the created dir
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Plug Taroko to USB port Check the com port Plug Taroko to USB port Check the com port
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Execute the following command: $ msp430-bsl --telosb -c “comport – 1” -r -e -I - p “source file name” Execute the following command: $ msp430-bsl --telosb -c “comport – 1” -r -e -I - p “source file name”
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Load program to Taroko