The cheapest Ethernet MCU,CH579M is arriving - Page 1
Forum section: electronics / general

author: client
author_rank: Contributor
timestamp: December 23, 2023, 09:24:59 am
content: Let me introduce a highly cost-effective MCU, CH579M, priced as low as $0.7! Perhaps it is the cheapest Ethernet microcontroller in the market, this MCU features an Ethernet (including PHY+MAC) and integrates a 2.4g wireless transceiver front-end. It can compatible with Bluetooth and Zigbee protocols as well as custom wireless communication protocols. In addition, it also has multiple serial ports, USB host and slave, SPI, IIC, etc,.Samples can be purchased on LCSC and AliExpress.This awesome device is also designed by Nanjing Qinheng, if you have ever heard of their MCUs such as CH32V003 or CH32V307.datasheet:https://www.wch-ic.com/downloads/CH579DS1_PDF.htmlPCB files:https://www.wch-ic.com/downloads/CH579DS1_PDF.htmlAliexpress:https://www.aliexpress.us/item/3256805277474198.htmlLCSC: ch579Mhttps://www.aliexpress.us/item/3256805277474198.htmloffical sdk:see the attachment below

author: brucehoult
author_rank: Super Contributor
timestamp: December 23, 2023, 11:03:29 am
content: Are you associated with the company?

author: client
author_rank: Contributor
timestamp: December 23, 2023, 11:20:47 am
content: No, I'm just hobbyist. I would like to recommend this cost-effective chip to everyone

author: brucehoult
author_rank: Super Contributor
timestamp: December 23, 2023, 11:29:11 am
content: Oh unlike the CH32V003 and 307 etc it's not a WCH-designed core, but an Arm Cortex M0, and running quite slowly too.

author: bingo600
author_rank: Super Contributor
timestamp: December 24, 2023, 06:38:06 am
content: Another board here - Price is betterhttps://www.aliexpress.com/item/1005003651738891.html

author: brucehoult
author_rank: Super Contributor
timestamp: December 24, 2023, 06:50:46 am
content: I don't know where this $0.70 price is.Once I found it on LCSC (your link was a duplicated Aliexpress one) it was like $5 or $7.

author: kripton2035
author_rank: Super Contributor
timestamp: December 24, 2023, 07:40:08 am
content: Quote from: bingo600 on December 24, 2023, 06:38:06 amyes, but shipping is EUR 67 for me ...

author: bingo600
author_rank: Super Contributor
timestamp: December 24, 2023, 12:01:43 pm
content: Quote from: kripton2035 on December 24, 2023, 07:40:08 amI see $3.21 for shipping to me

author: kripton2035
author_rank: Super Contributor
timestamp: December 24, 2023, 03:12:45 pm
content: I suppose this ethernet chip does not have arduino libraries/board for it ?

author: dobsonr741
author_rank: Frequent Contributor
timestamp: December 24, 2023, 03:39:28 pm
content: Does it come with an SDK? How mature is the SDK? The value of my time, even as a hobbyist, far exceeds the savings offered by lower-cost, race-to-the-bottom chips.

author: IOsetting
author_rank: Regular Contributor
timestamp: December 24, 2023, 05:03:13 pm
content: Quote from: dobsonr741 on December 24, 2023, 03:39:28 pmThough I seldom use WCH's chips, they do have a good reputation on SDK and tech support(relatively among most Chinese chip companies).I don't use them because they are not cheap enough

author: bingo600
author_rank: Super Contributor
timestamp: December 25, 2023, 08:21:31 am
content: Quote from: dobsonr741 on December 24, 2023, 03:39:28 pmAs a hobbyist, i will also use the RiscV 307' boards ....More of "everything", and approx same board price .../Bingo

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: December 25, 2023, 11:36:53 am
content: QuoteTell us more, and reveal the secret

author: peter-h
author_rank: Super Contributor
timestamp: December 27, 2023, 11:25:11 am
content: A CPU with ETH is worthless unless there is a pretty well totally debugged TCP/IP stack, with all the low level libs, for it. ESP32 comes with this AFAIK (LWIP and the whole package) but look at the trouble STM 32F etc users have with this.

author: tellurium
author_rank: Frequent Contributor
timestamp: December 27, 2023, 10:08:25 pm
content: Interesting.I think 32k of RAM is quite low for a practical networking applications, but some simple use cases might fit the bill. E.g. a simple connected sensor, or a serial monitor.Ordered a dev board.Looking at the data sheet, the Ethernet controller is not the Synopsis one used by CH32V307 (identical to STM32Fxx).Some other controller is there, tersely documented.The radio registers are documented, though the documentation also seems to be quite terse.

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 27, 2023, 10:17:34 pm
content: As I've seen for the CH series of chips that are marketed as interface chips, such as the CH565/569/579 etc, while those have a CPU core, they are not really marketed by WCH as microcontrollers in their own right, and the consequence is that the documentation and SDKs are much more opaque than with the CH32V series for instance.I mentioned the CH569 earlier, which I'm interested in, but found out that the documentation is a bit too terse as well, and that the provided SDK doesn't contain any source code for the USB side, making you rely on a binary-only library for USB (and probably other peripherals). That's a terrible bummer IMO, but I haven't had time to look at the docs enough to tell whether implementing support would be difficult, impossible or quite possible.

author: peter-h
author_rank: Super Contributor
timestamp: December 28, 2023, 09:26:39 am
content: One can spend a good number of man-months sorting out low level code and (e.g.) LWIP integration for a new CPU. Sorting out the 32F4 code took that long and that was when we were given supposedly working code from ST! In this case, good luck... And in ETH apps, a low level problem can be hidden until the application does something newAlso LWIP pretty much needs an RTOS (there is a way around it but is complicated) and that is something else you need to port to a new CPU (not as hard as ETH though).

author: tellurium
author_rank: Frequent Contributor
timestamp: December 28, 2023, 10:58:52 am
content: Quote from: peter-h on December 28, 2023, 09:26:39 amMy interest in those Ethernet enabled chips is exactly that: Ethernet.We make our own networking library with built-in TCP/IP and TLS 1.3 stacks, so don't care about LWIP and its issues.Our stack does not require RTOS: it runs perfectly fine in a bare metal superloop, and in a RTOS task.The reason Mongoose does not require RTOS is simple: our library provides a high-level event-based API for protocols like TCP, UDP, HTTP, MQTT, etc. Therefore we don't need socket layer, we simply bypass it.And it is exactly the socket layer that needs RTOS support, because that's the way a blocking send()/recv() can be implemented. An RTOS is required for the "waiting" functionality, and a socket layer required for data buffering.Bypassing a socket layer saves a whole lot. RTOS independence, performance, and memory.

author: peter-h
author_rank: Super Contributor
timestamp: December 28, 2023, 02:28:08 pm
content: Most people writing internet apps use the socket API.

author: client
author_rank: Contributor
timestamp: December 29, 2023, 08:57:23 am
content: the official has ported freertos and lwip, as well as webserver examples on ch579m, the retail price of the chip in China is just below 5 RMB, approximately 0.7 USD

author: tellurium
author_rank: Frequent Contributor
timestamp: December 29, 2023, 06:37:00 pm
content: Quote from: peter-h on December 28, 2023, 02:28:08 pmMost people writing Internet apps, do NOT use socket API. They use one of the many network libraries that provide a higher level API.