Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nyh-workshop/w806-tutorial

A simple tutorial on deploying W806 SDK.
https://github.com/nyh-workshop/w806-tutorial

c-sky w806

Last synced: 1 day ago
JSON representation

A simple tutorial on deploying W806 SDK.

Awesome Lists containing this project

README

        

# w806-tutorial

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](https://www.cnx-software.com/2021/11/08/winnermicro-w806-240-mhz-mcu-2-development-board/)).

![image](https://user-images.githubusercontent.com/20377029/178199745-8980a67e-2441-4df3-8985-98a411e09533.png)

## Here is what is tried from the [SDK deployment tutorial](https://github.com/IOsetting/wm-sdk-w806) for **Windows** users:
1. Download MSYS2 and install packages. Then launch the MSYS2.
2. 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
3. Next, git clone the https://github.com/IOsetting/wm-sdk-w806 into another folder.
4. Make sure you are inside the MSYS2. Switch directory to x:/wm-sdk-w806, then make menuconfig.
5. 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!).
6. Press "Save", and "Exit" to the main menu.
7. At the Download Configuration select your download port and rename it to COMX where X is your serial port number. (Connect the W806 module to the PC and go to Device Manager to see the number!)
8. Press "Save", and "Exit" to main menu. Again, press "Exit".
9. Afterwards, enter make to compile, or make flash to compile and flash.
10. 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.
11. Enjoy the new program written into your W806 module!

## If you ever need your own project folder ([reference](https://github.com/IOsetting/wm-sdk-w806/issues/22)):
1. Create a new folder, example X:/MyW806_Project
2. In the folder, git clone https://github.com/IOsetting/wm-sdk-w806.
3. After cloning, go to the wm-sdk-w806 folder, and make menuconfig
4. In Toolchain Configuration -> insert the location of installed C-Sky toolchain binaries.
5. In Download Configuration -> select download port, rename to COMX where X is the serial port number.
6. All your own project is in the wm-sdk-w806/app/ folder. You can write your own code within the folder.
7. make to compile, make flash to compile and flash into W806.

## Issues:
- If the flashed app does not work properly in the W806, try make distclean and recompile and reflash again.