2. Clone FreeRTOS retarget Project

The first step is to create a new project. As the goal is to collect the interruption and to trigger a task handled by the RTOS, the base project will be freertos_retarget. This sample application starts the RTOS scheduler, performs the system initialization, and launches a task which will send a character (#) on the UART every second.

  1. Start SmartSnippets™ Studio.

  2. Import the freertos_retarget project. Check our getting started tutorial if you’re not familiar with the procedure.

  3. Copy and paste your project and call it external_interrupt. When pasting, make sure you paste in the same folder as the source project. In this case, SDKROOT is “C:\dev\DA1468x_DA15xxx_SDK_1.0.10.1072” and the destination folder is set to “C:\dev\DA1468x_DA15xxx_SDK_1.0.10.1072\projects\dk_apps\templates\external_interrupt”.

    _images/clone_project.png

    Fig. 1 Paste Project

  4. Compile the project for your target to check the project is set up correctly.

    _images/compile_project.png

    Fig. 2 Compile Project