SWRU498B February   2017  – December 2021 CC2564C

 

  1.   Trademarks
  2. Features
  3. Bluetooth Profiles
  4. Sample Application Overview
  5. CC2564CSTBTBLESW Hardware and Software Requirements
  6. Setting Up the Hardware
  7. Setting Up the Software
  8. Building and Flashing the Bluetooth Code (STM3240G-EVAL)
    1. 7.1 Flashing the Bluetooth Code
  9. Applications
  10. Classic Bluetooth Sample Applications
  11. 10Classic Bluetooth + Bluetooth Low Energy Applications
  12. 11Bluetooth Low Energy Applications
  13. 12Revision History

Building and Flashing the Bluetooth Code (STM3240G-EVAL)

Sample applications for FreeRTOS and NoOS are available for IAR and Keil.

Perform the following instructions to set up applications on each IDE version.

IAR

  1. Navigate to C:\TI\Connectivity\CC256XBT\CC256xSTM32BluetopiaSDK\v4.2.x.x to open the workspace.
  2. Select one of the following samples:
    • For NoOS, navigate to \NoOS\STM3240G-EVAL\Samples\ for a list of samples.
    • For FreeRTOS, navigate to \FreeRTOS\STM3240G-EVAL\Samples\ for a list of samples.
  3. Select the demonstration to load onto the device. (This example uses SPPDemo.)
  4. Navigate to NoOS.
  5. Navigate to EWARM.
  6. Select SPPDemo.eww.
    Note: The IAR IDE opens.
  7. Select Debug (see Figure 7-1) or Release Configuration from the drop-down menu. (For this example, select Debug.)
    GUID-923C005F-AE1A-4FC1-8415-07B765F87819-low.gif Figure 7-1 IAR Drop-Down Menu
  8. Select Download and Debug from the Project drop-down menu or click the Play icon. (See Figure 7-2.)
    GUID-79A4BB56-C8BE-4A98-B7EE-89171D26268B-low.gif Figure 7-2 Download and Debug
    Note: The IDE debugs and loads the software onto the device. This process may take 5 to 10 minutes.
  9. Click the red X icon in the IDE to stop debugging. (See Figure 7-3.)
    GUID-94CA2AFC-F9BE-47B0-B7D0-19AFA89B0FB6-low.gif Figure 7-3 Debugging Screen
  10. Disconnect the STM3240G-EVAL.
  11. Reconnect the STM3240G-EVAL.
  12. Press Reset on the STM3240G-EVAL device.
  13. Click the GO button in the IAR (see Figure 7-4).
    GUID-D44925DE-48FD-4ABC-B7E3-07223A34176C-low.gif Figure 7-4 The GO Button

Keil

  1. Navigate to C:\TI\Connectivity\CC256XBT\CC256xSTM32BluetopiaSDK\v4.2.x.x to open the workspace.
  2. Select one of the following samples:
    • For NoOS, navigate to \NoOS\STM3240G-EVAL\Samples\ for a list of samples.
    • For FreeRTOS, navigate to \FreeRTOS\STM3240G-EVAL\Samples\ for a list of samples.
  3. Select the demonstration to load onto the device. (This example uses SPPDemo.)
  4. Navigate to NoOS.
    Note: For RTOS, navigate to FreeRTOS.
  5. Navigate to RVMDK in the list.
  6. Click SPPDemo.uvproj.
    Note: Keil µVision4 opens.
  7. Select Debug or Release Configuration from the drop-down menu. (For this example, select Debug [See Figure 7-5].)
    GUID-E606CF93-704D-4653-A0A3-E499D39ABD55-low.gif Figure 7-5 Debug Drop-Down Menu
  8. Right-click SPPDemo_Debug in the project sidebar.
  9. Select Build target to build the code. (See Figure 7-6.)
    Note: Figure 7-7 shows the output when built correctly.
    GUID-90FF7A5E-0E92-42CD-9CB7-790DED060D0E-low.gif Figure 7-6 Building Target
    Note: After a few minutes, the build process finishes and builds a .axf file. Each time you change the configuration, you must build a new .axf file.
    GUID-14BAACA3-1A0F-4EDC-A1A9-ECEF8166E8FE-low.gif Figure 7-7 Build Output
  10. Choose Debug mode or Release and Debug modes.
    • For Debug mode only:
      1. Select Start/Stop Debug Session to start loading the profile on the STM32 device and to work in Debug mode. (See Figure 7-8.)
        GUID-71966B23-D313-4A29-A031-5F42A620AB57-low.gif Figure 7-8 Debug Mode
        Note: The loading process completes in a few minutes.
      2. Stop the debugging session from the Debug drop-down menu.
        Note: The profile loads on the STM3240G-EVAL board.
      3. Unplug the device.
      4. Plug the device in again to start working with it.
    • For Release and Debug modes:
      1. Click LOAD to start loading the profile on the STM32 device. (See Figure 7-9.)
        Note: The loading process completes in a few minutes.

        The profile loads on the STM3240G-EVAL board.

      2. Unplug the device.
      3. Plug the device in again to start working with it.
      GUID-645555ED-1846-47AF-BFB7-1E84E2166D76-low.gif Figure 7-9 Release and Debug Mode