Getting Started with Microcontroller Programming: A Comprehensive Guide

Getting Started with Microcontroller Programming: A Comprehensive Guide

A microcontroller is actually an early term, initially referred to as a single-board computer or microcontroller. At that time, the processing power of microcontrollers was not very strong. Now, we mostly use microcontroller units (MCUs), which integrate a central processing unit (CPU), memory (ROM, RAM), input/output ports (I/O), timers, counters, serial communication interfaces, and other … Read more

Comprehensive Guide to Python Embedded System Development: From Basics to Practice

Comprehensive Guide to Python Embedded System Development: From Basics to Practice

Getting Started with Python Embedded System Development Yuan Xiaodi Takes You into the Wonderful World of Python Embedded Development Hello, friends! I am Yuan Xiaodi, and today we will explore the application of Python in embedded system development together. Imagine using Python, a simple and elegant language, to control hardware. Isn’t it both magical and … Read more

How to Use Startup Scripts in VxWorks

How to Use Startup Scripts in VxWorks

How to use the startup script in VxWorks is something everyone should know. Here’s an example: Need to define the following two macros: #define INCLUDE_SHELL #define INCLUDE_STARTUP_SCRIPT Called in usrConfig.c: #ifdef INCLUDE_STARTUP_SCRIPT usrStartupScript (startupScriptFieldSplit (sysBootParams.startupScript)); #endif There might be an issue with devices like sata/sd/usb not working. The reason is that this function is executed … Read more

Getting Started with FreeRTOS: A Guide to Writing Doubly Linked Lists

Getting Started with FreeRTOS: A Guide to Writing Doubly Linked Lists

Abstract: A few days ago, I talked about single linked lists, today I will discuss doubly linked lists in conjunction with the FreeRTOS linked list source code. Note: A linked list item is a node, and a node is a linked list item, they refer to the same thing, it doesn’t matter what you call … Read more

Open Source! Sharing an Embedded AI Project

Open Source! Sharing an Embedded AI Project

Embedded AI is truly a hot direction nowadays, and I am gradually learning it myself. Without further ado, let’s get straight to the point and share an open-source project I encountered. Project Author: Search “Awesome Little Shrimp” on Bilibili This project is developed based on Espressif’s ESP-IDF. This project is an open-source initiative primarily for … Read more

Understanding the Relationship Between hashCode() and equals() in Java

Understanding the Relationship Between hashCode() and equals() in Java

The growth path of a programmer Internet/Programmer/Technology/Data Sharing Follow It takes about 6 minutes to read this article. From: Selected Java Interview Questions The previous article mentioned that the equals() and hashCode() methods might lead to the interview question about “the relationship between hashCode() and equals()?”” This article will analyze this basic interview question. First, … Read more

STM32 Microcontroller Learning Notes

STM32 Microcontroller Learning Notes

1. The AHB system bus is divided into APB1 (36MHz) and APB2 (72MHz), where 2>1 means APB2 connects to high-speed devices. 2. Stm32f10x.h is equivalent to reg52.h (which contains basic bit operation definitions), while stm32f10x_conf.h is specifically for controlling the configuration of peripheral devices, essentially acting as a switch for header files. 3. HSE Osc … Read more

Comprehensive Guide to STM32 GPIO

Comprehensive Guide to STM32 GPIO

1. Introduction to GPIO GPIO stands for General-Purpose Input/Output, which can be simply understood as the pins controllable by STM32. The GPIO pins of the STM32 chip connect to external devices, enabling communication, control, and data acquisition with the outside world. The GPIO pins of the STM32 chip are divided into several groups, each with … Read more

Understanding Memory Alignment of C Structs in Embedded Systems

Understanding Memory Alignment of C Structs in Embedded Systems

Today, I bring you a classic and commonly mistaken question about memory alignment of C language structures: Calculate the number of bytes occupied by the following structure in a 32-bit environment: typedef struct test_struct { char a; short b; char c; int d; char e; }test_struct; Please provide your answer: Let’s take a look at … Read more

Embedded C Coding Standards

Embedded C Coding Standards

“ Introduction: This article analyzes the embedded C coding standards shared by a foreigner on GitHub (recommended for careful reading): Embedded Mixed Bag.Keywords: Embedded, C statements, Programming standards ” Sharing the embedded C coding standards of a foreigner on GitHub (recommended for careful reading) [1] 01 Most Important Rules   The most important rule when writing … Read more