When creating custom applications to load onto the MSP430 using MSPBoot, perform the following steps for best results:
- Develop the application without using MSPBoot.
- This includes creating a project, using the default linker file, and developing code as if a main memory bootloader will not be used.
- Once you have developed the application, transfer the code to one of the application templates.
- App_Simple: Does not share a communication interface with the bootloader
- App_Shared_Comm: Shows how to share a communication interface with the bootloader
- Modify the vector redirection file as described in Section 4.1.1.3.6.
- Edit the project properties to output a TI-TXT hex format file.
- Project Properties → MSP430 Hex Utility → Enable MSP430 Hex Utility
- Project Properties → MSP430 Hex Utility → Output Format Options → Output TI-TXT hex format (--ti_txt)
- Build the project.
- Generate a C file that can be loaded from a host processor using the TI-TXT file found in the project Debug folder (see Section 4.1.2.1).
- Load MSPBoot onto the target device.
- If the target device is not already executing bootloader code, the target device must be forced to enter the bootloader. This can be done by setting up the application code to jump to the bootloader when a certain command is received. See the examples provided for more information on how to accomplish this.
- Load the application C file onto the target device.
- See the example host projects included in the accompanying software package for more information.