Using the ESP32 MicroPython File System

Using the ESP32 MicroPython File System

1. Overview of the File System The MicroPython on ESP32 uses the FAT file system by default, stored in internal flash memory or on an external SD card. The main operations include file reading and writing, directory management, and retrieving file information. 2. Common APIs <span>os.listdir()</span>: List directory contents <span>os.mkdir(path)</span>: Create a directory <span>os.rmdir(path)</span>: Remove … Read more

Designing a Web Server Based on ESP-IDF for ESP32

Designing a Web Server Based on ESP-IDF for ESP32

1. Code The web server based on the ESP32 IDF framework includes WiFi connection, HTTP service, front-end interaction, and hardware control functions: #include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event.h" #include "esp_log.h" #include "nvs_flash.h" #include "esp_http_server.h" #include "driver/gpio.h" #include "cJSON.h" // WiFi configuration #define WIFI_SSID "your_SSID" #define WIFI_PASS "your_PASSWORD" … Read more

ESP32 MicroPython UART Testing

ESP32 MicroPython UART Testing

1. Key Points of UART Hardware Resources and Configuration UART Resources of ESP32ESP32 supports 3 UART controllers (UART0, UART1, UART2), but actual availability is limited by pin conflicts: UART0: Default for REPL debugging (flashing and serial monitoring), using GPIO1 (TX), GPIO3 (RX) UART1: Some development boards connect to external Flash/SD cards (conflicts should be avoided), … Read more

ESP32 MicroPython WiFi Testing

ESP32 MicroPython WiFi Testing

Development Steps: Connection Process 2. Core Functions Station Mode (Connect to Router) AP Mode (Create Hotspot) Network Scanning HTTP Requests Socket Communication Test Code: 1. Connect to WiFi (Station Mode) import network import time # Configure WiFi SSID ="your_wifi_ssid" PASSWORD ="your_wifi_password" sta_if = network.WLAN(network.STA_IF) sta_if.active(True) if not sta_if.isconnected(): print("Connecting to WiFi…") sta_if.connect(SSID, PASSWORD) # Wait … Read more

Espressif ESP32-S3: The ‘Super Chip’ Opening a New Era of Smart IoT

Espressif ESP32-S3: The 'Super Chip' Opening a New Era of Smart IoT

A high-performance chip that injects strong power into your smart devices, leading to infinite possibilities for the future. In today’s global wave of the Internet of Things (IoT), every device yearns for a smart “brain” and efficient “communication capabilities.” Espressif Technology, as a leader in wireless communication and artificial intelligence IoT processor chips, is bringing … Read more

Is the Stack Size of RTOS Tasks Related to the Amount of Task Code?

Is the Stack Size of RTOS Tasks Related to the Amount of Task Code?

Recently, a colleague raised the following question:“I have a lot of code in my task; does this mean that the stack for this task needs to be allocated larger?”Below, we will describe the relationship between the amount of task code and stack allocation. 1RTOS Task Stack Allocation Many RTOSs on the market require the stack … Read more

ARM Abandons Cortex Brand, Future Chip Landscape Set for Major Changes

ARM Abandons Cortex Brand, Future Chip Landscape Set for Major Changes

Arm has recently disclosed its product brand restructuring strategy, planning to provide self-developed chips to customers, while also mentioning its reliance on the Chinese market and the competitive risks posed by RISC-V.ARM has suddenly announced the abandonment of the Cortex brand, which it has used for twenty years. This once-arrogant British chip giant may indeed … Read more

OpenWrt Core Component: libubox (4) – ulog

OpenWrt Core Component: libubox (4) - ulog

This is the fourth article introducing the core component of OpenWrt, libubox. Here, we will discuss the ulog module, which is widely used in the OpenWrt software ecosystem. Almost all core modules in the system utilize it to save logs, so let’s get started.The ulog module is a wrapper for the syslog programming interface. If … Read more

ZTE’s Cross-Border RISC-V Development

ZTE's Cross-Border RISC-V Development

In recent years, RISC-V chips have developed rapidly worldwide, especially in the Chinese market, with domestic manufacturers active in various fields.ZTE Corporation, as a less frequently mentioned giant, joined the RISC-V International Foundation as early as 2018, deeply participating in standard formulation.Previously, it disclosed few details about its RISC-V chips, but early last month, it … Read more