#CH32V208

2025-01-06

Because I like the concept, here's this years #GoodOf2024. A concise list of projects I did in 2024, to actually convince my brain that yes, I actually achieved something.

- Helped @patagona with his ISDT #CM1620 reverse engineering
- Built the #Framework #DongleHiderPlus expansion card
- Implemented MQTT data logging for the #ePocketBike stats
- Started development of an #Arduino compatible Ethernet stack for the cheap #CH32V208 MCUs (built-in 10M PHY)

🧵 1/3

2024-06-22

@azonenberg
Uuuuhhhhh!
So nice to see a decap of the #CH32V208! Thank you very much.

(I'm currently in the process of implementing lwip + Arduino framework compatible Ethernet support for that chip.)

I really love the price and the built-in 10M PHY.

2024-06-19

#MQTT using the Arduino #PubSubClient library seems to work now too!

And it also passed the ultimate test: compilation on another PC ^^

Currently, there's just a few lines of platformio.ini configuration needed to use the library. Which was my main goal, yay ^^

(Although it's still pretty hacked together. Also, some changes to external libraries could be handled more elegantly & pull-requested, but eh, it works rn)

#WCH #CH32 #CH32V208 #Ethernet

Screenshot of MQTT Explorer showing some sent and received MQTT messages.
Also a serial terminal displaying the received MQTT messages.
2024-06-19

Accessing #lwip directly seems to work pretty ok already.

Now I'm trying to see how far I can implement rudimentary #Arduino framework compatibility (before losing interest in the tedium).

After some hours, the EthernetClient finally behaved enough for a simple TCP echo test :D

#WCH #CH32 #CH32V208

Screenshot of overlapping Wireshark, serial console, terminal and IDE windows.
Wireshark: TCP packets getting sent between the CH32 board and the PC.
Serial console: Debug print from the CH32, mostly the echoed "Hello World!" message.
Terminal: The ncat echo script running.
IDE: Some sample code to send a TCP message and print incoming TCP data to the serial port.
2024-06-18

Progress of the night: Getting the essentials of the #lwip stack running on the #CH32V208.

Still need to clean it up _a lot_ and build the wrapping library, so it's actually useful.
But seeing lwip run at all is amazing.
(So I don't need to depend on the proprietary, closed source #WCHNET library)

Good night :D

#WCH #CH32

The lwip webserver example page being shown in a browser, hosted at the IP 192.168.137.42.
It is hosted by the CH32V208 module.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst