SLAA600E June 2013 – January 2024
MSPBoot was designed with low cost and a small footprint as top priorities; however, some applications require or can benefit from having a higher level of security and robustness. Based on the application requirements, different levels of customizations are available in the MSPBoot code, and they can be adjusted to particular needs. These options are either selected by adding the appropriate files or by enabling and disabling certain pre-processor definitions. Table 3-1 lists the options that can be configured in TI_MSPBoot_Config.h.
Value | Description | Effect on Code Size |
---|---|---|
NDEBUG | ||
Defined | ASSERT_H functions are ignored. Watchdog is enabled. | – |
Undefined | Used during debugging. ASSERT_H functions are checked. Watchdog is disabled. | Adds approximately 20 bytes |
CONFIG_MI_MEMORY_RANGE_CHECK | ||
Defined | The address being erased or programmed is validated to be within the Application area. | Adds approximately 44 bytes |
Undefined | Address being erased or programmed is not validated. Host must send correct address. | – |
CONFIG_APPMGR_APP_VALIDATE | ||
1 | Application is not validated | - |
2 | Application is validated by checking its CRC-CCITT. | Adds approximately 6 bytes |
CONFIG_CI_PHYDL_COMM_SHARED | ||
Defined | Communication Interface PHY-DL layer is shared with application. | Adds approximately 28 bytes |
Undefined | CI PHY-DL is not shared with application. | – |
CONFIG_CI_PHYDL_I2C_TIMEOUT | ||
Defined | Detect time-out in CI PHY-DL. | Adds approximately 48 to 62 bytes |
Undefined | CI PHY-DL does not detect time-out. | – |
CONFIG_CI_PHYDL_START_CALLBACK | ||
Defined | A callback function is called when Start is detected (required only for some protocols or Communication interfaces). | Adds approximately 12 bytes |
Undefined | Callback function is not called when Start is detected. | – |
CONFIG_CI_PHYDL_STOP_CALLBACK | ||
Defined | A callback function is called when Stop is detected (required only for some protocols or Communication interfaces). | Adds approximately 38 to 54 bytes |
Undefined | Callback function is not called when Stop is detected. | – |
CONFIG_CI_PHYDL_ERROR_CALLBACK | ||
Defined | A callback function is called when a time-out error an error is detected (only for some protocols or Communication interfaces). | Adds approximately 16 to 20 bytes |
Undefined | Callback function is not called when a time-out error is detected. | – |
CONFIG_CI_PHYDL_CC1101_FREQUENCY | ||
Defined | Defines the frequency of CC110x communication | - |
Undefined | - | - |
CONFIG_CI_PHYDL_UART_BAUDRATE | ||
Defined | Defines the baud rate of UART communication | - |
Undefined | - | - |
CONFIG_CI_PHYDL_I2C_SLAVE_ADDR | ||
Defined | Defines the address the MSP430 will respond to when using I2C communication | - |
Undefined | - | - |
Other customizations are selected by adding and using the appropriate files in the project. Table 3-2 lists the files that are interchangeable in the project.
CI PHY-DL | |
TI_MSPBoot_CI_PHYDL_USI_I2C_Slave.c | Use USI as I2 C slave |
TI_MSPBoot_CI_PHYDL_USCI_I2C_Slave_x2xx.c | Use USCI as I2 C slave on x2xx devices |
TI_MSPBoot_CI_PHYDL_USCI_I2C_slave.c | Use USCI as I2C slave |
TI_MSPBoot_CI_PHYDL_USI_I2C_slave.c | Use USI as I2C slave |
TI_MSPBoot_CI_PHYDL_eUSCI_I2C_slave.c | Use eUSCI as I2C slave |
TI_MSPBoot_CI_PHYDL_USCI_UART_x2xx.c | Use USCI as UART on x2xx devices |
TI_MSPBoot_CI_PHYDL_USCI_UART.c | Use USCI as UART |
TI_MSPBoot_CI_PHYDL_eUSCI_UART.c | Use eUSCI as UART |
TI_MSPBoot_CI_PHYDL_CC1101.c | Use CC110x |
MI | |
TI_MSPBoot_MI_Flash_20Bit.c | API used to program application flash in large memory model devices |
TI_MSPBoot_MI_FlashDualImg_20Bit.c | API that implements dual-image in flash in large memory model devices |
TI_MSPBoot_MI_Flash_16Bit.c | API used to program application flash in small memory model devices |
TI_MSPBoot_MI_FlashDualImg_16Bit.c | API that implements dual-image in flash in small memory model devices |
App Manager | |
TI_MSPBoot_AppMgr.c | Standard app manager |
TI_MSPBoot_AppMgrDualImg_20Bit.c | App manager that supports dual image in large memory model devices |
TI_MSPBoot_AppMgrDualImg_16Bit.c | App manager that supports dual image in small memory model devices |