150 likes | 325 Views
Load IAR Image Via TinyOS. Objective. Write program in IAR Compile to Intel-extended format Load program to TAROKO via USB interface Use MSP430 bootstrap loader on TinyOS. Bootstrap Loader. provides a method to program the flash memory via the UART protocol
E N D
Objective • Write program in IAR • Compile to Intel-extended format • Load program to TAROKO via USB interface • Use MSP430 bootstrap loader on TinyOS
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
Invoke BSL • Apply BSL entry sequence • Send a synchronization character • Send a specific command • TinyOS installation includes a MSP430 bsl program
Compile To Intel-Extended Open Options
Compile To Intel-Extended type filename Select Linker Choose intel-extended
Compile To Intel-Extended Rebuild All
Find And Copy Source • Go to program directory • Locate file in Debug/Exe • Copy the generated file
Find And Copy Source Go to cygwin home dir C:\Program Files\UCB\cygwin\home\”username” Create a new dir
Find And Copy Source Copy the source file into the created dir
Load By BSL Open cygwin
Load By BSL Change dir to the created dir
Load By BSL Plug Taroko to USB port Check the com port
Load By BSL Execute the following command: $ msp430-bsl --telosb -c “comport – 1” -r -e -I -p “source file name”
Load By BSL Load program to Taroko