Texas Instruments MSP432P401R, MSP-EXP432P401R User Manual

User's Guide
SLAU597A–March 2015–Revised July 2015
MSP432P401R LaunchPad™ Development Kit
(MSP‑‑EXP432P401R)
The MSPEXP432P401R LaunchPad™ is an easy-to-use evaluation module (EVM) for the
MSP432P401R microcontroller. It contains everything needed to start developing on the MSP432 Low-
Power + Performance ARM®32-bit Cortex®-M4F microcontroller (MCU), including on-board emulation for programming, debugging, and energy measurements. The MSP432P401R device supports low-power applications requiring increased CPU speed, memory, analog, and 32-bit performance.
LaunchPad, BoosterPack, Code Composer Studio, EnergyTrace, SimpleLink, E2E are trademarks of Texas Instruments. ARM, Cortex are registered trademarks of ARM Ltd. IAR Embedded Workbench is a trademark of IAR Systems. All other trademarks are the property of their respective owners.
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
Figure 1. MSP‑‑EXP432P401R LaunchPad
1
Copyright © 2015, Texas Instruments Incorporated
www.ti.com
Contents
1 Getting Started............................................................................................................... 3
2 Hardware...................................................................................................................... 5
3 Software Examples ........................................................................................................ 17
4 Resources................................................................................................................... 24
5 FAQ .......................................................................................................................... 28
6 Schematics.................................................................................................................. 32
List of Figures
1 MSPEXP432P401R LaunchPad.......................................................................................... 1
2 EVM Overview ............................................................................................................... 5
3 Block Diagram................................................................................................................ 5
4 MSP432P401RIPZ Pinout.................................................................................................. 6
5 XDS110-ET Emulator ....................................................................................................... 7
6 XDS110-ET Isolation Block................................................................................................. 8
7 Application Backchannel UART in Device Manager .................................................................... 9
8 EnergyTrace Technology Preferences .................................................................................. 11
9 EnergyTrace Windows..................................................................................................... 12
10 MSPEXP432P401R Power Block Diagram............................................................................ 13
11 LaunchPad to BoosterPack Connector Pinout ......................................................................... 16
12 Out-of-Box GUI Running Locally......................................................................................... 18
13 Out-of-Box GUI Running From TI Cloud Tools......................................................................... 19
14 Backend Block Diagram of CC3100BOOST MQTT-Twitter LED Control Demo................................... 21
15 Importing and Converting an Image With MSP Image Reformer.................................................... 23
16 Using TI Resource Explorer to Browse MSPEXP432P401R in MSPWare........................................ 26
17 SWD Mode Settings ....................................................................................................... 28
18 Target Configurations...................................................................................................... 28
19 Launch Selected Configuration........................................................................................... 29
20 Show All Cores ............................................................................................................. 29
21 Connect Target ............................................................................................................. 30
22 MSP432_Factory_Reset Script........................................................................................... 30
23 Schematics (1 of 7) ........................................................................................................ 32
24 Schematics (2 of 7) ........................................................................................................ 33
25 Schematics (3 of 7) ........................................................................................................ 34
26 Schematics (4 of 7) ........................................................................................................ 35
27 Schematics (5 of 7) ........................................................................................................ 36
28 Schematics (6 of 7) ........................................................................................................ 37
29 Schematics (7 of 7) ........................................................................................................ 38
1 Isolation Block Connections................................................................................................ 7
2 Default Clock Operation................................................................................................... 14
3 Hardware Change Log..................................................................................................... 17
4 Software Examples ........................................................................................................ 17
5 IDE Minimum Requirements for MSPEXP432P401R ................................................................ 17
6 Source File and Folders................................................................................................... 20
7 How MSP Device Documentation is Organized........................................................................ 27
2
MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R) SLAU597A–March 2015–Revised July 2015
List of Tables
Copyright © 2015, Texas Instruments Incorporated
Submit Documentation Feedback
www.ti.com
1 Getting Started
1.1 Introduction
The MSPEXP432P401R LaunchPad is an easy-to-use evaluation module (EVM) for the MSP432P401R
microcontroller. It contains everything needed to start developing on the MSP432 Low-Power +
Performance ARM 32-bit Cortex-M4F microcontroller (MCU), including on-board emulation for programming, debugging, and energy measurements. The MSP432P401R device supports low-power applications that require increased CPU speed, memory, analog, and 32-bit performance.
Rapid prototyping is simplified by access to the 40-pin headers and a wide variety of BoosterPack™ plug­in modules that enable technologies such as wireless connectivity, graphical displays, environmental sensing, and many more. Free software development tools are also available such as TI's Eclipse-based
Code Composer Studio™ (CCS) IDE, IAR Embedded Workbench™ IDE, and Keil µVision IDE. Code
Composer (CCS) supports EnergyTrace™ technology when paired with the MSP432P401R LaunchPad. More information about the LaunchPad, the supported BoosterPacks, and the available resources can be found at TI's LaunchPad portal. To get started quickly, and find available resources in MSPWare, visit the
TI Cloud Development Environment.
1.2 Key Features
Low-power ARM Cortex-M4F MSP432P401R
40-pin LaunchPad standard that leverages the BoosterPack ecosystem
XDS110-ET, an open-source onboard debugger featuring EnergyTrace+ technology and application UART
Two buttons and two LEDs for user interaction
Backchannel UART through USB to PC
Getting Started
1.3 What's Included
1.3.1 Kit Contents
One MSPEXP432P401R LaunchPad Evaluation Kit
One Micro USB cable
One Quick Start Guide
1.3.2 Software Examples (Section 3)
Out-of-Box Software Example
CC3100BOOST MQTT-Twitter LED Control Example
BOOSTXL-K350QVG-S1 Graphics Library Example
430BOOST-SHARP96 Graphics Library Example
1.4 First Steps: Out-of-Box Experience
An easy way to get familiar with the EVM is by using its preprogrammed out-of-box code. It demonstrates some key features of the LaunchPad from a user level, showing how to use the pushbutton switches together with onboard LEDs and basic serial communication with a computer.
A more detailed explanation of the out-of-box demo can be found in Section 3.
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
3
Copyright © 2015, Texas Instruments Incorporated
Getting Started
1.5 Next Steps: Looking Into the Provided Code
It is now time to start exploring more features of the EVM!
www.ti.com/beginMSP432launchpad
To get started, you will need an integrated development environment (IDE) to explore and start editing the code examples. Refer to Section 4 for more information on IDEs and where to download them.
The out-of-box source code and more code examples can be downloaded from the MSP-EXP432P401R
tool folder. Find what code examples are available and more details about each example in Section 3. All
code is licensed under BSD, and TI encourages reuse and modifications to fit specific needs.
www.ti.com
4
MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R) SLAU597A–March 2015–Revised July 2015
Copyright © 2015, Texas Instruments Incorporated
Submit Documentation Feedback
Target Device
MSP432P401R
Crystal
48 MHz
Micro‐B
USB
EnergyTrace+
Current
Measure HW
LDO
5 V, 3.3 V
ESD
Protection
Power Switch
Debug
MCU
LED
Red, Green
Power, UART, SWD to Target
User Interface
Buttons and LEDs
40‐pin LaunchPad standard headers
www.ti.com
2 Hardware
Figure 2 shows an overview of the EVM hardware.
Hardware
2.1 Block Diagram
Figure 3 shows the block diagram.
Figure 2. EVM Overview
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
Figure 3. Block Diagram
5
Copyright © 2015, Texas Instruments Incorporated
1P10.1/UCB3CLK
2P10.2/UCB3SIMO/UCB3SDA
3P10.3/UCB3SOMI/UCB3SCL
4P1.0/UCA0STE
5P1.1/UCA0CLK
6P1.2/UCA0RXD/UCA0SOMI
7P1.3/UCA0TXD/UCA0SIMO
8P1.4/UCB0STE
9P1.5/UCB0CLK
10P1.6/UCB0SIMO/UCB0SDA
11P1.7/UCB0SOMI/UCB0SCL
12VCORE
13DVCC1
14VSW
15DVSS1
16P2.0/PM_UCA1STE
17P2.1/PM_UCA1CLK
18P2.2/PM_UCA1RXD/PM_UCA1SOMI
19P2.3/PM_UCA1TXD/PM_UCA1SIMO
20P2.4/PM_TA0.1
21P2.5/PM_TA0.2
22P2.6/PM_TA0.3
23P2.7/PM_TA0.4
24P10.4/TA3.0/C0.7
25P10.5/TA3.1/C0.6
26
P7.4/PM_TA1.4/C0.527P7.5/PM_TA1.3/C0.428P7.6/PM_TA1.2/C0.329P7.7/PM_TA1.1/C0.2
30
P8.0/UCB3STE/TA1.0/C0.1
31
P8.1/UCB3CLK/TA2.0/C0.0
32
P3.0/PM_UCA2STE
33
P3.1/PM_UCA2CLK
34
P3.2/PM_UCA2RXD/PM_UCA2SOMI
35
P3.3/PM_UCA2TXD/PM_UCA2SIMO
36
P3.4/PM_UCB2STE
37
P3.5/PM_UCB2CLK
38
P3.6/PM_UCB2SIMO/PM_UCB2SDA
39
P3.7/PM_UCB2SOMI/PM_UCB2SCL
40
AVSS3
41
PJ.0/LFXIN
42
PJ.1/LFXOUT
43
AVSS1
44
DCOR
45
AVCC1
46
P8.2/TA3.2/A23
47
P8.3/TA3CLK/A22
48
P8.4/A2149P8.5/A2050P8.6/A19
51 P8.7/A18
52 P9.0/A17
53 P9.1/A16
54 P6.0/A15
55 P6.1/A14
56 P4.0/A13
57 P4.1/A12
58 P4.2/ACLK/TA2CLK/A11
59 P4.3/MCLK/RTCCLK/A10
60 P4.4/HSMCLK/SVMHOUT/A9
61 P4.5/A8
62 P4.6/A7
63 P4.7/A6
64 P5.0/A5
65 P5.1/A4
66 P5.2/A3
67 P5.3/A2
68 P5.4/A1
69 P5.5/A0
70 P5.6/TA2.1/VREF+/VeREF+/C1.7
71 P5.7/TA2.2/VREF-/VeREF-/C1.6
72 DVSS2
73 DVCC2
74 P9.2/TA3.3
75 P9.3/TA3.4
76
P6.2/UCB1STE/C1.5
77
P6.3/UCB1CLK/C1.4
78
P6.4/UCB1SIMO/UCB1SDA/C1.3
79
P6.5/UCB1SOMI/UCB1SCL/C1.2
80
P6.6/TA2.3/UCB3SIMO/UCB3SDA/C1.1
81
P6.7/TA2.4/UCB3SOMI/UCB3SCL/C1.0
82
DVSS3
83
RSTn/NMI
84
AVSS2
85
PJ.2/HFXOUT
86
PJ.3/HFXIN
87
AVCC2
88
P7.0/PM_SMCLK/PM_DMAE0
89
P7.1/PM_C0OUT/PM_TA0CLK
90
P7.2/PM_C1OUT/PM_TA1CLK
91
P7.3/PM_TA0.0
92
PJ.4/TDI/ADC14CLK
93
PJ.5/TDO/SWO
94
SWDIOTMS
95
SWCLKTCK
96
P9.4/UCA3STE
97
P9.5/UCA3CLK
98
P9.6/UCA3RXD/UCA3SOMI
99
P9.7/UCA3TXD/UCA3SIMO
100
P10.0/UCB3STE
Hardware
2.2 MSP432P401R
The MSP432P401R is the first MSP432 family device featuring low-power performance with an ARM Cortex-M4F core. Device features include:
Low-power ARM Cortex-M4F MSP432P401R
Up to 48-MHz system clock
256KB flash memory, 64KB SRAM, and 32KB ROM with MSPWare libraries
Four 16-bit timers with capture/compare/PWM, two 32-bit timers, and RTC
Up to eight serial communication channels (I2C, SPI, UART, and IrDA)
Analog: 14-bit SAR ADC, capacitive touch, comparator
Digital: AES256, CRC, uDMA
www.ti.com
6
MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R) SLAU597A–March 2015–Revised July 2015
Figure 4. MSP432P401RIPZ Pinout
Copyright © 2015, Texas Instruments Incorporated
Submit Documentation Feedback
www.ti.com
2.3 XDS110-ET Onboard Emulator
To keep development easy and cost effective, TI's LaunchPad evaluation kits integrate an onboard emulator, which eliminates the need for expensive programmers. The MSPEXP432P401R has the XDS110-ET emulator, which is a simple low-cost debugger that supports nearly all TI ARM device derivatives.
Hardware
The XDS110-ET hardware can be found in the schematics in Section 6 and in the MSPEXP432P401R
Hardware Design Files.
2.3.1 XDS110-ET Isolation Block
The isolation block is comprised of switch S101 and the accompanying jumpers next the switch. The isolation block allows the user to connect or disconnect signals that cross from the XDS110-ET
domain into the MSP432P401R target domain. This crossing is shown by the dotted line across the LaunchPad. No other signals cross this domain, so the XDS110-ET can be decoupled from the MSP432P401R target side. This includes XDS110-ET Serial Wire Debug signals, application UART signals, and 3.3-V and 5-V power.
Table 1 lists the signals that are controlled at the isolation block.
Signal Isolation Type
5V Jumper 5-V power rail, VBUS from USB
3V3 Jumper 3.3-V power rail, derived from VBUS by an LDO in the XDS110-ET domain
RTS >> Jumper* this to indicate whether it is ready to receive data from the host PC. The arrows
CTS << Jumper* the emulator) uses this to indicate whether it is ready to receive data. The arrows
RXD << Jumper
TXD >> Jumper
RST Switch S101 MCU RST signal (active low)
TCK_SWCLK Switch S101 Serial wire clock input (SWCLK) / JTAG clock input (TCK)
(1)
Jumper* corresponds to signals without a jumper placed by default.
(2)
Switch* corresponds to signals that are controlled by S101, but not through IC111.
Figure 5. XDS110-ET Emulator
Table 1. Isolation Block Connections
(1)(2)
Backchannel UART: Ready-To-Send, for hardware flow control. The target can use indicate the direction of the signal.
Backchannel UART: Clear-To-Send, for hardware flow control. The host PC (through indicate the direction of the signal.
Backchannel UART: The target MCU receives data through this signal. The arrows indicate the direction of the signal.
Backchannel UART: The target MCU sends data through this signal. The arrows indicate the direction of the signal.
Description
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
7
Copyright © 2015, Texas Instruments Incorporated
XDS110-ET
Emulator MCU
Isolation Block
JTAG and SWD
Application UART
3.3V Power
5V Power
MSP432P401R
Target MCU
XDS110-ETMSP432 Target
USB Connector
in out
LDO
BoosterPack Header
BoosterPack Header
USB
EnergyTrace
S101
eUSCI_A0
Hardware
Reasons to open these connections:
To remove any and all influence from the XDS110-ET emulator for high accuracy target power
To control 3-V and 5-V power flow between the XDS110-ET and target domains
To expose the target MCU pins for other use than onboard debugging and application UART
To expose the UART interface of the XDS110-ET so that it can be used for devices other than the
Table 1. Isolation Block Connections (continued)
Signal Isolation Type
TMS_SWDIO Switch S101 Serial wire data input/output (SWDIO) / JTAG test mode select (TMS)
TDO_SWO Switch S101 Serial wire trace output (SWO) / JTAG trace output (TWO) (Also PJ.5)
TDI Switch* S101 JTAG test data input (Also PJ.4)
(1)(2)
Description
measurements
communication
onboard MCU.
www.ti.com
2.3.2 Application (or "Backchannel") UART
The XDS110-ET provides a "backchannel" UART-over-USB connection with the host, which can be very useful during debugging and for easy communication with a PC. The provided UART supports hardware
flow control (RTS and CTS); although by default these signals are not connected to the target.
8
MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R) SLAU597A–March 2015–Revised July 2015
Figure 6. XDS110-ET Isolation Block
Copyright © 2015, Texas Instruments Incorporated
Submit Documentation Feedback
www.ti.com
The backchannel UART allows communication with the USB host that is not part of the target application's main functionality. This is very useful during development, and also provides a communication channel to the PC host side. This can be used to create GUIs and other programs on the PC that communicate with the LaunchPad.
The pathway of the backchannel UART is shown in Figure 7. The backchannel UART eUSCI_A0 is independent of the UART on the 40-pin BoosterPack connector eUSCI_A2.
On the host side, a virtual COM port for the application backchannel UART is generated when the LaunchPad enumerates on the host. You can use any PC application that interfaces with COM ports, including terminal applications like Hyperterminal or Docklight, to open this port and communicate with the target application. You need to identify the COM port for the backchannel. On Windows PCs, Device Manager can assist.
Hardware
Figure 7. Application Backchannel UART in Device Manager
The backchannel UART is the XDS110 Class Application/User UART port. In this case, Figure 7 shows COM156, but this port can vary from one host PC to the next. After you identify the correct COM port, configure it in your host application according to its documentation. You can then open the port and begin communication to it from the host.
The XDS110-ET has a configurable baud rate; therefore, it is important that the PC application configures the baud rate to be the same as what is configured on the eUSCI_A0 backchannel UART.
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
9
Copyright © 2015, Texas Instruments Incorporated
Hardware
The XDS110-ET also supports hardware flow control, if desired. Hardware flow control (CTS and RTS handshaking) allows the target MSP432P401R and the emulator to tell each other to wait before sending more data. At low baud rates and with simple target applications, flow control may not be necessary. Applications with higher baud rates and more interrupts to service have a higher likelihood that the will not be able to read the eUSCI_A0 buffer in time, before the next byte arrives. If this happens, the eUSCI_A0 will report an overrun error.
2.3.3 Using an External Debugger Instead of the Onboard XDS110-ET
Many users have a specific debugger that they prefer to use, and may want to bypass the XDS110-ET to program the target MCU. This is enabled by switch S101 and connector J102. Using an external debugger is simple, and full JTAG access is provided through J102.
1. Switch S101 to the external debug position (to the right)
2. Plug any ARM debugger into J102 (a) J102 follows the ARM Cortex Debug Connector standard outlined here (b) Note that J102 is not keyed, ensure proper orientation of the debug cable, pin 1 of J102 is on the
bottom right side
3. Plug USB power into the LaunchPad, or power it externally (a) Ensure that the jumper across 3V3 is connected if using USB power (b) External debuggers do not provide power, the VCC pin is a power sense pin (c) More details on powering the LaunchPad can be found in Section 2.4
www.ti.com
2.3.4 Using the XDS110-ET Emulator With a Different Target
The XDS110-ET emulator on the LaunchPad can interface to most ARM derivative devices, not just the on-board MSP432P401R target device.
This is not a common use case, but for users who want this functionality, there is a way to enable it. Connector J103 was added to expose all the necessary programming and power signals. J103 is a 50 mil spaced 7-pin header. By default it is not populated, so the user will have to populate a connector or directly solder in wires.
When using the XDS110-ET with a different target, the jumpers in the isolation block should be removed, and switch S101 moved to the external debug position. This will disconnect the XDS110-ET from the MSP432P401R target and enable debug of an external device. Because only the SWD signals are exposed, the user needs to set the debugger settings to SWD (without SWO) in the IDE. See the IDE specific MSP432 user's guides for more details on this setting.
To debug other external devices, there are many options in the ARM debugging ecosystem including the XDS100v2/3 and XDS200 from Texas Instruments. There are many other options including IAR I-jet, Keil ULINK, and Segger J-Link.
2.3.5 EnergyTrace+ Technology
EnergyTrace™ technology is an energy-based code analysis tool that measures and displays the application's energy profile and helps to optimize it for ultra-low power consumption.
MSP432 devices with built-in EnergyTrace+[CPU State] (or in short EnergyTrace+) technology allow real­time monitoring of internal device states while user program code executes.
EnergyTrace+ technology is supported on the LaunchPad MSP432P401R device + XDS110-ET debugger. EnergyTrace technology is available as part of TI's Code Composer Studio IDE. During application debug, additional windows are available for EnergyTrace technology.
To enable EnergyTrace technology, go to:
Window > Preferences > Code Composer Studio > Advanced Tools > EnergyTrace™ Technology
Check the Enable Auto-Launch on target connect box
10
MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R) SLAU597A–March 2015–Revised July 2015
Copyright © 2015, Texas Instruments Incorporated
Submit Documentation Feedback
www.ti.com
Hardware
Figure 8. EnergyTrace Technology Preferences
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
11
Copyright © 2015, Texas Instruments Incorporated
Hardware
Starting a debug session will now open EnergyTrace technology windows. These windows show energy, power, profile, and states to give the user a full view of the energy profile of their application.
www.ti.com
Figure 9. EnergyTrace Windows
This data allows the user to see exactly where and how energy is consumed in their application. Optimizations for energy can be quickly made for the lowest power application possible.
On the LaunchPad, EnergyTrace technology measures the current that enters the target side of the LaunchPad. This includes all BoosterPacks plugged in, and anything else connected to the 3V3 power rail. For more information about powering the LaunchPad, see Section 2.4.
For more information about EnergyTrace technology, see http://www.ti.com/tool/energytrace. For more details and questions about setting up and using EnergyTrace technology with the
MSP432P401R, see the Code Composer Studio 6 User's Guide for MSP432.
12
MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R) SLAU597A–March 2015–Revised July 2015
Copyright © 2015, Texas Instruments Incorporated
Submit Documentation Feedback
www.ti.com
2.4 Power
The board was designed to accommodate various powering methods, including through the on-board XDS110-ET and from an external source or BoosterPack.
Hardware
Figure 10. MSP‑‑EXP432P401R Power Block Diagram
2.4.1 XDS110-ET USB Power
The most common power-supply scenario is from USB through the XDS110-ET debugger. This provides 5-V power from the USB and also regulates this power rail to 3.3 V for XDS110-ET operation and 3.3 V to the target side of the LaunchPad. Power from the XDS110-ET is controlled by the isolation block 3V3 jumper, ensure this jumper is connected for power to be provided to the target MCU side.
Under normal operation, the LDO on the XDS110-ET can supply up to 500 mA of current to the target side including any BoosterPacks plugged in. However, when debugging and using the EnergyTrace technology tool, this current is limited to 75 mA total. Be aware of this current limitation when using EnergyTrace technology.
2.4.2 BoosterPack and External Power Supply
Header J6 is present on the board to supply external power directly. It is important to comply with the device voltage operation specifications when supplying external power. The MSP432P401R has an operating range of 1.62 V to 3.7 V. More information can be found in the MSP432P401xx Mixed-Signal
Microcontroller data sheet .
SLAU597A–March 2015–Revised July 2015 MSP432P401R LaunchPad™ Development Kit (MSP‑EXP432P401R)
Submit Documentation Feedback
13
Copyright © 2015, Texas Instruments Incorporated
Loading...
+ 28 hidden pages