Deploy siren detection model on PSoC™ 6 and PSOC™ Edge boards

This section explains how to deploy the siren detection model on PSoC™ 6 and PSoC™ Edge boards using ModusToolbox™. We provide a code example, ready for deployment.

Pre-requisites:

Once you have downloaded the code example, extract the contents of the zip folder and navigate to the Models directory and substitute the provided example model.c and model.h files with the actual model.c and model.h files that were previously generated for your model.

Deploying the model using ModusToolbox™ consists of two parts:

  • Create and build the project
  • Flash and run the project
Create and Build the project
  1. Open ModusToolbox™ > Eclipse IDE for ModusToolbox™ from the Windows Start menu. The Eclipse IDE for ModusToolbox window appears.

  2. Browse and select the workspace directory for your project.



  3. Click Launch to open the ModusToolbox™ workspace.

  4. Select New Application from the Quick Panel or navigate to File> New> Modus Toolbox™ Application to open the Project Creator Tool.



  5. Expand the Kit Name (PSoC™ 6 or PSoC™ Edge) from the list and select the corresponding BSP for your board and click Next. The Select Application window appears.



  6. Click Browse for Application and select the folder containing the code example for the board downloaded earlier.



  7. Select the checkbox against the code example and click to change the code example name to something concise, for instance imagimob-deploy-code-example. When you import a code example for PSOC™ Edge, the name of the imported code example will be different.

  8. Click Create to create the project. After the project is created successful, the following window appears.



  9. Right-click the imagimob-deploy-code-example project and select Build Project or click Build Application in the Quick panel to build the project.


Flash and Run the project
  1. Connect the USB port on the board with the PC using the USB cable.

  2. In Quick Panel> Launches, click imagimob-deploy-code-example. The code is deployed on the board.