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.

MSP430F6659: user application calls USB BSL

Other Parts Discussed in Thread: MSP430F6659

Nice to meet you.

We are developing the F/W update via USB interface of MSP430F6659 MCU.

In the TI Application Report (slaa452c), in the page-2, Table 1. Methods By Which the USB BSL Can Be Invoked, it said:

>>  Software


>>     If the user application transfers control of execution to the BSL Firmware upgrades in the field,

>> initiated by the end user. (jump to 0x1000), the BSL is invoked.

Could you do us a favor to send us the sample codes of user application to invoke USB BSL?

Thank you.

 

 

  • If your application is in assembly, you can simply use bra 0x1000

    If your application is in c, you need to use dirty tricks such as ((void (*)())0x1000)(); 

  • Thanks for your kind support.

    The user application (F/W) of MSP430F6659 is developed with the SYS/BIOS, which is the Kernel component of TI-RTOS.

    Before the user application (F/W) invokes the TI USB BSL by the sample codes above, should we do any

    pre-process actions in the codes of user application (F/W)?

    For example:

    1) Disable all the interrupts of MCU to to prevent from the interfere of the interrupt service routines

    2) Enter the LPM mode

    3) and etc.

     

    Thank you.

  • Definitely disable interrupts. And not just the GIE bit. Make sure any peripherals you have been using have their internal IE bits cleared. The USB BSL assumes the MSP430 is in its reset state when starting up so you do not want some of your own leftover interrupts firing when the BSL re-enables GIE.

    As to LPM, I can't recall anything specific that I had to do other than returning it to whatever LPM setting that is default on reset.

  • Hi Hank,

    All the suggestions above are accurate. You can find a code example in SLAU319:

    Regards,

    Luis R

  • Thanks for your kind help.

    We will follow your instructions to invoke the USB BSL.

    Please do us a favor to close this case.

     

**Attention** This is a public forum