From Schematic PCB to Porting RTOS: A Detailed Discussion on STM32 GPIO

Introduction Why Should We Understand Both Hardware and Software? In 2010, while I was at Huawei, I temporarily took a break from my regular duties to participate in recruitment efforts. To recruit more people for my department and compete for HC numbers (the number of positions available), I worked hard to ensure that every candidate … Read more

Is There Any Meaning in Running RTOS on an 8-bit MCU?

Recently, a question was discussed in the group: Is there any meaning in running RTOS on a 51 microcontroller?Regarding this question, everyone has their own opinions. Below, I will elaborate on the 51 and RTOS. 1About 8-bit Microcontrollers and Their Performance and Resources 8-bit microcontrollers can be considered classics of our generation because they have … Read more

libmetal: A Unified Abstraction Layer for Real-Time Operating Systems (RTOS), Bare-Metal Environments, and User-Space Linux

libmetal is an open-source project designed to provide a unified abstraction layer for real-time operating systems (RTOS), bare-metal environments, and user-space Linux environments. This framework offers a common user API, ensuring consistency and convenience in operations such as device access, device interrupt handling, and memory requests across different operating environments. This article will detail the … Read more

Three Operating Modes of Soft Routers in OpenWrt

Three Operating Modes of Soft Routers Our current home networks generally consist of two configurations: Single Optical Modem: The optical modem serves as the main router, providing all functions including optical signal conversion, dial-up internet access, NAT, DHCP, and basic wireless capabilities. Network Topology: Single Optical Modem Network Topology Diagram Optical Modem + (Hardware) Router … Read more

OpenWRT Plugin: Bandwidth Limiting with QoS Mate

The main function of the QoS plugin is to manage the network traffic between the local area network and the public network. By using different algorithms, it allocates priorities to different types of traffic, thereby improving overall network performance. In my long-term environment where both upload and download are fully utilized (BT, PCDN, etc.), configuring … Read more

Modifying Default IP Address During OpenWrt Compilation

Modify the following file openwrt/imx_openwrt/package/base-files/files/bin/config_generate as follows: case "$protocol" in static) local ipad case "$1" in #lan) ipad=${ipaddr:-"192.168.1.1"} ;; #*) ipad=${ipaddr:-"192.168.$((addr_offset++)).1"} ;; lan) ipad=${ipaddr:-"10.168.103.129"} ;; *) ipad=${ipaddr:-"10.168.$((addr_offset++)).1"} ;; esac netm=${netmask:-"255.255.255.0"} uci -q batch <<-EOF set network.$1.proto='static' set network.$1.ipaddr='$ipad' set network.$1.netmask='$netm' EOF [ -e /proc/sys/net/ipv6 ] && uci set network.$1.ip6assign='60' ;; The actual effect is OK: … Read more

Unlocking the Potential of LwIP: Easily Implementing Multi-NIC on MCU

1. Introduction Recently, while communicating with developers, there was a request to implement multi-NIC functionality (Ethernet + USB 4G NIC) on the Xianji platform. I sent a reference to an article from nearly two years ago titled “[hpm_application] How to Easily Implement Multi-NIC (Ethernet + USB 4G) on Xianji MCU in RT-Thread” and reflected on … Read more

Do Embedded MCU Software Development Projects Really Need Architecture Engineers?

In the field of embedded development, MCUs (Microcontrollers) have always been the core hardware platform in industrial control, automotive electronics, and smart home applications due to their low power consumption, high cost-effectiveness, and wide range of applications. However, as the complexity of MCU functions increases (such as automotive-grade chips supporting multi-bus communication and real-time control … Read more

The Collision of MCU and LLM: Exploring the Possibilities of AIoT

Click below👇“AI Knowledge Exchange”Follow our official account “The table lamp at home suddenly understands human speech, factory machines proactively report faults, and children’s toys can assist with homework… These scenarios are no longer science fiction! Recently, a technological trend has been quietly brewing—connecting the traditionally ‘silent’ Microcontroller Units (MCUs) with large AI models. What possibilities … Read more