Close

How to debug W806 and W801 MCUs?

imarcinsznimarcinszn wrote 04/09/2022 at 13:36 • 3 min read • Like

W806 is quite an interesting product in terms of price and performance. One of the biggest drawbacks of this platform is lack of popular hardware debugger for it. Official CK-Link Lite debuggers are pretty expensive and not widely available. But as turns out it can be also achieved without official debugger but with use of simple STM32 “Blue Pill board”

What is is necessary to start

A) Hardware

B) Software

and a little bit of time...

How to get it working?

1) Upload CKLinkLite2.30.hex to STM32 “Blue Pill board”

2) Open project that is located in SDK: WM_SDK_W806\tools\W806\projects\SDK_Project\project\CDK_WS\CDK_WS.cdkws

3) Enabe “Download To Flash” parameter in Debug settings

Right-click on W806_SDK → Options for “W806_SDK”



4) Connect STM32 and W806 together

STM32

W806

A0

RST_N

A1

PA1

A5

PA4

3V3

3V3

GND

GND

5) ConnectSTM32 via USB to PC

6) Update drivers in Windows Manager

After updating driver CDK IDE should see connected hardware in Debug Tab in Project parameters:


7) Compile project – in contrast to STM32CubeIDE CDK is not automatically compiling project after clicking Debug button

8) Starting Debugging

At this point you should see CDK changing to Debug mode:



Like

Discussions

NYH-workshop wrote 07/29/2022 at 14:04 point

Hello there, I tried this Debugging tutorial - and I experienced some new issues along the way.

One of it is the CDK version - the CKLinkLite on the Blue Pill board is only working on version 2.12.1. Any higher versions, the CDK would not detect it anymore despite the driver changes.

Also, I couldn't get it to load or debug due to the absence of the ELF file for "Flash Algorithm". 

Currently the CDK only has these, and they are not compatible to the W806 board.

I found out that you need that specific W806 board's Flash Algorithm ELF from this site (it's called W806_Flash_Tool.elf): https://www.bilibili.com/video/BV1L44y1J7Jz/

And there are some tutorials explaining how to debug the W806 but these are in Mandarin and I could not really source these extra files since they require an account that can be registered within China:

- https://oshwhub.com/l88889686/cklinkw80x-fang-zhen-qi

- https://bbs.elecfans.com/jishu_2180011_1_1.html

It would be great if you have the W806_Flash_Tool.elf for this one. :)

  Are you sure? yes | no