This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5659: Jumping of MSP430 from BSL (Boot Strap Loader) to Application section

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

  • Yousef,

    The watchdog timer is enabled at startup of the part. Understood that you are turning the watchdog timer off during CSTART, but the check for BSL invoke happens before CSTART is ran. This is because CSTART is only ran when starting an application and not in BSL. Since you are waiting in an infinite loop, you are most likely getting a Watchdog timeout.
  • Is there any document or application note which explains the booting sequence (How the code starts during power and how does it flow)of MSP430 . As per my understanding it executes the BSL (2kb ) code first and then it moves to the flash area . IS my understanding correct ?

    Thanks
    Yousuf
  • Also when the watch dog time out happens how is it getting into application code instead of restarting the BSL code again. ?
  • S Yousuf Imam said:
    Is there any document or application note which explains the booting sequence (How the code starts during power and how does it flow)of MSP430 . As per my understanding it executes the BSL (2kb ) code first and then it moves to the flash area . IS my understanding correct ?

    S Yousuf Imam said:
    Also when the watch dog time out happens how is it getting into application code instead of restarting the BSL code again. ?

    TI USB BSL for MSP430F5659 is open source, so you can see there all you want to know. After reset, if reset vector is empty (on address 0FFFEh is 0FFFFh value) or PUR button is pressed, device will enter to BSL mode, if not application (address on reset vector) will be started. 

**Attention** This is a public forum