7 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
- Navigate to C:\TI\Connectivity\CC256XBT\CC256xSTM32BluetopiaSDK\v4.0.2.1 to open the workspace.
- 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.
- Select the demonstration to load onto the device. (This example uses SPPDemo.)
- Navigate to NoOS.
- Navigate to EWARM.
- Select SPPDemo.eww.
NOTE
The IAR IDE opens.
- Select Debug. (See Figure 6.) or Release Configuration from the drop-down menu. (For this example, select Debug.)
- Select Download and Debug from the Project drop-down menu or click the Play icon. (See Figure 7.)
NOTE
The IDE debugs and loads the software onto the device. This may take 5 to 10 minutes.
- Click the red X in the IDE to stop debugging. (See Figure 8.)
- Disconnect the STM3240G-EVAL.
- Reconnect the STM3240G-EVAL.
- Press Reset on the STM3240G-EVAL device.
- Press the GO button in the IAR.
KEIL
- Navigate to C:\TI\Connectivity\CC256XBT\CC256xSTM32BluetopiaSDK\v4.0.2.1 to open the workspace.
- 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.
- Select the demonstration to load onto the device. (This example uses SPPDemo.)
- Navigate to NoOS.
NOTE
For RTOS, navigate to FreeRTOS.
- Navigate to RVMDK in the list.
- Click SPPDemo.uvproj.
NOTE
Keil µVision4 opens.
- Select Debug or Release Configuration from the drop-down menu. (For this example, select Debug [See Figure 10].)
- Right-click SPPDemo_Debug in the project sidebar.
- Select Build target to build the code. (See Figure 11.)
NOTE
Figure 12 shows the output when built correctly.
NOTE
After a few minutes, the build process finishes and builds an .axf file. Each time you change the configuration, you must build a new .axf file.
- Choose Debug mode or Release and Debug modes.
- For Debug mode only:
- Select Start/Stop Debug Session to start loading the profile on the STM32 device and to work in Debug mode. (See Figure 13.)
NOTE
The loading process completes in a few minutes.
- Stop the debugging session from the Debug drop-down menu.
NOTE
The profile loads on the STM3240G-EVAL board.
- Unplug the device.
- Plug the device in again to start working with it.
- For Release and Debug modes:
- Click LOAD to start loading the profile on the STM32 device. (See Figure 14.)
NOTE
It should complete in a few minutes.
The profile loads on the STM3240G-EVAL board.
- Unplug the device.
- Plug the device in again to start working with it.