There are three TODO items in the MSPBoot main.c that require user modification:
- Define a Debug Interface
- For example, this could be an LED that turns on when in the bootloader, or a GPIO that enters a specific state
- Initialize the Clock System
- By default, the examples includes with MSPBoot setup the system frequency to 8 MHz. MSPBoot can operate at 8MHz, 4MHz, or 1 MHz. Refer to the examples provided in the accompanying software package and the device specific user's guide for more details.
- Initialize Hardware
- When the device enters the bootloader code, peripheral registers that are not initialized to their default values can affect operation. For example, a timer that was setup by the application to interrupt every second would affect MSPBoot operation. For this reason, TI highly recommends initializing all peripheral registers to their default values. If the bootloader was entered after a BOR, all peripheral registers are already set to their default values.