Sample applications are available for CCS, IAR, and Keil. To set up the sample applications on each IDE version, do as follows:
CCS
- Navigate to the workspace through Project → Import CCS Projects.
- Open C:\TI\Connectivity\CC256X BT\CC256x MSP432 Bluetopia SDK\4.2.x.x\Samples.
- Select the demonstration to load onto the device (for this example, the SPPDemo).
- Navigate to SPPDemo → CCS.
Note: The CCS SPPDemo project opens (see Figure 6-1).
- Open Project → Properties → General, and ensure that the “Manage the project’s target-configuration automatically” checkbox is set. See Figure 6-2.
- Ensure the MSP432 device is connected.
- Select the debug icon from the toolbar (see Figure 6-3).
Note: Let the IDE debug and load the software onto the device. This process may take 5 to 10 minutes. After the IDE loads the software, the it is ready to use.
To begin using the profile, do as follows:
- Click the play and resume icon on the CCS toolbar (see Figure 6-4).
IAR
To open the workspace, do as follows:
- Navigate to C:\TI\Connectivity\CC256X BT\CC256x MSP432 Bluetopia SDK\4.2.x.x\Samples.
- Select the demonstration to load onto the device (for this example, the SPPDemo).
- Navigate to SPPDemo → EWARM.
- Select SPPDemo.eww.
- Select either the Debug or Release configuration from the drop-down menu (in this example, select Debug, see Figure 6-5).
- Ensure that the MSP-EXP432P401R LaunchPad development kit is connected.
- Select Download and Debug from the Project tab or the play icon (see Figure 6-6).
Note: Let the IDE debug and load the software onto the device. This process may take 5 to 10 minutes.
- Click the red X icon in the IAR toolbar to stop debugging (see Figure 6-7).
To begin using the profile, do as follows:
- Click the Go icon in IAR (see Figure 6-8).
Keil
To open the workspace, do as follows:
- Navigate to C:\TI\Connectivity\CC256X BT\CC256x MSP432 Bluetopia SDK\4.2.x.x\Samples.
- Select the demonstration to load on the device (for this example, use SPPDemo).
- Navigate to SPPDemo → Keil in the samples list.
- Select SPPDemo.uvprojx.
Note: Keil µVision5 opens.
- Select either the Debug or Release configuration from the drop-down menu (in this example, select Debug, see Figure 6-9).
To build the code, do as follows:
- Navigate to Project → Build Target in the program menu (see Figure 6-10).
Note: After a few minutes, the build process finishes and should build a .axf file. Each time the configuration is changed, a new .axf file must be built.
- Choose from the following two options.
- For Debug Mode Only, do as follows:
- Select Start/Stop Debug Session to start loading the profile on the MSP432 device (see Figure 6-11).
Note: The debug session finishes in a few minutes.
- Stop the debugging session from the Debug menu.
Note: The profile loads on the MSP-EXP432P401R LaunchPad development kit.
- Unplug the device.
- Plug in the device.
- For Release and Debug Modes:
- Press the LOAD icon to start loading the profile on the MSP432 device (see Figure 6-12).
Note: The profile finishes in a few minutes. The profile loads on the MSP-EXP432P401R LaunchPad development kit.
- Unplug the device.
- Plug in the device.