Development Environment for EC616

Last Updated on : 2024-11-20 08:51:49download

This topic describes how to set up the OpenCPU SDK development environment for the EC616 platform.

Prerequisites

EC616 platform uses the Keil MDK IDE. The SDK invokes the build command through the build script. For more information about Keil MDK, see the Keil website.

Requirements for installing the Keil MDK IDE:

  • Use Keil MDK 5.23 or later versions.
  • Install Keil MDK to the default location C:/Keil_v5/ARM/ARMCC/bin/ because the build script refers to this default location.
  • Have the Keil MDK software activated.

Build the firmware

Tuya provides the script for building the firmware.

  1. Navigate to the SDK directory and find the build script for EC616 build_app.bat.
    The following table lists the build commands:

    The build method The build command
    Build the application firmware for the first time build_app.bat ec616_sample 1.0.0 unilog
    Build the firmware for debugging build_app.bat ec616_sample 1.0.0 debug
    Build the firmware for release build_app.bat ec616_sample 1.0.0 release
    Clean the production build_app.bat ec616_sample 1.0.0 clean
  2. Run the build script. If your output window looks like the following, it means the project is built successfully.

    Development Environment for EC616