Skip to content

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) image.png

Step 2: Clone the Project from the Repository into the Virtual Machine

git clone --recursive https://gitee.com/Ai-Thinker-Open/Ai-Thinker-WB2image.pngimage.png

Step 3: Switch to the Target Directory and Grant Permissions

cd ~/Ai-Thinker-WB2/toolchain/riscv/Linux/ . chmod755.sh image.png

Step 4: Switch to Ai-Thinker-WB2/applications/get-started/helloworld/ and Build

cd ~/Ai-Thinker-WB2/applications/get-started/helloworld/ make -j8 image.pngimage.png

Step 5: Flash the Firmware

make flash p=/dev/ttyUSB0 b=115200 If you run it directly, you will see the following prompt: image.png Connect the development board. image.pngimage.pngimage.pngimage.png When prompted as shown in the figure above, press the RST button on the module. image.pngimage.png

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

image.pngimage.pngimage.png

2. Usage Notes

Released under the MIT License. Build Time 2026-09-11 14:52:23