Download presentation
Presentation is loading. Please wait.
Published byAiden Wafer Modified over 9 years ago
1
Network and Systems Laboratory nslab.ee.ntu.edu.tw
2
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
3
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
4
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
5
Network and Systems Laboratory nslab.ee.ntu.edu.tw Compile To Intel-Extended Open Options
6
Network and Systems Laboratory nslab.ee.ntu.edu.tw Compile To Intel-Extended Select Linker type filename Choose intel-extended
7
Network and Systems Laboratory nslab.ee.ntu.edu.tw Compile To Intel-Extended Rebuild All
8
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
9
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
10
Network and Systems Laboratory nslab.ee.ntu.edu.tw Find And Copy Source Copy the source file into the created dir
11
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Open cygwin
12
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Change dir to the created dir
13
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
14
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”
15
Network and Systems Laboratory nslab.ee.ntu.edu.tw Load By BSL Load program to Taroko
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.