SWRU497B August   2019  – December 2021 CC2564C

 

  1.   Trademarks
  2. 1Introduction
  3. 2Features
    1. 2.1 Classic Bluetooth Profiles Available
    2. 2.2 Bluetooth Low Energy Profiles Available
    3. 2.3 MFi Support
  4. 3Requirements
  5. 4Sample Application Overview
  6. 5Hardware Setup
    1. 5.1 Setting Up the Hardware
  7. 6Software Setup
    1. 6.1 Downloading and Installing
    2. 6.2 Building and Flashing the Bluetooth Code (MSP-EXP432P401R)
  8. 7Sample Applications
    1. 7.1 Classic Bluetooth Sample Applications
    2. 7.2 Classic Bluetooth + Bluetooth Low Energy Sample Applications
    3. 7.3 Bluetooth Low Energy Sample Applications
  9. 8Revision History

Building and Flashing the Bluetooth Code (MSP-EXP432P401R)

Sample applications are available for CCS, IAR, and Keil. To set up the sample applications on each IDE version, do as follows:

CCS

  1. Navigate to the workspace through Project → Import CCS Projects.
  2. Open C:\TI\Connectivity\CC256X BT\CC256x MSP432 Bluetopia SDK\4.2.x.x\Samples.
  3. Select the demonstration to load onto the device (for this example, the SPPDemo).
  4. Navigate to SPPDemoCCS.
    Note:

    The CCS SPPDemo project opens (see Figure 6-1).

    GUID-C8123E08-4086-42C3-937A-C5D0EFACF68B-low.pngFigure 6-1 CCS Project Folder
  5. Open ProjectPropertiesGeneral, and ensure that the “Manage the project’s target-configuration automatically” checkbox is set. See Figure 6-2.
    GUID-A4769D04-F45B-42B2-BCD4-1DAEAFC96DE2-low.jpgFigure 6-2 Project Properties / General
  6. Ensure the MSP432 device is connected.
  7. Select the debug icon from the toolbar (see Figure 6-3).
    GUID-4C3C8C57-6020-4BF8-95B9-47F91F92D77C-low.pngFigure 6-3 Debug Icon
    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:

  1. Click the play and resume icon on the CCS toolbar (see Figure 6-4).
    GUID-5708E60E-5F4E-4605-8DC4-028ACF35C0F7-low.pngFigure 6-4 Play and Resume Icon

IAR

To open the workspace, do as follows:

  1. Navigate to C:\TI\Connectivity\CC256X BT\CC256x MSP432 Bluetopia SDK\4.2.x.x\Samples.
  2. Select the demonstration to load onto the device (for this example, the SPPDemo).
  3. Navigate to SPPDemoEWARM.
  4. Select SPPDemo.eww.
    Note:

    The IAR IDE opens.

  5. Select either the Debug or Release configuration from the drop-down menu (in this example, select Debug, see Figure 6-5).
    GUID-B135F1C2-7391-43E0-8010-327ED72C6210-low.pngFigure 6-5 Debug Workspace
  6. Ensure that the MSP-EXP432P401R LaunchPad development kit is connected.
  7. Select Download and Debug from the Project tab or the play icon (see Figure 6-6).
    GUID-0CAFC4EA-10FE-4E5A-AC7E-AB94FF93C98A-low.pngFigure 6-6 Download and Debug
    Note:

    Let the IDE debug and load the software onto the device. This process may take 5 to 10 minutes.

  8. Click the red X icon in the IAR toolbar to stop debugging (see Figure 6-7).
    GUID-A7E18220-F755-4C25-918E-EE039656D15C-low.pngFigure 6-7 Red X

To begin using the profile, do as follows:

  1. Click the Go icon in IAR (see Figure 6-8).
    GUID-A2F5EA46-8FF8-43DC-A493-9F9F56F24A5D-low.pngFigure 6-8 The Go Button

Keil

To open the workspace, do as follows:

  1. Navigate to C:\TI\Connectivity\CC256X BT\CC256x MSP432 Bluetopia SDK\4.2.x.x\Samples.
  2. Select the demonstration to load on the device (for this example, use SPPDemo).
  3. Navigate to SPPDemoKeil in the samples list.
  4. Select SPPDemo.uvprojx.
    Note:

    Keil µVision5 opens.

  5. Select either the Debug or Release configuration from the drop-down menu (in this example, select Debug, see Figure 6-9).
    GUID-319C3658-6CA6-45FB-8ED4-BE11A56B202E-low.pngFigure 6-9 Configurations

To build the code, do as follows:

  1. Navigate to ProjectBuild Target in the program menu (see Figure 6-10).
    GUID-B3D185AE-A74A-4AF9-A42F-201894F48BA5-low.pngFigure 6-10 Build ProjectTarget
    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.

  2. Choose from the following two options.

    • For Debug Mode Only, do as follows:
      1. Select Start/Stop Debug Session to start loading the profile on the MSP432 device (see Figure 6-11).
        GUID-98AA56DD-7A9E-4958-8F40-A8529C59915E-low.pngFigure 6-11 Start/Stop Debug Session
        Note:

        The debug session finishes in a few minutes.

      2. Stop the debugging session from the Debug menu.
        Note:

        The profile loads on the MSP-EXP432P401R LaunchPad development kit.

      3. Unplug the device.
      4. Plug in the device.
    • For Release and Debug Modes:
      1. Press the LOAD icon to start loading the profile on the MSP432 device (see Figure 6-12).
        GUID-83931686-CC25-4797-ADB3-D6A905E28FB8-low.pngFigure 6-12 LOAD Button
        Note:

        The profile finishes in a few minutes. The profile loads on the MSP-EXP432P401R LaunchPad development kit.

      2. Unplug the device.
      3. Plug in the device.