Other Parts Discussed in Thread: MSP-FET
Hi,
I've been having problems lately trying to flash my program onto the MSP430F5249 using BSL Scripter over UART.
I have a bash script that creates the BSL entry sequence and then invokes the BSL scripter. Here's my code for the entry sequence:
function generateBSLEntrySequence { #Initially set RST and TST to Low setLow $TST_PIN setLow $RST_PIN #Toggle TST sleep $OnePeriod setHigh $TST_PIN sleep $OnePeriod setLow $TST_PIN #Set TST to high sleep $OnePeriod setHigh $TST_PIN #Set RST high sleep $HalfPeriod setHigh $RST_PIN #Set TST low sleep $HalfPeriod setLow $TST_PIN }
Here TST_PIN and RST_PIN are gpios that have been exported. OnePeriod=0.1 and HalfPeriod=0.05
Since this is in bash the periods are in units of seconds. My concern is whether the values are too big.
The BSL User Guide says the first high level of TEST pin must be at least tSBW, En. Looking at the datasheet tSBW, En has max value of 1µs.
Does that mean the TEST pin has be high for at least 1µs or a maximum of 1µs?
This script has worked previously but something is going wrong as the program doesn't work as expected and no changes have been made.
I am doing a reset of the micro-controller after running BSL.
Can someone help? Is there anything wrong with my script?