OSDN Git Service

V205
[fast-forth/master.git] / config / msp430 / prog
1 #!/bin/bash
2 device=$1
3 if   [ ${device:0:16}  == "MSP_EXP430FR5739" ]; then
4     device=MSP430FR5739 
5 elif [ ${device:0:16}  == "MSP_EXP430FR5969" ]; then 
6     device=MSP430FR5969
7 elif [ ${device:0:16}  == "MSP_EXP430FR5994" ]; then 
8     device=MSP430FR5994
9 elif [ ${device:0:16}  == "MSP_EXP430FR6989" ]; then 
10     device=MSP430FR6989
11 elif [ ${device:0:16}  == "MSP_EXP430FR4133" ]; then 
12     device=MSP430FR4133
13 elif [ ${device:0:16}  == "CHIPSTICK_FR2433" ]; then 
14     device=MSP430FR2433
15 elif [ ${device:0:15}  == "MY_MSP430FR5738" ]; then  
16     device=MSP430FR5738
17 elif [ ${device:0:15}  == "MY_MSP430FR5948" ]; then  
18     device=MSP430FR5948
19 elif [c${device:0:7}   == "JMJ_BOX" ]; then          
20     device=MSP430FR5738
21 fi
22 echo $device 
23
24
25 $HOME/MSP430Flasher/MSP430Flasher -s -m SBW2 -n $device -v -w $1.txt  -z [RESET,VCC]
26 MSP430Flasher -s -m SBW2 -n $device -v -w $1.txt  -z [RESET,VCC]
27
28 #mspdebug  ezfet prog $1.txt
29 #mspdebug  --allow-fw-update tilib
30
31 #mspdebug  tilib  prog $device $1.txt
32 #mspdebug --fet-list tilib
33 #mspdebug --fet-list ezfet