Prepare DSP Core for ‘Hello World’

The RT700 SDK provides a collection of DSP example applications located in boards/mimxrt700evk/dsp_examples/. Each DSP example has two four source directories for cm33_core0, cm33_core1, hifi1, and hifi4 cores. In this guide, HiFi4 example will be explained, but HiFi1 examples can be run with the same steps.

|

|

The projects for different supported toolchains are built in the above directories. For the DSP example above, the ‘xcc’ project builds on the command line and the ‘xtensa’ directory is an Xplorer IDE project.

To run the ‘Hello World’ demo, import the SDK sources into the Xplorer IDE.

  1. Select File > Import > General > Existing Projects into Workspace.

    |

|

  1. Select the SDK directory <SDK_ROOT>\boards\mimxrt700evk\dsp_examples\hello_world_usart\hifi4\xtensa as root directory.

    |

|

  1. Leave all the other check boxes blank.

    |

|

Once imported, the ‘dsp\_hello\_world\_usart\_hifi4’ appears in the Project Explorer.
  1. To make a build selection for the project and hardware target configuration, use the drop-down buttons on the menu bar.

    |

|

  1. To build the project for debug, profile, or trace, use the action buttons on the right side of the menu bar.

    |

|

A default debug configuration is provided by the SDK project, which utilizes the on-chip debugger.
  1. To choose the configuration, select the Debug Configurations menu item.

    |

|

The **Debug Configurations** dialog box appears.
  1. Expand the Xtensa On Chip Debug tree option and select ‘dsp_hello_world_hifi4_debug_jlink’.

    |

|

  1. Click the Debug button. The actual debug on the chip initiates.

    |

|

The Xplorer IDE prompts whether binaries should download to the hardware.
  1. Select Yes.

    |

|

  1. The Xplorer IDE transitions to the Debug perspective after the binary download.

    Note: After initial configuration, it is possible to select the same debug configuration as in Figure 8.

    |

|

The **Debug** perspective appears as in [Figure 9](prepare_dsp_core_for_hello_world.md#GVDVWQC).

|![](../images/image30.svg "Debug perspective")

|

The program stops at the start of main\(\) function. To run the program, click the **Resume** or **Stepping through** icon button as shown in [Figure 10](prepare_dsp_core_for_hello_world.md#LKWEUGG).

|![](../images/image31.svg "Run the program")

|

  1. After resuming / stepping through the ‘printf’ statement, the following output appears in the Console view of the IDE.

    Hello World running on DSP core 'rt700_hifi4_RI23_11_nlib'
    

    To return to the default IDE layout after the debugging completes, select the previous code perspective.

    |

|

Parent topic:Run and Debug DSP Demo using Xplorer IDE