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.

MSP430FR5989: Custom MSP430FRBoot in FOTA project

Part Number: MSP430FR5989

Hello experts, I have 2 questions that I would like to seek assistance with!! 
1) After I program and Relocate the memory for the output sections and redirecting vector tables in App1's linker file as instructed in the slaa721e documentation, When I debug App1 project by using the FET tool, the program does not run and go to the main() func?  But when i just relocate the reset vector's address back to 0xfffe the program can run and go to main(). I don't know if it's because the FET tool can't debug due to redirecting the vector table

2) Can I jump from the bootloader area to the App1 area like the example projects in slaa721e using the command?  (TI_MSPBoot_APPMGR_JUMPTOAPP()     {((void (*)()) _Appl_Reset_Vector) ();})

Thank you very much!

  • Hi Son,

    When MCU poer up, core will run Reset address function, thus RESET is a entry address.

    You can use this function to jump into another app.

    (TI_MSPBoot_APPMGR_JUMPTOAPP()     {((void (*)()) _Appl_Reset_Vector) ();})

    Thanks!

    Best Regards

    Johnson

  • Thanks! Thanks for providing the information!  I also learned more. When MCU reset, core will jump Entry point symbol stored in RESET VECTOR (0xFFFE)!!

    Now, I'm working on the Bootloader that is based on "slaa721 MSP430FRBoot - Main Memory Bootloader" and related project examples. 

    1) I see in the "TI_MSPBoot_MI_WriteByteDirect" function, we copy directly to interrupt table of App1 project (0xF790 - 0xF7FE) into interrupt table of Boot project (0XFF90-0XFFFC). Is this method right? when I use command "TI_MSPBoot_APPMGR_JUMPTOAPP()", can I jump from bootloader program to App1 program area.  ( when I have not copied the vector table, when I jump to App1, my PC Register gets stuck at address _App1_Reset_Vector).

    2) Right now, I have a problem changing data (copy) in the area from 0xff80 to 0xfffe of MSP430FR5989. How can I change data in this range, which register should I use to control?? Please guide me on solving this issue and suggest some helpful documents!! 

    Once again thank you very much! 

  • Hi Son,

    I think this document can help you: https://www.ti.com/lit/ug/slau840a/slau840a.pdf

    Thanks!

    Best Regards

    Johnson

  • Thank you very much for your help!
    I have solved the redirecting interrupt vector table and I can jump from Boot area to App area and vice versa.

    Best Regards

      Son

**Attention** This is a public forum