MCU Development environment setup
Last Updated on：2020-02-21 05:06:17
The main control board in the Tuya Sandwich Evaluation Kits supports two non-Graffiti manufacturing development boards:
Arduino is the most popular open source hardware in the world and an excellent hardware development platform. Arduino's simple development method allows developers to pay more attention to creativity and implementation, and complete their own project development faster, which greatly saves the cost of learning and shortens the development cycle.
Arduino UNO version can follow the Arduino Official Tutorial for operation.
ST Nucleo uses STM32Nucleo-G071RB as the main control. Its development method is fully compatible with Arduino. Therefore, we need ST driver support in the development environment and install the Arduino IDE. This article explains in detail the development environment of ST Nucleo under Windows.
Arduino IDE (click to download) is software used to write Arduino programs. After writing the programs, you can upload them to Tuya Sandwich Development through this software. Execute in the board.
After the driver is downloaded, run the installation as an administrator, connect the Micro-USB to the computer and the development board, open the computer device manager and the following figure appears, indicating that the driver installation was successful
Note: Micro-USB cable must have data transmission function
The main control board of the Tuya Sandwich Evaluate Kit is STM32Nucleo-G071RB, which is not supported by default in the Arduino IDE. So we should use the following operations to make the Arduino IDE support our development board.
Path: Menu bar-File-Preferences
Fill in the following URL and click
Select Tools-> Evaluate Kit -> Board Manager to install the corresponding development board. The main control of Tuya Sandwich Evaluate Kit is STM32Nucleo-G071RB,so enter
STM32 in the search box, and click
After the development board is installed, the developer can choose the corresponding model according to the type of the development board. The type of the graffiti sandwich development board in the Arduino IDE is displayed as Nucleo-64, and the model is displayed as Nucleo G071RB. So we perform the following configuration:
Path: Menu Bar-Tools- Evaluate Kit
Path: Menu Bar-Tools-Board part number
Path: Menu bar-Tools-Upload method
Path: Menu Bar-Tools-Port
Selection: Select the appropriate port according to the connection between the development board and your computer
The rest of the options in the toolbar can keep the default configuration (recommended), or you can change it according to your needs.
The Tuya Sandwich Evaluation Kits uses STM32Nucleo-G071RB as the main control and uses the Arduino IDE to write the STM32 code. You need to download the STM32CubeProgrammer software to download the code to the development board.
Install STM32CubeProgrammer (click to download), under the software installation path The bin file path to the system environment variable.
At this point, the development environment of the graffiti sandwich development board is completed. We can write the application code in the Arduino IDE and download it to the development board.
Mac OS and Linux support the above solutions at the same time, the STM32CubeProgrammer software needs to be downloaded in the "Ready to Download" section (click to download)to install the driver.
How helpful was this page?