References for SDK deployment: https://github.com/IOsetting/wm-sdk-w806
Basically, this microcontroller is neither ARM, MIPS nor RISC-V. It is based on the C-Sky architecture (source).
Here is what is tried from the SDK deployment tutorial for Windows users:
- Download MSYS2 and install packages. Then launch the MSYS2.
- Once you get these C-Sky toolchains, extract the
csky-elfabiv2-tools-mingw-minilibc-yyyymmdd.tar.gz
into a folder, for example:c:\csky-elfabiv2-tools-mingw-minilibc-yyyymmdd
- Next, git clone the https://github.com/IOsetting/wm-sdk-w806 into another folder.
- Make sure you are inside the MSYS2. Switch directory to
x:/wm-sdk-w806
, thenmake menuconfig
. - Inside the menuconfig, go to
Toolchain Configuration
and insert/c/csky-elfabiv2-tools-mingw-minilibc-yyyymmdd/bin/
into the empty box (be sure you need to have the '/' after the bin!). - Press "Save", and "Exit" to the main menu.
- At the
Download Configuration
select your download port and rename it toCOMX
where X is your serial port number. (Connect the W806 module to the PC and go to Device Manager to see the number!) - Press "Save", and "Exit" to main menu. Again, press "Exit".
- Afterwards, enter
make
to compile, ormake flash
to compile and flash. - For
make flash
, when you are shown "Wait Serial Sync...", briefly press the reset button on the W806 module.
connecting serial...
serial connected.
wait serial sync.......
serial sync sucess.
mac CC-CC-CC-CC-CC-CC.
start download.
0% [#####] 100%
download completed.
reset command has been sent.
- Enjoy the new program written into your W806 module!
If you ever need your own project folder (reference):
- Create a new folder, example
X:/MyW806_Project
- In the folder, git clone https://github.com/IOsetting/wm-sdk-w806.
- After cloning, go to the
wm-sdk-w806
folder, andmake menuconfig
- In
Toolchain Configuration
-> insert the location of installed C-Sky toolchain binaries. - In
Download Configuration
-> select download port, rename toCOMX
where X is the serial port number. - All your own project is in the
wm-sdk-w806/app/
folder. You can write your own code within the folder. make
to compile,make flash
to compile and flash into W806.
- If the flashed app does not work properly in the W806, try
make distclean
and recompile and reflash again.