Win10 environment configuration
W806 has been introduced before, and the previous article talked about the development environment under Ubuntu.
If you want to use the CDK development environment, please ignore the following content and check this article: Using WM-SDK-W806 in the CDK IDE development environment
Next, we will talk about the equivalent MSYS2 development environment under Win10 (without using CDK).
Download relevant software
Download MSYS2 https://www.msys2.org/, download the MSYS2 installation file, currently msys2-x86_64-20210725.exe
Download the toolchain https://occ.t-head.cn/community/download
Navigation->Tools->Toolchain-800 Series->(Currently V3.10.29)
Download the corresponding version. For Win10, download csky-elfabiv2-tools-mingw-minilibc-20210423.tar.gz
If you cannot download or register, please download from Baidu Pan https://pan.baidu.com/s/1Mp-oHNM3k4Hb8vEybv8pZg code:vw42
Download the burning tool https://h.hlktech.com/Mobile/download/fdetail/143.html
Click the download link on the right side of 'W800 Serial Port Burning Tool_V1.4.8(.rar)' to download
Installation and Configuration
Install MSYS2 by running the MSYS2 installation file on the local machine
In the MSYS2 command line, refer to the following command to install the necessary software
# Update packages
pacman-Syu
# Install make
pacman -S msys/make
# Install automake
pacman -S msys/automake
# Install autoconf
pacman -S msys/autoconf
# Install gcc
pacman -S msys/gcc
# Install git
pacman -S msys/git
# Install the dependency libraries required for compilation
pacman -S msys/ncurses-devel
pacman -S msys/gettext-devel
Unzip the toolchain to a specified directory. Note that this tarball does not have a top-level directory. It is recommended to unzip it in a specified directory.
mkdir csky-elfabiv2-tools-mingw-minilibc-20210423
tar xvf csky-elfabiv2-tools-mingw-minilibc-20210423.tar.gz -C csky-elfabiv2-tools-mingw-minilibc-20210423/
Note the path of this directory, for example /d/w806/csky-elfabiv2-tools-mingw-minilibc-20210423/bin/, which will be used when configuring menuconfig later.
Compile
Export SDK
git clone https://github.com/IOsetting/wm-sdk-w806.git
Configure the toolchain path with menuconfig
cd wm-sdk-w806
make menuconfig
In the menuconfig interface, Toolchain Configuration -> the second toolchain path, fill in the path just now, the full path is required, with the last slash, for example
/d/w806/csky-elfabiv2-tools-mingw-minilibc-20210423/bin/
Don't change anything else, save and exit menuconfig. If the menu row below is not highlighted, you can use the shortcut keys Alt+E = exit, Alt+S = save
Then execute the compilation
make
The generated firmware is in the bin/W806 directory
Writing to the development board
Option 1: Using Upgrade_Tools
Connecting the Development Board
Run the official burning tool Upgrade_Tools_V1.4.8.exe,
Select the correct port, use the default baud rate of 115200, and click Open Serial Port
Select the firmware you just compiled, the file path is bin/W806/W806.fls
click to download
Short press the Reset button on the development board and wait for the burning tool to complete the burning.
Short press the Reset button on the development board again, and the burned program will start executing
Option 2: Use wm_tool provided by SDK
First, use the Windows Device Manager to determine the USB port corresponding to your development board in the system, such as COM5.
Run menuconfig, configure the port name
cd wm-sdk-w806
make menuconfig
In the menuconfig interface, Download Configuration -> download port, fill in the USB port corresponding to the development board in your system, such as COM5. Note that only the pure port name is needed here, and the full path is not required.
You can increase the baud rate to speed up downloading. Only 115200, 460800, 921600, 1000000, 2000000 are supported. Exit menuconfig after saving.
The rest of the programming and options are the same as in Linux environment, please refer to the corresponding Linux instructions.
question
If you modify the code and compile, and find that the firmware is not updated, you can execute the following command to clear the old compilation output and then compile again.
# Clean up old compilation results and intermediate results
make distclean
# Recompile
make
Previous article:Lianshengde HLK-W806 (Part 3): Automatic download and reset without buttons
Next article:Lianshengde HLK-W806 (Part 1): Development environment configuration, compilation and burning instructions under Ubuntu 20.04
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- How Lucid is overtaking Tesla with smaller motors
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- STM32 LCD driver writing ideas, with code analysis
- Common solutions for J-Link failing to connect to the chip
- Arteli AT32F4xx Standard Peripheral Library Release Notes
- AD 3D component package library
- If the PCB heat dissipation area is not enough, will increasing the copper thickness help improve the heat dissipation of the PCB?
- Can't tell the difference? The difference between RF analog signal source and vector signal source
- Most EMI problems are related to clock signals.
- Share: AD batch hide component labels
- [Xiao Meige SoC] How to view the number of GPIO added on the FPGA side of the SoC FPGA system and use interrupts
- What are the two parts of RFID?