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.2.x.x 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 7-1) 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-2.)
Note: The IDE debugs and loads
the software onto the device. This process may take 5 to 10
minutes.
- Click
the red X icon in the IDE to stop debugging. (See Figure 7-3.)
- Disconnect the
STM3240G-EVAL.
- Reconnect the STM3240G-EVAL.
- Press Reset on the
STM3240G-EVAL device.
- Click the GO button in the
IAR (see Figure 7-4).
Keil
- Navigate to
C:\TI\Connectivity\CC256XBT\CC256xSTM32BluetopiaSDK\v4.2.x.x 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 7-5].)
- Right-click SPPDemo_Debug
in the project sidebar.
- Select Build target to
build the code. (See Figure 7-6.)
Note: Figure 7-7 shows the output when built correctly.
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.
- 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 7-8.)
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 7-9.)
Note: The
loading process completes 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.