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 | ||
| SPI0 | PA6 | SPI SCLK (Clock) |
| SPI0 | PA5 | SPI PICO (Peripheral In, Controller Out) |
| SPI0 | PA4 | SPI POCI (Peripheral Out, Controller In) |
| SPI0 | PA8 | SPI CS0 (Chip Select 0) |
| 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 |
|
| PA27 | GPIOA | PA27 | J4_37 |
|
| PA13 | GPIOA | PA13 | J4_39 |
|
| PA6 | SPI0 | SCLK | J1_7 | N/A |
| PA5 | SPI0 | MOSI | J2_15 | N/A |
| PA4 | SPI0 | MISO | J2_14 | N/A |
| PA8 | SPI0 | CS0 | J1_4 |
|
| PA20 | DEBUGSS | SWCLK | J2_13 |
|
| PA19 | DEBUGSS | SWDIO | J2_17 |
|
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 Board→Configure 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.