Texas Instruments Getting Started With EEMBC® ULPBench™ on MSP-EXP432P401R Getting Started Guide
Add to my manuals9 Pages
Texas Instruments Getting Started With EEMBC® ULPBench™ on MSP-EXP432P401R is your guide to getting started with the MSP432P401R microcontroller, which features 256KB of flash, 14-bit 1-MSPS ADC, timers, IP protection, AES256 module, comparators, and more. With up to 48-MHz CPU and floating point unit, this MSP is an excellent choice for high-performance, low-power applications. The MSP432P401R is also easy to use, with the included ULPBench firmware and EnergyMonitor software. This guide will help you get up and running quickly so you can start developing your own low-power applications.
advertisement
Application Report
SLAA667 – March 2015
Getting Started With EEMBC ULPBench™ on
MSP
‑‑EXP432P401R
Dung Dang ...............................................................................................................
MSP Applications
ABSTRACT
This is a getting started guide for obtaining the ULPMark™-CP score using the Embedded Microprocessor
Benchmark Consortium (EEMBC) ULPBench™ and EnergyMonitor with the MSP432P401R microcontroller (MCU). This document uses the MSP ‑EXP432P401R LaunchPad™ development kit as the target evaluation module (EVM) for performing the benchmark.
ULPBench is an EEMBC benchmark that provides an industry-standard method to measure the ultra-low-power capabilities of MCUs.
The ULPBench firmware can be downloaded from the EEMBC website .
3
4
5
1
2
6
Contents
1
2
3
4
The MSP ‑EXP432P401R LaunchPad Development Kit
Download ULPBench and Setting Up
................................................................
.....................................................................................
Modifications Required to Use EnergyMonitor
Programming ULPBench Firmware
...........................................................................
.......................................................................................
5 Execute ULPBench Test
....................................................................................................
6 References
...................................................................................................................
Appendix A Installing the USB Drivers
.........................................................................................
List of Figures
Default Configuration
........................................................................................................
External Programming Connection
........................................................................................
Onboard Programming Connection
.......................................................................................
Selecting Debugger
..........................................................................................................
MSP-EXP432P401R Connections for ULPBench Measurement
......................................................
EEMBC EnergyBench Monitor Software
.................................................................................
List of Tables
1 The MSP ‑‑EXP432P401R LaunchPad Development Kit
The ULPBench-ready MSP-EXP432P401R LaunchPad kit features the MSP432P401R microcontroller and onboard XDS110-ET emulator for programming and debugging. The MSP432P401R, TI's first 32-bit
Low-Power + Performance MCU, features:
• 256KB of flash, 14-bit 1-MSPS ADC, timers, IP protection, AES256 module, comparators, serial communication (SPI, UART, I 2 C), and more
• High performance with up to 48-MHz CPU and floating point unit
• Low-power active and LPM3 modes
– Active: <100 µA/MHz
– RAM retention with RTC: <1 µA
LaunchPad is a trademark of Texas Instruments.
ULPMark, ULPBench are trademarks of Embedded Microprocessor Benchmark Consortium.
IAR Embedded Workbench is a registered trademark of IAR Systems AB.
All other trademarks are the property of their respective owners.
SLAA667 – March 2015
Submit Documentation Feedback
Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
1
Download ULPBench and Setting Up
2 Download ULPBench and Setting Up
www.ti.com
ULPBench firmware can be downloaded from the EEMBC website . Create a new folder where the files can be extracted on your local computer. The MSP432 ULPBench project can be located at:
<EXTRACT ROOT FOLDER>\ulp_1.1.11\Platforms\TI-MSP432\ULP_StateMachine.eww
3 Modifications Required to Use EnergyMonitor
No physical hardware modification is required to use this EVM with EEMBC EnergyMonitor v1.0. For
ULPBench measurement, remove all jumpers from the LaunchPad and configure the JTAG switch as described in
, to program the device with the ULPBench firmware. Then, the JTAG and USB
cables must be disconnected to perform ULPBench measurements, as described in
.
4 Programming ULPBench Firmware
The MSP432P401R device must first be programmed with the ULPBench firmware. This LaunchPad has an onboard emulator that is used to program the device. The LaunchPad, by default out-of-the-box, is configured ready for programming.
For all ULPBench procedures, all jumpers can be unpopulated except for the LED1 jumper, which can be used during programming, debug, and verification but should be unpopulated before measurement.
Connect the Micro-USB from the EEMBC EnergyMonitor board to the PC. If this is the first time connecting this board, see
on installing the USB drivers.
4.1
Hardware Configuration
Figure 1. Default Configuration
2 Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
SLAA667 – March 2015
Submit Documentation Feedback
www.ti.com
Programming ULPBench Firmware
Option 1: Using an external debugger
1. Ensure all jumpers are removed except for LED1 used for ULPBench verification.
2. Set JTAG switch to the RIGHT position.
3. Supply power and ground to the 3V3 and GND pins, respectively.
4. Connect the JTAG header for the external bugger, orienting the 10-pin cable to the right of the board, pin 1 (usually the red line on the ribbon cable) should be at the bottom.
Figure 2. External Programming Connection
SLAA667 – March 2015
Submit Documentation Feedback
Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
3
Programming ULPBench Firmware
Option 2: Using the onboard debugger
1. Ensure all jumpers are removed except for LED1 used for ULPBench verification.
2. Set the JTAG switch to the LEFT position.
3. Supply power and ground to the 3V3 and GND pins, respectively.
4. Ensure the JTAG header for the external bugger is not connected to any cable.
www.ti.com
Figure 3. Onboard Programming Connection
4.2
Software Requirements
To install the ULPBench firmware, IAR Embedded Workbench ® for ARM v7.30 or newer is required.
Download and install the integrated development environment (IDE) from www.iar.com
.
4.2.1
IAR Embedded Workbench
1. Open the IAR ULP_StateMachine.eww workspace project.
2. Select the debugger. Click Project > Options > Debugger.
Note that the onboard debugger can be selected as CMSIS-DAP.
4 Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
SLAA667 – March 2015
Submit Documentation Feedback
www.ti.com
Programming ULPBench Firmware
Figure 4. Selecting Debugger
3. Click the Download and Debug button , which downloads the ULPBench firmware to the device.
4. Terminate the debug session by clicking Stop Debugging .
SLAA667 – March 2015
Submit Documentation Feedback
Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
5
Execute ULPBench Test
5 Execute ULPBench Test
www.ti.com
The EEMBC EnergyMonitor is used to source power to the target device and measure the energy consumed. The LaunchPad must be configured through several jumper configurations such that the
EnergyMonitor does not back-power the emulator circuit, which would skew the measurements.
5.1
Hardware Configurations
Remove all jumpers, disconnect the USB and JTAG cable, and set the JTAG switch to the RIGHT position. Perform this step only after the device has been programmed with the ULPBench firmware as described in
Figure 5. MSP-EXP432P401R Connections for ULPBench Measurement
6 Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
SLAA667 – March 2015
Submit Documentation Feedback
www.ti.com
Execute ULPBench Test
5.2
Software Tools
To measure the energy and obtain the ULPMark-CP score, open EnergyMonitor.exe software under the bin folder.
In
, showing the Configuration Options section, if you see a red light (and have completed the steps in
Appendix A ), close the EnergyMonitor graphical user interface (GUI) and restart it.
Push the Run ULPBench button. When the Accumulated Energy window displays a staircase line, the
ULPBench is started. You will also be able to see the energy consumption of the device in the History window and the Intermediate Results window.
The energy measurements would then run several times before reporting a score.
6
Figure 6. EEMBC EnergyBench Monitor Software
Once the test is completed, the final score will appear in the Benchmark Status window.
References
• EEMBC ULPMARK-CP http://www.eembc.org/ulpbench/
• MSP ‑EXP432P401R LaunchPad™ Development Kit User's Guide ( SLAU535 )
SLAA667 – March 2015
Submit Documentation Feedback
Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
7
Appendix A
SLAA667 – March 2015
Installing the USB Drivers
If this is the first time connecting the EnergyMonitor to the computer, the EnergyMonitor is an unrecognized USB device to that computer.
1. Click on Next and choose the option to manually locate USB drivers. The USB drivers are included in the ULPBench zip files: EEMBCmonitor_drivers.cat and EEMBCmonitor_drivers.inf.
2. If the message to locate drivers is not displayed, go to the Device Manager and locate the devices that are labeled EEMBC Application UART1 and EEMBC Energy Tool V1. Click on each to install the driver.
3. After starting the driver installation, Windows security displays a message that it cannot verify the publisher of this driver software. Click on Install this driver software anyway.
4. After Windows has successfully updated the driver software, close the update window.
8 Getting Started With EEMBC ULPBench™ on MSP ‑EXP432P401R
Copyright © 2015, Texas Instruments Incorporated
SLAA667 – March 2015
Submit Documentation Feedback
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily performed.
TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
Products
Audio
Amplifiers
Data Converters
DLP® Products
DSP
Clocks and Timers
Interface
Logic
Power Mgmt
Microcontrollers
RFID
OMAP Applications Processors
Wireless Connectivity www.ti.com/audio amplifier.ti.com
dataconverter.ti.com
www.dlp.com
dsp.ti.com
www.ti.com/clocks interface.ti.com
logic.ti.com
power.ti.com
microcontroller.ti.com
Applications
Automotive and Transportation
Communications and Telecom
Computers and Peripherals
Consumer Electronics
Energy and Lighting
Industrial
Medical
Security
Space, Avionics and Defense
Video and Imaging www.ti-rfid.com
www.ti.com/omap TI E2E Community www.ti.com/wirelessconnectivity www.ti.com/automotive www.ti.com/communications www.ti.com/computers www.ti.com/consumer-apps www.ti.com/energy www.ti.com/industrial www.ti.com/medical www.ti.com/security www.ti.com/space-avionics-defense www.ti.com/video e2e.ti.com
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2015, Texas Instruments Incorporated
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project