Part Number: MSP430F5659
We have modified the BSL invoke sequence of existing Ti provided custom BSL code for MSP430F5659 . There is an infinite while loop in BSL section which checks for invoke sequence of the BSL.
But even if the BSL entry sequence is not performed the BSL jumps into Application section. In cstartup.s43 and api.c watchdog is disabled. In one of the forum(http://processors.wiki.ti.com/index.php/MSP430_FAQ) we found the statement as follows : "Per default watchdog timer on all MSP430 is set to active after startup" what does this statement mean ? Since watchdog is already disabled in the cstartup and all other files of Custom BSL code provided by Ti.
We have placed this loop to check whether USB is connected or not prior jumping to REQUEST_BSL .
Label1: BIT.W #USBBGVBV,&USBPWRCTL
jnz P
jz Label1