There are four TODO items in TI_MSPBoot_Config.h that require user modification:
- Define the MCLK Frequency
- After modifying main.c other portions of the code need to know the MCLK frequency to operate properly.
- Setup Watchdog Interval
- In some applications, there may be a need to reset the device if the bootloader becomes unresponsive. The interval length is most dependent on the size of flash for the device being programmed. The more flash space, the longer the interval must be. For example, in the MSP430F5529 that contains 128KB of flash an interval greater than 6 seconds. If using the watchdog timer, the NDEBUG define also must be uncommented.
- Setup the Hardware Entry Condition
- Typically a bootloader offers a way to enter the code through a hardware condition. In MSPBoot, the user can decide based on the status of a pin being high or low.
- Uncomment Configuration Options
- There are many different configuration options that need to be selected based on the communication interface being used. You can also find more information on this in Table 3-1.
- When using I2C:
- Uncomment CONFIG_CI_PHYDL_START_CALLBACK and CONFIG_CI_PHYDL_I2C_SLAVE_ADDR
- When using UART:
- Uncomment CONFIG_CI_PHYDL_UART_BAUDRATE
- When using CC110x:
- Uncomment CONFIG_CI_PHYDL_CC1101_FREQUENCY