Tuya Wind IDE Features

Last Updated on : 2023-12-07 03:07:51download

Log in to Tuya Wind IDE

Log in to Tuya Wind IDE using your account of the Tuya IoT Development Platform. If you do not have an account, register one first.

  1. Click Create an account?.

    Tuya Wind IDE Features
  2. Enter the required information, check Agree to Terms of Use, Legal Statement, Privacy Policy, and click Next.

  3. After you create the account, you can use it to log in to Tuya Wind IDE.

  4. In the IDE, choose Create Framework or Open Framework. If you do not find the desired development framework, click Get more TuyaOS development framework and submit a service ticket to request frameworks that are not public.

    Tuya Wind IDE Features

Download framework

If you are new to Tuya Wind IDE, choose Create Framework.

Tuya Wind IDE Features

A framework consists of Development Mode, Type Development Kit, Development Platform, and TuyaOS Version.

  • Choose TuyaOS OS Development for development mode.
  • Choose a type development kit based on your needs.
  • Choose a development platform based on your needs.
  • Generally, choose the latest version for the TuyaOS version.

Generally, use the default location to save the project. If you run a Linux virtual machine on a Windows host, we recommend you change the location to a shared folder created using Samba. This can facilitate the usage of the flashing tool installed on Windows. After you finish, click Done to download the framework.

Tuya Wind IDE Features

The framework will be opened automatically after downloading.

Tuya Wind IDE Features

Create project

  1. Expand software > TuyaOS > apps.

  2. Right-click apps and choose Create Project.

    Tuya Wind IDE Features
  3. Enter a name for the project and press the Enter key. Then, you can create an application in the apps directory.

    Tuya Wind IDE Features

Build project

  1. Expand the apps folder. Right-click an application to build. The example uses the application tuyaos_demo_quickstart to demonstrate the process.

  2. Choose Build Project.

    Tuya Wind IDE Features
  3. Enter the version number and press the Enter key to start building the project.

    Tuya Wind IDE Features

    For the first time, it takes a while for the IDE to download the compiler toolchain.

    After the project is built, an output folder that stores the generated files is created.

Clean project

  1. Right-click an application to clean. The example uses the application tuyaos_demo_quickstart to demonstrate the process.

  2. Choose Clean Project.

    Tuya Wind IDE Features
  3. Enter the version number and press the Enter key to start cleaning a build.

    After the project is cleaned, all the files in the output folder are deleted.

Switch development frameworks

Switch versions

You can switch to another version of the development framework on Tuya Wind IDE.

  1. Open the IDE and choose Development Framework. All of your frameworks will be displayed on the screen. The example uses eswin to demonstrate the process. The framework runs on TuyaOS v3.4.0 currently.

    Switching to another version is possible when the framework has at least two versions.

    Tuya Wind IDE Features
  2. Select a version from the drop-down list next to TuyaOS Version.

    Tuya Wind IDE Features
  3. Click Switch to proceed. When asked to confirm your action, click OK. The example switches from 3.4.0 to 3.4.2.

    Tuya Wind IDE Features
  4. Wait for the process to complete.

Switch component kits

You can switch to another component kit of a development framework on Tuya Wind IDE.

Switching to another component kit is possible when the framework has at least two kits released.

  1. Click the drop-down list next to Component Kit.

  2. Click Switch to proceed. When asked to confirm your action, click OK. Wait for the process to complete.

Configure product

Currently, only the development frameworks for Windows support product configuration, allowing you to quickly configure product features using the terminal window. The example uses the development framework for Bluetooth module PHY6222 to demonstrate the process.

  1. Right-click a demo in the apps directory and choose Config Project.

    Tuya Wind IDE Features
  2. Enter the version number and press the Enter key.

  3. The configuration interface is displayed in the terminal window.

    Tuya Wind IDE Features
  4. Click the terminal and use the UP ARROW and DOWN ARROW keys to toggle between apps. After you select an APP, press the Enter key to start configuring features such as logging, testing, and system heap memory.

    Tuya Wind IDE Features
  5. After you finish, press ESC and then S to save the configuration.

    Tuya Wind IDE Features

Flash firmware

Currently, only the development frameworks for Windows support firmware flashing, allowing you to flash firmware to the chip on the IDE. You can flash two types of firmware, namely the user area firmware and the production firmware.

Right-click an application. In the menu, you can find two options: Flash App and Flash Prod.

  • Flash App: Flash the user area firmware to the chip.

  • Flash Prod: Flash the production firmware to the chip.

    Tuya Wind IDE Features

The example use Flash Prod to demonstrate the process.

  1. Right-click an application and choose Flash Prod.

  2. Enter the version number and press the Enter key.

    You can check out the progress in the terminal window. You will get a message saying flash all success on successful firmware flashing.

    Tuya Wind IDE Features

Reference

To explore more information about Tuya Wind IDE, click Help.

Tuya Wind IDE Features