Readme

Example Summary

This example demonstrates an application request to reset the device and jump to the ROM bootloader (BSL).

Peripherals & Pin Assignments

Peripheral Pin Function
GPIOA PA14 Standard Input with internal pull-up
GPIOA PA27 Standard Output
GPIOA PA13 Standard Output
SYSCTL
UART0 PA22 RX Pin
UART0 PA23 TX Pin
EVENT
DEBUGSS PA20 Debug Clock
DEBUGSS PA19 Debug Data In Out

BoosterPacks, Board Resources & Jumper Settings

Visit LP_MSPM0L1306 for LaunchPad information, including user guide and hardware files.

Pin Peripheral Function LaunchPad Pin LaunchPad Settings
PA14 GPIOA PA14 N/A
  • PA14 is connected to S2 button to GND with no external pull resistor
    • Press S2 button to connect pin to GND
    • Don’t use S2 button if not needed by application
PA27 GPIOA PA27 J4_37
  • PA27 can be connected to LED2 Blue
    • J13 ON Connect to LED2 Blue
    • J13 OFF Disconnect from LED2 Blue
PA13 GPIOA PA13 J4_39
  • PA13 can be connected to LED2 Green
    • J3 ON Connect to LED2 Green
    • J3 OFF Disconnect from LED2 Green
PA22 UART0 RX J1_8
  • PA22 can be connected to photodiode D1
    • J6 OFF Disconnect from photodiode D1
PA23 UART0 TX J2_12 N/A
PA20 DEBUGSS SWCLK J2_13
  • PA20 is used by SWD during debugging
    • J101 15:16 ON Connect to XDS-110 SWCLK while debugging
    • J101 15:16 OFF Disconnect from XDS-110 SWCLK if using pin in application
PA19 DEBUGSS SWDIO J2_17
  • PA19 is used by SWD during debugging
    • J101 13:14 ON Connect to XDS-110 SWDIO while debugging
    • J101 13:14 OFF Disconnect from XDS-110 SWDIO if using pin in application

Device Migration Recommendations

This project was developed for a superset device included in the LP_MSPM0L1306 LaunchPad. Please visit the CCS User’s Guide for information about migrating to other MSPM0 devices.

Low-Power Recommendations

TI recommends to terminate unused pins by setting the corresponding functions to GPIO and configure the pins to output low or input with internal pullup/pulldown resistor.

SysConfig allows developers to easily configure unused pins by selecting BoardConfigure Unused Pins.

For more information about jumper configuration to achieve low-power using the MSPM0 LaunchPad, please visit the LP-MSPM0L1306 User’s Guide.

Example Usage

Connect a proper BSL Host to the device. Download interface plugin or secondary BSL if used and then download this demo into the device. (It will not erase the interface plugin or secondary BSL code due to they are static write protected)

The example will begin toggling LED2.Blue while waiting for the user to press the S2 button or send 0x22 from host trigger BSL.

When S2 is pressed or 0x22 received, the application will clear LED2.Blue and light LED2.Green for one second to indicate that the device is about to reset. After one second, the device will reset with BOOTLOADERENTRY reset level. This will run the bootcode, which will check if there is a request from the application, and then invoke the BSL. At this point, both LED2.Blue and LED2.Green will be off. Once the BSL has been invoked, the user can send commands to the BSL through the external BSL Host.

To return to main, the user can trigger a POR/BOR on the device, or use the BSL Host to send the application start command to the device.