Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nyh-workshop/w806-tutorial
- Owner: nyh-workshop
- Created: 2022-07-11T05:26:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T08:55:25.000Z (over 2 years ago)
- Last Synced: 2023-06-04T15:25:31.181Z (over 1 year ago)
- Topics: c-sky, w806
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 thecsky-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 tox:/wm-sdk-w806
, thenmake menuconfig
.
5. Inside the menuconfig, go toToolchain 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 theDownload 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!)
8. Press "Save", and "Exit" to main menu. Again, press "Exit".
9. Afterwards, entermake
to compile, ormake flash
to compile and flash.
10. Formake 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, exampleX:/MyW806_Project
2. In the folder, git clone https://github.com/IOsetting/wm-sdk-w806.
3. After cloning, go to thewm-sdk-w806
folder, andmake menuconfig
4. InToolchain Configuration
-> insert the location of installed C-Sky toolchain binaries.
5. InDownload Configuration
-> select download port, rename toCOMX
where X is the serial port number.
6. All your own project is in thewm-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, trymake distclean
and recompile and reflash again.