Contributed by 黎明将至!, organized by Ai-Thinker
Flashing Ai-WB2-32S on Linux Ubuntu
Introduction
This article introduces how to flash firmware on Linux Ubuntu.
1. Preparation Before Flashing
Step 1: Install Required Tools
sudo apt install build-essential python3 python3-pip git screen (The author already had these installed) 
Step 2: Clone the Project from the Repository into the Virtual Machine
git clone --recursive https://gitee.com/Ai-Thinker-Open/Ai-Thinker-WB2

Step 3: Switch to the Target Directory and Grant Permissions
cd ~/Ai-Thinker-WB2/toolchain/riscv/Linux/ . chmod755.sh 
Step 4: Switch to Ai-Thinker-WB2/applications/get-started/helloworld/ and Build
cd ~/Ai-Thinker-WB2/applications/get-started/helloworld/ make -j8 

Step 5: Flash the Firmware
make flash p=/dev/ttyUSB0 b=115200 If you run it directly, you will see the following prompt:
Connect the development board. 


When prompted as shown in the figure above, press the RST button on the module. 

Step 6: Disconnect the Module from the Virtual Machine and Open a Serial Debug Assistant



2. Usage Notes
- Make sure the module is connected to the virtual machine when flashing.
- Make sure the module is connected to the host before opening the serial debug assistant. Original link: [https://blog.csdn.net/qq_54193285/article/details/135904935?spm=1001.2014.3001.5501](https://blog.csdn.net/qq_54193285/article/details/135904935?spm=1001.2014.3001.5501)

